After Magento upgrade to 1.9.3 your pricing options no longer update
You’re using a pricing options plugin that updates prices dynamically on the product page and cart, yet after the upgrade of Magento it no longer updates prices automatically.
In our case it was the Simple Configurable Products Extension. When trying to change the product option from say 2oz to 16oz (where we expected the price to change), instead we’d get a javascript error in the browser console and the price wouldn’t change at all.
This was due to a change in core javascript functions. Magento appears to have moved certain product option controls out of product.js and into product_options.js, yet product_options.js isn’t included in older themes. To fix this, the following file must be edited:
{web_root}/store/app/design/frontend/{theme_name}/default/layout/catalog.xml
Look for the “Catalog Product View” <label> under which you’ll see this:
<action method="addJs"><script>varien/product.js</script></action>
Duplicate that line and on the new copy, replace product.js with product_options.js
Be sure to clear all caches by either deleting all files in {magento_root}/var/cache or by logging in to the magento admin, then choosing Configuration > Caches and refreshing all of them.
You should now find this problem fixed.
If you found this guide helpful, consider hosting your Magento site with Websavers. We’re consultants for everything web, and we’re here to make your web life easier.
Posted in Code
About Websavers
Websavers provides web services like Canadian WordPress Hosting and VPS Hosting to customers all over the globe, from hometown Halifax, CA to Auckland, NZ.
If this article helped you, our web services surely will as well! We might just be the perfect fit for you.
What is the problem…Custom Product Price not change 🙁
In my magento the theme catalog.xml it’s ok…but in firefox console “unreachable code after return statement product.js:485:8” and
“unreachable code after return statement configurable.js:291:8 “
Hey Fabio,
I’m not sure. What’s on line 485 of your product.js?
not working
Thank you for the article. The product_options.js file is not present in my install after the upgrade using Softaculous. I am searching the net for a place to download that file. Do you know where I can find it?
Hey Richard,
You can download 1.9.3.1 here: https://magento.com/tech-resources/download then extract the file from within. After extraction, you’ll find it under js/varien/product_options.js
-Jordan