Monday, July 8, 2013

Get Customized Attribute in Shopping Cart

As it is a per item attribute, you need to go to your template (say you are using the modern template), modify the file /app/design/frontend/default/modern/template/checkout/cart/item/default.phtml.   

If there is no such file, copy from /app/design/frontend/base/default/template/checkout/cart/item/default.html.

Assume you created an attribute free_shipping which is a Yes/No field and you want to display an icon if the free_shipping is Yes.

$_item = $this->getItem();
$productId = $_item->getProductId();
$_product = Mage::getModel('catalog/product')->load($productId);
$freeShipping = $_product->getData('free_shipping'); 

Remaining task is just to add the if...then...else block to show the icon.

Thursday, June 27, 2013

Create Multiple Language Products/Categories

Create Multiple Language Categories 

  • Catalog -> Manage Categories
  • Create a category for All Store Views

  • Select the target store view

  • Uncheck those Use Default Value

Create Multiple Language Products

  • Catalog -> Manage Products
  • Create a product for All Store Views

  • Select the target store view
  • Uncheck those Use Default Value and input the language specific value

Wednesday, June 26, 2013

Magento in Multiple Languages

Configure Multiple StoreViews

  • System -> Manage Stores

  • Click Create Store View
  • Fill in the necessary information

 Language Files Download

Bind the Locale

  • System -> Configuration
  • Current Configuration Scope and choose your scope
 
  • Select the target language in Locale Options 
 
  • Done