After Magento upgrade to 1.9.3 your pricing options no longer update

Websavers Inc

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.

Source

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

Jordan Schelew

Jordan has been working with computers, security, and network systems since the 90s and is a managing partner at Websavers Inc. As a founder of the company, he's been in the web tech space for over 15 years.
WS-Logo-only-image-large

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.

5 Comments

  1. Fabio on September 11, 2018 at 11:01 am

    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 “

    • Jordan Schelew on September 13, 2018 at 9:04 am

      Hey Fabio,

      I’m not sure. What’s on line 485 of your product.js?

  2. sarder hasnut on September 21, 2017 at 11:46 am

    not working

  3. Richard Wendrock on November 16, 2016 at 1:06 pm

    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?

Leave a Comment