I recently updated from Magento 1.6.1 to Magento and I noticed that the total price of a product changes to 0,00 when I select an option (https://sportinngerritsen.nl/professional-supreme-elite-200-mtr-amber). When I continue to my shopping cart, the price is correct. I've tried a few things I found on the internet like changing a peace of code in the file optionapp/design/frontend/default/sportinn/template/catalog/product/options/view/options.phtml:

price += parseFloat(this.config[optionId][selectOption.value].priceValue);

Unfortunately this doesn't make a difference. Who can help me with this?

  • It seems an event has been hooked from your magento to change the price. Did you check the simple product prices assigned to that config. product? – Rahul Kumar Das Aug 18 '15 at 7:31
  • It happens with every single product, so that doesn't really change anything if that's what you mean. – user3478148 Aug 18 '15 at 8:20
  • There are a few JavaScript errors in your product page, like Uncaught ReferenceError: spConfig is not defined. This may cause the incorrect price after selecting an option. Like @hellimac suggests in his answer you could temporarily switch to the RWD theme or Default theme and see if this is theme related. – ForMat Aug 18 '15 at 8:39
  • Try to go through these steps: Restore the default theme, disable all your modules and try again. If the issue still happens, then you must have edited some core JS files. Download a fresh copy, and replace the content of /js to see if the issue is fixed – Mayers Aug 18 '15 at 9:19

Try changing your theme to either "rwd" or "base". I think what is happening is that the theme you are currently using was made for Magento 1.6.1 and doesn't comport the same class / DOM architecture as required by the Javascript files of the version 1.9.2.

If it works with the theme of Magento 1.9.2, you will have either to explore the JS files to see what classes is looked for, or remake the files of your theme based on the 1.9.2 theme files.

  • Unfortunately changing the theme to rwd or base didn't make a difference. I did check if the spConfig has anything to do with is by following these steps: stackoverflow.com/questions/22460719/… It made the error go away, but it didn't fix the problem. – user3478148 Aug 18 '15 at 9:09
  • My mistake, I didn't look in the right place apparently.. The pricing bug DOESN'T happen when changing to the base/default theme.. It looks like it is my theme after all. – user3478148 Aug 18 '15 at 9:29
  • Try looking at the DOM/class differences between your current theme and the default theme for the product view page. I already had to do that, re-include default functionalities on a modified theme, and I know it's not really funny... Courage ! – hellimac Aug 18 '15 at 9:58
  • Do you know what class/file I'm supposed to be looking for? Magento is a big package and I'm quite new to it. – user3478148 Aug 18 '15 at 10:16
  • It would be great if I could have an answer to this :) – user3478148 Aug 20 '15 at 7:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.