July 2013

  • Magento : Category images from resized folder

    Generally magento category images call from media/catalog/category. But some time we want resize and want call from resized folder. So for that make static block {{block type=”catalog/navigation” name=”catalog.categories” template=”catalog/navigation/category_listing.phtml”}} and code for category_listing.phtml is below.   <?php $_helper = Mage::helper(‘catalog/category’) ?> <?php $_categories1 = $this->getCurrentChildCategories(); ?> <?php $_collectionSize = $_categories1->count() ;?> <?php $_columnCount = 4;… Continue reading

  • User name and Email check in wordpress

    Using jquery we want to check user name and email exits. I use this code rules: { //user_name: “required”, user_name: { required: true, minlength: 3, remote: { url: “<?php echo ‘http:// ‘.$_SERVER[“HTTP_HOST”].$_SERVER[“REQUEST_URI”]; ?>”, type: “POST”, data: { action: function () { return “adduser”; }, username: function() { var username = $(“#user_name”).val(); return username; } }… Continue reading

Design a site like this with WordPress.com
Get started