Wednesday, 18 May 2016

Get ProductMaster based on Product varients

Get ProductMaster based on Product varients

HI, Below is the sample code used to get Product number based on product variants.
Since while trying to get product number directly we will get like “140 :: varient”, we wont be able to get product “140” and further difficult fetch data based on product.

ecoResProduct = EcoResProduct::find(this.Product);
ecoResDistinctProductVariant = EcoResDistinctProductVariant::find(this.Product);


No comments:

Post a Comment