diff --git a/plugins/template/YOUR_PLUGIN_NAME.php b/plugins/template/YOUR_PLUGIN_NAME.php index 361d60317bf2540835ce483c7e159752b57bc6cd..7bde01edae7b7f5c0f89c13b30885da5ae14a6eb 100644 --- a/plugins/template/YOUR_PLUGIN_NAME.php +++ b/plugins/template/YOUR_PLUGIN_NAME.php @@ -33,15 +33,14 @@ class plgVmShipmentRulesYOUR_PLUGIN_NAME extends VmPlugin { * You can add new variables to the $cartvals array or modify existing ones. They will be directly * available in all rules. * This trigger will be first called right before any rule is evaluated. In that case, $products - * will contain all products in the cart and $cart_prices will be an arrow containing the calculated - * prices of the order. + * will contain all products in the cart. * Please notice that this function might also be called for only a subset of products of the cart * when the plugin evaluates a scoping function like evaluate_for_categories(...). - * In that case, $cart_prices will be NULL and the $products array will hold only those products that + * In that case, the $products array will hold only those products that * actually match the filter, and only those should be used to calculate your custom variables. - * So you can not in general rely on the cart_prices argument to hold the properly summed prices. + * So you can not in general rely on the $cart->cart_prices argument to hold the properly summed prices. */ - function onVmShippingRulesGetCartValues(&$cartvals, $cart, $products, $method, $cart_prices) { + function onVmShippingRulesGetCartValues(&$cartvals, $cart, $products, $method) { if ($cart_prices) { // Called for the whole cart... } else {