小编rya*_*614的帖子

如何在Magento 1.7中删除自定义选项+ $ 10.00

您好我使用的是magento 1.7.我有可配置的产品和简单的产品都有自定义选项...我想删除选项旁边的+ $ 10.00示例:自定义选项:大+ $ 5.00我希望它显示为大......我仍然希望价格为在产品的视图页面上更新.我尝试编辑js/varien/product.js注释掉str +但是没有用

//str+= ' ' + this.formatPrice(excl, true) + ' (' + this.formatPrice(price, true) + ' ' + this.taxConfig.inclTaxTitle + ')';
            } else {
                //str+= ' ' + this.formatPrice(price, true);
            }
        }
        return str;
    },
formatPrice: function(price, showSign){
    var str = '';
    price = parseFloat(price);
    if(showSign){
        if(price<0){
            //str+= '-';
            price = -price;
        }
        else{
            //str+= '+';
        }
Run Code Online (Sandbox Code Playgroud)

magento

9
推荐指数
4
解决办法
9365
查看次数

标签 统计

magento ×1