1) Go to System > Configuration > Sales > Giftcard
2) Set the value Generate Gift Card Account when Order Item is” to “Ordered” .
All posts by Pramod T P
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”
Change the layout of search result page Magento
Edit the the code in catalogsearch.xmlpage
<reference name=”root”>
<action method=”setTemplate”><template>page/2columns-left.phtml</template></action>
</reference>
