Magento IE9 Issue Fix

If you experience compatibility problems try turning on compatibility mode in IE9 by clicking the small compatibility button in the address bar. If this resolves the problem you can implement the compatibility META tag by editing the head.phtml file of your themes template e.g. app/design/frontend/YOURTHEME/default/template/page/html/head.phtml in older Magento versions.
My Issue: …

Magento – Select “Checkout as Guest” and “Ship to this Address” by default

In order to set these defaults, you need to modify the opcheckout.js file located at:
frontend/base/default/js/opcheckout.js
Add this code to the end of the initialize function:

initialize: function(accordion, urls){

// Set guest checkout by default
if ($(’login:guest’)) $(’login:guest’).checked=true;
 
// Set shipping = billing by default
if ($(’billing:use_for_shipping_yes’)) $(’billing:use_for_shipping_yes’).checked=true;
},

Magento – Display other products from the same category

How to setup category related products in Product view :

add the following code somewhere in default\template\catalog\product\view.phtml
Configure the category query according to your catalog by uncommenting the following :

// ->setPage(1, 1) : selects only one category
// ->addFieldToFilter(‘level’,”3″) : selects only 3rd level categories
// ->addFieldToFilter(‘parent_id’,”3″) : select only child categories of no …

Get Parent Category Name in Magento

<?php $parentname = $this->getCurrentCategory()->getParentCategory()->getName(); echo $parentname; ?>

Jquery Conflict with Prototype in Magento

To use Jquery along with Prototype add the following code in your Jquery Script.

Get Skin Directory URL With a Template

This code gets the Skin URL for when you are including Images etc within your template.

<?php echo $this->getSkinUrl(’images/YOURFILE.jpg’) ?>

Please ensure you close the gap between < ? and ? >

 Page 3 of 4 « 1  2  3  4 »