How to: Add a product attribute to a product detail page

When creating products, key/value attributes can be created to add additional information to the product.

Screen_Shot_2013-10-28_at_12.46.34_PM.png

For example, this extra information can be used for third party integrations, to mark the product as part of a specific season or for simply showing extra information on the product detail page.

In this tutorial we will see what it takes to make an attribute value visible on a product detail page.

If our web site is using the default template for the product detail page meta_catalog/product_detail.html, first we need to make sure the default template has been added to the DB Templates.

To make the attribute value visible on the product detail page, we need to add {{ object.attributes.my_key }} template tag in the meta_catalog/product_detail.html default template. 

Screen_Shot_2013-10-28_at_1.17.18_PM.png 

 

Once the template is saved the product attribute value will show on the product page.

 

Screen_Shot_2013-10-28_at_1.14.55_PM.png

 

HTML Templates

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk