Hey ,
Within the ProductExtensions class we have method that returns our product stock quantity. My customer has partner providing him APIs which exposes stock available for order.
since this is dynamic he needs to control this before customers makes purchase. So my question would be how do I go about making sure that if product is of a specyfic type a different logic would be applied ?
i.e. adding something in lines of
if (product.isCustomValue == true)
{
// http async Call to external partner for stock
return result_of_call;
}