mivaecommerce / readytheme-shadows

Shadows is the development framework and methodology used for creating our ReadyThemes as well as custom websites.
https://shadows.mivareadythemes.com/
MIT License
4 stars 3 forks source link

PROD: Update Product Weight Display on Attribute Change #89

Closed influxweb closed 3 years ago

influxweb commented 3 years ago

In Miva 10.00.04, the ability to have the displayed product weight update when selecting attributes on the product page was added. Shadows will have to be updated to support this.

Correcting the Issue

To make the update, without applying the latest release, you will need to find and update the code in User Interface -> Templates -> Pages -> PROD -> Product Display Layout from this:

<p class="x-product-layout-purchase__product-weight u-font-small">
    Shipping Weight: <strong>&mvt:product:weight;</strong> &mvt:store:wtunits;
</p>

To this:

<p class="x-product-layout-purchase__product-weight u-font-small">
    Shipping Weight: <strong id="product-weight-value">&mvt:product:weight;</strong> &mvt:store:wtunits;
</p>