{{block type=”catalog/product_new” name=”home.catalog.product.new” alias=”product_homepage” template=”catalog/product/new.phtml”}}
Tag Archives: Magento
Include a static block on sidebar
<reference name=”left”>
<block type=”cms/block” name=”blockName” before=”-” >
<action method=”setBlockId”><block_id>block_identifier</block_id></action>
</block>
</reference>
Magento Ordering Sidebar Blocks
before=”-” – It lists as the first block
after=”-“- It lists as the last block
before=”block_name” – To load before a block
after=”block_name” – To load after a block
Get user group magento
<?php
echo Mage::getSingleton(‘customer/session’)->getCustomerGroupId();
?>
Check user is logged in or not magento
<?php
if($this->helper('customer')->isLoggedIn())
echo “logged in”;
?>
Gateway error: (TESTMODE) The merchant login ID or password is invalid or the account is inactive Magento
If you are testing the authorise.net in test mode make sure that Gateway URL is
https://test.authorize.net/gateway/transact.dll
If its in live mode make sure that the details you have given are correct and the authorize.net account is active .
Check the if the products is grouped or not Magento
if(Mage::helper(‘core’)->escapeHtml($product->getTypeId())==”grouped”)
echo “Grouped Product”;
Edit was added to your shopping cart Magento
1) Change the directory to magento installation
2 cd app/code/core/Mage/Checkout/controllers
3) vi CartController.php
4) Search for $message = $this->__(‘%s was pramod added to your shopping cart.’, Mage::helper(‘core’)->escapeHtml($product->getName())); and edit the text
Edit shipping method text on the sidebar on the checkout page Magento
1) Change the directory to magento installation
2) cd app/code/core/Mage/Sales/Model/Quote/Address/Total
3) vi Shipping.php
Edit the code at the line number 168
Edit getShippingDescription() Magento
1) Change the directory to magento installation
2) cd app/code/core/Mage/Sales/Model/Quote/Address/Total
3) vi Shipping.php
Edit the code at the line number 168