Skip to content
Snippets Groups Projects
Commit 00bc6984 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Fix Coupons variable not being available

parent 427fe80f
No related branches found
No related tags found
No related merge requests found
......@@ -42,10 +42,8 @@ class RulesShippingFrameworkWooCommerceAdvanced extends RulesShippingFrameworkWo
}
protected function addCustomCartValues ($cart, $products, $method, &$values) {
$data = array(
'coupons' => $cart['applied_coupons'],
);
return $data;
$values['coupons'] = $cart['applied_coupons'];
return $values;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment