Magento themes and extensions

Get Custom Options in Checkout/cart page Programmatically Magento

Posted on December 31st, 2013 | Posted by admin

A Magento client of mine wanted to be able to change the calls to action on the cart and checkout pages based on the product configuration that the customers have selected for purchase. The following bit of code loops through the products in the Magento shopping basket and gets the chosen custom options and / or configuration.

// Load the session

$session = Mage::getSingleton(‘checkout/session’);

// Array to hold the final result

$finalResult = array();

// Loop through all items in the cart

Magento Clear Product Image Cache

Posted on December 26th, 2013 | Posted by admin

If you want to clear product image cache programatically in Magento, simply use following code snippet.


Magento Add Coupon With Same Code

Posted on December 26th, 2013 | Posted by admin

Want to add coupon with same code in Magento. This is useful when you need to associate same coupon with the multiple promotions.

Simply override the file Coupon.php located at /app/code/core/Mage/SalesRule/Model/Resource

Comment out following code in constructor function -

     * Constructor adds unique fields
    protected function _construct()

Product Count Per Category in Magento

Posted on December 25th, 2013 | Posted by admin

Product Count Per Category in Magento
<?php $id = 42;?>
<?php $cat = Mage::getModel(‘catalog/category’)->load($id);?>
<?php $subcats = $cat->getChildren();?>
<?php foreach(explode(‘,’,$subcats) as $subCatid):?>
<?php $_category = Mage::getModel(‘catalog/category’)->load($subCatid);?>
<?php if($_category->getIsActive()):?>
<?php $productCount = Mage::getModel(‘catalog/category’)->load($_category->getId())->getProductCount();?>

Saphi – Responsive Magento Theme

Posted on December 23rd, 2013 | Posted by admin

If you need high-quality theme,  Saphi Responsive Magento Theme is an excellent choice!

Saphi is a responsive Multi-Purpose eCommerce theme with built-in Blog, powerful admin panel and 5 color presets.

According to the current web trends,  Saphi has an up-to-date design with clean flat design, neat typography, smooth navigation and well-structured layout. In order to make your products more outstanding as well as enhance the customer’s shopping experience, the homepage is so clear and flexible to quickly show a giant store in an intuitive way.

Page 1 of 512345»