Magento Themes and Magento Extensions

Automatically create up-sells widgets based on customer purchase info

Share
Posted on March 2nd, 2013 | Posted by admin

In  magento Use the following simple script to automate your up-sells widgets creation based on your customer orders info.
Save the script as autoUpSells.php and run it through cron jobs to create up-sells from orders with processing status.

Create New Layout In Magento

Share
Posted on November 25th, 2012 | Posted by admin

Magento comes in-built with a few page layouts like 1 column, 2 columns with left bar, 2 columns with right bar etc.
If you want to add new layouts of your own follow these steps.

1. Open file /app/etc/local.xml
2. Just before the </global&gt tag add the following

1
2
3
4
5
6
7
8
9
<cms>
<layouts>
<homepage>
<label>Home Page</label>
<template>page/home-page.phtml</template>
<layout_handle>home_page</layout_handle>
</homepage>
</layouts>
</cms>

Create a menu from CMS pages in Magento

Share
Posted on November 19th, 2012 | Posted by admin

Use the following code to create a menu using CMS pages in Magento. I have used this code in footer.phtml to add a menu of links. With some css it really turns out nice.

Add to this if statement to exclude CMS pages from the list:

if($data[‘identifier’]==’no-route’)
continue;

Modify the code like this to exclude a page with an id of about-us:

if($data[‘identifier’]==’no-route’ || $data[‘identifier’]==’about-us’)
continue;

Here is the code: