When we have huge number of child items in a parent item and we want to target a specific type of child item we can target it uasing the extensibility API of PDP page methods.
_.extend(ProducDetailsFullView.prototype, {
getContext: _.wrap(OrderWizardModulePromocodeForm.prototype.getContext, function (fn) {
let original_Ret = fn.apply(this, _.toArray(arguments).slice(1));
let pdp = container.getComponent(‘PDP’);
let getSelectedMatrixChild = pdp.getSelectedMatrixChilds( {custitem_ag_check_colors: ”Pruple’} );
console.log(‘getSelectedMatrixChild’, getSelectedMatrixChild);
return original_Ret;
})
})