Showing posts with label appear. Show all posts
Showing posts with label appear. Show all posts

Wednesday, 4 January 2012

Magento - How to add an attribute in the back end and make it appear in the front end

Magento - How to add an attribute in the back end and make it appear in the front end

First you define the attribute in the back end as per normal. Login to the admin section, Catalog/Attributes/etc.

Then you have add a snippet of code in the template you want the attribute to appear in.

<'remove this quote'?=$_product->getHERE() ?>

Where 'HERE' is your attributes id.


click here for the original website

Tuesday, 3 January 2012

Magento - Show 'Out of Stock' items in the catalog

Magento - Show 'Out of Stock' items in the catalog

Magento, by default hides 'Out of Stock' items from the front end catalog. If you want them to appear (show in the frontend but have out of stock written next to it) you have to:
  1. Login to the backend
  2. Go to system/configuration
  3. Locate the 'Inventory' tab
  4. and Set Display out of stock products to ‘Yes’ in Stock options tab

click here for the original website