/**
* Calculation without considering min purchase
*/ $rule = clone$product->getCheapestPriceRule(); $product->setCheapestUnitPrice( $this->calculatePriceStruct($rule, $tax, $context) ); }
// Add state to the product which can be used to check if the prices are already calculated.
$product->addState(ListProduct::STATE_PRICE_CALCULATED); }
/**
* Calculates the cheapest price considering the variant min purchase
*/