Add code

Saturday 26 December 2015

Price changes to zero after selecting an option in updated version

I have updated my magento version to 1.9.2.2 recently, After updated to new version, if i select the price of product, that cost is showing normally fine till here. The main problem is, if i select the any Custom option like color, size That product's price is showing ZERO.

Solution:

First of all,
we need to go to this path

app/design/[your package]/[yourtheme]/template/catalog/product/view/options.phtml

Search for this script

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

Replace with

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

Now it is cleared.

No comments:

Post a Comment

Magento : 404 error is showing admin page

Hello, Sometimes we may get the error on admin page once done with the Magento installation. In that scenario, we have to do the following: ...