Json Cloned Price Fix for Magento CE 1.9.3 Release

Magento CE 1.9.3 has a bug which does not update prices on configurable or bundles products properly. The cloned price which is often used is themes is not updated.

span class="regular-price" id="product-price-161_clone"

The cloned price is hidden on Magento’s RWD theme but as it is hidden it, it has little impact.

The price is not updated due to a new file which was added in Magento 1.9.3:
app/code/core/Mage/Catalog/Helper/Product/Type/Composite.php

This file removes the _clone value on the idSuffix key from the Product.OptionsPrice JSON object e.g."idSuffix":"_clone". This value is required on line 218 of js/varien/product_options.js to update the cloned price.

$(pair.value + this.duplicateIdSuffix).select(
  ".price"
)[0].innerHTML = formattedPrice

Solution

As a solution I created a module which re-writes the prepareJsonGeneralConfig() function in MageCatalogHelperProductType_Composite. This module is available on GitHub.