Option selection Trigger

We can add new function after an option is selected in the option selection trigger for PDP page

_.each(self.pdp.getItemInfo().options, function (data) {
	// function	
	});

This event triggered after an option is set. The event data is an object.

{
 cartOptionId: "custcol_gen_color",
 itemOptionId: "custitem_gen_color",
 label: "Color",
 type: "select",
 value: {
   internalid: "5",
   label: "Blue"
 }
}

Leave a comment

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