Magento Themes and Magento Extensions

Java’s advantage in shopping cart platform

Posted on December 18th, 2012 | Posted by admin

Open source PHP shopping carts platform/framework occupy most top list. They are hot, and we want start quick. So, we are going to make decision between Magento and Opencart, PHP programmers would be happy to this end. While my Java programming colleges feel not so happy, they were selling Broadleaf commerce or JadaSite. But more online reading and discussion pushing us to this way. PHP shopping carts get more use and so tested more and they get support multiple shops and multiple vendors.

Pass data from controller to view in magento

Posted on December 16th, 2012 | Posted by admin

It’s may be very easy for Zend framework user But, I find some magento developer fighting to pass data from controller to view.
In magento you have to create a empty model(if your mod don’t have a varient object model) which extends to varient object. Magento use magic getter magic setter so you can pass value by setAnyname() and getAnyname() thus functions will be auto defines by Zend like many other framework do.

Hide categories that have no products magento

Posted on December 13th, 2012 | Posted by admin

I have many sites that use the same root category of the Main Site. Each product that is added is added to the site it was added to (wow.) and also the Main Site. However, I would like categories on a per site basis to only appear if there are products on that site.

If I have:


But Site1 only has products in Category1 and Category2, whereas Site2 and Site3 have products in Category2 and Category3; I only want Category1/2 to appear on Site1 and only Category2/3 to only appear on Site2 and Site3.


Posted on December 12th, 2012 | Posted by admin

By looking at Mage_Core_Model_Session_Abstract class in Magento, you can easily set, retrieve, and unset session variables. So if you’re planning to code related in session, use the built in code of magento instead of hardcoding it. Here are some examples:

1. To set Magento Session

$yourSessionValue = 'session Value';

2. To retrieve Session Variables


Magento – Display the SKU on a Product Page

Posted on December 10th, 2012 | Posted by admin

Magento’s default theme doesn’t display the SKU on the product page. This is a pretty easy modification to get this working properly.

In whichever theme you’re using, in the file template/catalog/product/view.phtml, add the line:

<?php echo $this->htmlEscape($_product->getSku()) ?>

Here’s a few lines of my view.phtml to give you some context:

Page 5 of 12« First...«34567»10...Last »