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-29_at_9.44.15_AM.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 Templates.

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

Screen_Shot_2013-10-29_at_9.51.33_AM.png 

 

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

Screen_Shot_2013-10-29_at_9.52.49_AM.png

 

HTML Templates

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk