您好,我正在使用 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+= '+';
}