Entries by admin

Reset wordpress default jquery for front site

Reset wordpress default jquery for front site. Use below code in template functions.php file and you’r done! if( !is_admin()){ wp_deregister_script(‘jquery’); wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”), false, ‘1.10.2’); wp_enqueue_script(‘jquery’); }

How To Show Page for Particular User Group In Magento

Show Page for Particular User Group In Magento <?php ////Check if User is Logged In $login = Mage::getSingleton(‘customer/session’)->isLoggedIn(); if($login){ //Get Customers Group ID $groupId = Mage::getSingleton(‘customer/session’)->getCustomerGroupId(); //My wholesale customer id was 2 if($groupId == 2){ echo “wholesale Customer”; }else{ echo “Not a wholesale Customer”; } } ?>

Get create account url in magento

If you want to add create “Register” or “Create an account” link in top navigation section then simply open customer.xml file in layout folder and you have to put below code in <customer_logged_out> area <action method=”addLink” translate=”label title” module=”customer”><label>Creat an acoount</label><url helper=”customer/getRegisterUrl”/><title>Creat an acoount</title><prepare/><urlParams/><position>9</position><liParams/><aParams>id=”register”</aParams></action>

Change column-layout of contact form in Magento

Here is simple method to do it : 1. Find contacts.xml in the base layout folder 2. Copy the contacts.xml in your theme layout folder app/design/frontend/default/your theme folder/layout/ and then find below code around line 41 page/2columns-right.phtml and you can change layout as you need.

How to edit Email Templates in Magento

To create a new Email Template you have to go to admin –> system –> transactional emails –> add new template –> choose the base template from the drop down and edit as you want. Then you can assign the newly created template to proper functionality. For e.g. if you want to assign new tempalte […]

Remove Breadcrumbs from all pages in magneto

To remove breadcrumbs from all pages in magneto. Just go to app/design/frontend/default/your theme name/layout/ Open file page.xml and you have to just comment below code around line 82 <!– <block type=”page/html_breadcrumbs” name=”breadcrumbs” as=”breadcrumbs”/> –> Then upload file and remove cache.

How to limit the number of products on home page in Magento

Check your products count and limit to how many products to display on home page.You will have to check to list.phtml file make below changes. Suppose you want to show 4 coloumns and 12 products on the home page. <?php $_collectionSize = $_productCollection->count() ?> <?php $_columnCount = $this->getColumnCount(); $_columnCount=4; ?> <?php $count = 0;?> <?php […]