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([]);
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI 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([]);
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>
catalog_category_default
handle
Oct 18, 2016 at 22:27
<reference name="head">
?