您好我使用的是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 ×1