// Hook for CPB Add To Cart Event.
document.addEventListener("cpb-add-to-cart", function(event) {
...
});
// Generate a preview of one of the product views. Make sure the view exists.
cpb.getImage(function(image){
console.log(image);
}, false, "front");
// Generate ConfigId on product page.
window.cpb.saveConfig(callback, isNeedToValidate);
callback - function
isNeedToValidate - boolean (default: true)
Comments
0 comments
Please sign in to leave a comment.