Go to Admin>System>Configuration>Catalog>Frontend>”Product listing sort by”
Monthly Archives: November 2012
Send mail with gift card code when order is placed Magento
Mail with gift card code is not received on purchase of gift card Magento
Get payment method in review.phtml Magento
<?php $methodTitle = Mage::getSingleton(‘checkout/session’)->getQuote()->getPayment()->getMethodInstance()->getTitle(); ?>
Credit card details on checkout review section Magento
<?php
echo Mage::getSingleton(‘checkout/session’)->getQuote()->getPayment()->getCcType();
echo Mage::getSingleton(‘checkout/session’)->getQuote()->getPayment()->getCcLast4();
?>
Product image on checkout review section Magento
<img src=”<?php echo $this->getProductThumbnail()->resize(45); ?>” width=”45″ height=”45″ alt=”<?php echo $this->htmlEscape($this->getProductName()) ?>” />
Get Magento Product Type
<?php $productType= $_product->getTypeId() ?>
Remove class from element jquery
jQuery(“#element-id”).removeClass(“class-name”);
Add a class to element jquery
jQuery(“#element-id”).addClass(“class-name”);
Disabling Multiple Address Checkout on Magento
1) Go to System and select Configuration in admin panel
2) Go to Shipping Settings on the left menu under Sales section and Set “Allow Shipping to multiple addresses” to “No”