Skip to Content
Menu
This question has been flagged
1 Reply
1746 Views

Hi,

I need to rewrite the function onClickAddCartJSON i tried the following code but it doesnt works for me.

var ProductConfiguratorMixin = require('sale.ProductConfiguratorMixin');

ProductConfiguratorMixin.onClickAddCartJSON = function () {
// i wrote the function of onClickAddCartJSON here
},

Thanks in advance

Avatar
Discard
Best Answer

Hi,

Try the following code

ProductConfiguratorMixin.include({
onClickAddCartJSON: function (ev) {
//rewrite code here
},
});

Regards

Avatar
Discard