How to add new measurement units for product features

When you are adding a new product feature in section “Settings → Product types & Features” and select a type like “Length”, “Weight”, or “Frequency”, you can select a measurement unit for it such as m, kg, or Hz.

You might find it useful to know that you can extend the default list of measurable product properties and the corresponding measurement units.

  1. To do so, copy file wa-apps/shop/lib/config/data/dimension.php to wa-config/apps/shop/dimension.php.
  2. Then edit the copy as you need, by looking at the existing contents, and add new product properties and measurement units. You need some knowledge of the PHP programming language to accomplish that.
  3. Clear the cache in the Settings app so that your online store begins to use the modified copy of the configuration file that you have edited.


    Add comment

    To add a comment please sign up or login