Dear SeanZXC,
Thank you for the screenshot of the plugin area. It seems you are still using plugin version 1.2.1, which is known to have a bug with the coupons. The bugfix release 1.2.2 fixed this (see also our changelog:
open-tools.net/documentation/advanced-sh...merce.html#changelog).
If you don't want to update to the latest version, you can manually apply the fix to your installed version of the plugin: The diff is
diff --git a/includes/rules_shipping_framework_woocommerce_advanced.php b/includes/rules_shipping_framework_woocommerce_advanced.php
index 0ec927d..77c89f3 100644
--- a/includes/rules_shipping_framework_woocommerce_advanced.php
+++ b/includes/rules_shipping_framework_woocommerce_advanced.php
@@ -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;
}
If you are not familiar with reading and applying a diff / patch like this, simply open the file includes/rules_shipping_framework_woocommerce_advanced.php, search for the function addCustomValues and replace these lines:
protected function addCustomCartValues ($cart, $products, $method, &$values) {
$data = array(
'coupons' => $cart['applied_coupons'],
);
return $data;
}
with this corrected version:
protected function addCustomCartValues ($cart, $products, $method, &$values) {
$values['coupons'] = $cart['applied_coupons'];
return $values;
}
Best regards,
Reinhold