Magento 1.7.0.1 resets price to 0 when using custom options

I am using Magento 1.7.0.1just updated from 1.6.2.0. I have a SCP extension, as well as advanced MageWorx user options.

I have a custom product in which simple products associated with them have custom settings.

If you select the drop-down lists in the following combination, you will see a multiple-choice popup with available custom options. Before a window with customizable parameters appears, it will switch from 99.99 pounds (correctly) to 0.00 rubles. Oddly enough, if you click on a custom option, then click "Add to Cart", it will recognize this and add it to the cart with a custom option and the right price!

The combination is as follows:

  • A6
  • 5000
  • 300 g / m2 Gloss
  • 24h

You will see that he briefly switches to £ 99.99 and then returns to 0.00 rubles. This is where the problem lies. If someone can provide some help, that would be great. I tried obvious fixes like editing the + = float price in options.phtml (doesn't exist anyway!) And ensuring that I have the options.phtml file in my theme folder. I also changed price_clone as this was also reported, but not in my circumstances.

Many thanks

+5
source share
3 answers

Try it, it works for me ...

in app/design/frontend/base/default/template/catalog/product/view/options.phtml

change

price += parseFloat(config[optionId][element.getValue()]);

to

price += parseFloat(config[optionId][element.getValue()].price);

for more details see

http://k2xl.com/wordpress/custom-options-broken-in-magento-1-7-heres-the-fix/

or

http://www.magentocommerce.com/boards/viewthread/280283/P0/

+4

In the application \ design \ frontend \ base \ default \ template \ catalog \ product \ view \ options.phtml

Find the code

Product.Options = Class.create();
    Product.Options.prototype = {

       //Don't change this code,
    }

Add below code below

price += parseFloat(config[optionId][element.getValue()].price);
0
source

All Articles