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.


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. 



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




HTML Templates

Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk