使用自定义选项时,Magento 1.7.0.1将价格重置为0 [英] Magento 1.7.0.1 resets price to 0 when using custom options

查看:56
本文介绍了使用自定义选项时,Magento 1.7.0.1将价格重置为0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用最近从1.6.2.0升级的Magento 1.7.0.1.我有SCP扩展名以及MageWorx高级自定义选项.

我有一个可配置的产品,其中关联的简单产品具有自定义选项.

如果您选择以下组合中的下拉菜单,将会看到带有自定义选项的多选弹出窗口.就在弹出自定义选项框之前,它会从99.99英镑(正确)切换到0.00英镑.奇怪的是,如果您单击一个自定义选项,然后单击添加到购物车",它将识别出该错误,并使用自定义选项和正确的价格将其添加到购物车中!

组合如下:

  1. A6
  2. 5000
  3. 300gsm光泽度
  4. 24小时

您会看到它短暂切换为99.99英镑,然后又恢复为0.00英镑.这就是问题所在.如果有人可以提供一些帮助,那就太好了.我已经尝试了一些明显的修复方法,例如在options.phtml中编辑price + = float(无论如何都不存在!),并确保主题文件夹中有options.phtml.我还修改了price_clone,因为据报道也可以解决这一问题,但我个人情况并非如此.

非常感谢

解决方案

尝试一下,这对我有用...

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

更改

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

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

有关更多详细信息,请参见

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

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

I'm using Magento 1.7.0.1 just recently upgraded from 1.6.2.0. I have the SCP extension as well as MageWorx Advanced Custom Options.

I have a configurable product where the simple products that are associated have custom options.

If you select the drop-downs in the following combination you will see the multi-select popup with the custom options available. Just before the custom options box pops up it will switch from £99.99 (correct) to £0.00. Oddly, if you click a custom option then click "Add to Cart" it recognises this and adds it to cart with the custom option and the correct pricing!

The combination is as follows:

  1. A6
  2. 5000
  3. 300gsm Gloss
  4. 24hrs

You will see it briefly switch to £99.99 then revert to £0.00. This is where the problem lies. If anyone can provide some assistance that would be great. I've tried the obvious fixes such as editing the price += float in options.phtml (doesn't exist anyway!) and ensuring I have an options.phtml in my theme folder. I've also modified the price_clone as that has also been reported to fix this, but doesn't in my circumstance.

Many thanks

解决方案

Try this, this 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 detail refer

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

or

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

这篇关于使用自定义选项时,Magento 1.7.0.1将价格重置为0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆