Magento Themes and Magento Extensions

Include a phtml page in CMS Page – Magento

Share
Posted on January 22nd, 2013 | Posted by admin

Include a phtml page in CMS Page – Magento

{{block type=”core/template” name=”list-categories” template=”catalog/category/newPage.phtml”}}

Change magento column count in products grid list for each category

Share
Posted on January 21st, 2013 | Posted by admin

Change magento column count in products grid list for each category

Add the following code into “Custom Layout Update” field for the category that you want change the number of products for each row to be diaplyed

<reference name=”product_list”>
<action method=”setColumnCount”><count>4</count></action>
</reference>

Refresh the cache and try out

Magento: Disable Sending Emails

Share
Posted on January 20th, 2013 | Posted by admin

Have you ever wanted to disable email sending on Magento so that you do not need to worry about accidentally sending emails out when you are testing your store. Well there is an easy way to do this.

Log into the admin of you store and go to: System -> Configuration -> System -> Mail Sending Settings -> Disable Email Communications

Magento Paypal Standard Payment issues with the shipping address

Share
Posted on January 18th, 2013 | Posted by admin

There is a common error in magento with the paypal payment standard payment. The customer has written their billing and shipping address into your magento checkout process and then they have opted to pay via paypal standard. Unfortunately magento does not seem to throw across the fact that the shipping address has already been stored.
Which results in the paypal payment screen to show the wrong shipping address. In order to get around this problem, there is a quick solution as suggested in the original post by Robert Kent
What we do is add a new input field into the form that is submitted to paypal. This form tells paypal that no shipping information is required.

This will then carry across to paypal and remove the duplicate shipping info problem!

How long customer is inactive ?

Share
Posted on January 17th, 2013 | Posted by admin

How long customer is inactive ?

1 $customer = Mage::getSingleton('customer/session')->getCustomer();
2 $log = Mage::getModel('log/customer')->load($customer->getId());
3 $inctive_time = now() - $log->getLastVisitAt();