Question

I have upgrade magento 1.9.2.4 to 1.9.3.

I am facing the following error in the console in product page.

TypeError: Product.OptionsPrice is not a constructor

var optionsPrice = new Product.OptionsPrice([]);
Was it helpful?

Solution

It's caused by your custom theme not adding the new product_options.js file.

Edit your theme layout file (either local.xml or catalog.xml) and add the following under the <catalog_product_view> handle (or whatever page handle you're having the problem on):

<action method="addJs"><script>varien/product_options.js</script></action>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top