Product Dimensions

Emphasised product dimensions, to let the user know whether it suits them.

Wireframe

Product Dimension


Preparation Checklist

Before you start this tweak, it's a good idea to run through our preparation checklist below:

  • Read through the Getting Started to get a better sense of how the control panel, Database and Front End store interact.
  • Learn our recommended Simple Workflow. This makes the implementation process as easy as possible.
  • Create a new Staging Theme for this tweak. This allows you to preview any changes before they are visible to live customers.

Coding Instructions

Step 1. Add the code into the product header template

Open up the product header template here: /httpdocs/assets/themes/[THEME-NAME]/products/includes/header.template.html

To convert the dimension values to millimeters on the page, paste the following code directly underneath the closing tag for social share section, with the class "dropdown".

<h3>Product Dimensions</h3>
<ul>
    <li>[%calc [@actual_width@] * 1000/%]mm (width)</li>
    <li>[%calc [@actual_length@] * 1000/%]mm (length)</li>
    <li>[%calc [@actual_height@] * 1000/%]mm (height)</li>
</ul>

If satisfied with the original meter measurement to show on the page, paste the following code directly underneath the closing tag for social share section, with the class "dropdown".

<h3>Product Dimensions</h3>
<ul>
    <li>[@actual_width@]m (width)</li>
    <li>[@actual_length@]m (length)</li>
    <li>[@actual_height@]m (height)</li>
</ul>

Final Result

Dimension Result


Was this article useful?

Be notified when this page is updated. Optional.