En visitant ce site, vous acceptez l'utilisation de cookies afin de vous proposer les meilleurs services possibles.
if(!empty($rule['calc_categories'])){
$amount = 0.0;
foreach($calculationHelper->_cart->products as $product){
$set = array_intersect($rule['calc_categories'],$product->categories);
if(count($set)>0){
$amount += $product->prices['priceWithoutTax'] * $product->amount;
vmdebug('Cart rule, CATEGORY set amount '.$product->prices['priceWithoutTax'].' * '.$product->amount. ' = '.$amount);
}
}
} else {
$amount = $cartPrices['priceWithoutTax'];
vmdebug('Cart rule, no category, set amount = '.$amount);
}if(!empty($rule['calc_categories'])){
$amount = 0.0;
foreach($calculationHelper->_cart->products as $product){
$set = array_intersect($rule['calc_categories'],$product->categories);
if(count($set)>0){
$amount += $product->prices['basePriceWithTax'] * $product->amount;
vmdebug('Cart rule, CATEGORY set amount '.$product->prices['basePriceWithTax'].' * '.$product->amount. ' = '.$amount);
}
}
} else {
$amount = $cartPrices['basePriceWithTax'];
vmdebug('Cart rule, no category, set amount = '.$amount);
}Connexion ou Créer un compte pour participer à la conversation.

