Coding

Magento: Price is not change

I got this issue where Price is not updated when checking the custom options (Fixed Price: +400).
 
I got this error:
 
TypeError: Product.OptionsPrice is not a constructor
 

TypeError: optionsPrice is undefined 

 

Fixed:

It happened to me after upgrading to magento 1.9.3.

In my custom theme was missing product_options.js call.

 

You need to add

 

<action method="addJs"><script>varien/product_options.js</script></action>

Check catalog.xml and configurableswatches.xml in rwd theme for reference. You will also need to copy

 

\skin\frontend\rwd\default\js\configurableswatches\configurable-swatch-prices.js

to

 

\skin\frontend\yourTheme\default\js\configurableswatches\

Hope can help

0 Bình luận

Trở về
  • HTML5 Canvas
  • HTML5 Canvas

     The <canvas> element is used to draw graphics, on the fly, on a web page. Draw a red rectangle, a gradient rectangle,...