Hide Price option in PDP page.

Hide the price option in the every page and navigate to Home page on clicking Enquire button. Create a new checkbox for item record. And show the enquire button in the website if it is enabled in the item record.

  1. When i click checkbox on netsuite item record, price should be hide on pdp page.

Solution :

_.extend(ProductDetailsFullView.prototype, {

getContext: _.wrap(ProductDetailsFullView.prototype.getContext, function(fn){

try {

var original_Ret = fn.apply(this, _.toArray(arguments).slice(1));
var enquire1=this.model.attributes.item.attributes.custitem14; original_Ret.enquire1 = enquire1
} catch (e) {

console.log(‘error’, e)

}

return original_Ret

})

Screenshot:

Leave a comment

Your email address will not be published. Required fields are marked *