public static function getPriceStatic( $idProduct, $usetax = true, $idProductAttribute = null, $decimals = 6, $divisor = null, $only_reduc = false, $usereduc = true, $quantity = 1, $forceAssociatedTax = false, $idCustomer = null, $idCart = null, $idAddress = null, &$specificPriceOutput = null, $withTax = true, $useGroupReduction = true, $useCustomerPrice = true, $priceDisplayMethod = null ) // Call original method $price = parent::getPriceStatic( $idProduct, $usetax, $idProductAttribute, $decimals, $divisor, $only_reduc, $usereduc, $quantity, $forceAssociatedTax, $idCustomer, $idCart, $idAddress, $specificPriceOutput, $withTax, $useGroupReduction, $useCustomerPrice, $priceDisplayMethod ); // YOUR CUSTOM LOGIC: Apply a 10% discount for VIP customers if (Customer::getCurrent()->isVip()) $price = $price * 0.9;
return $price;