Usage restriction – bug report
-
Hello @md-jahidul-islam,
Steps to reproduce the bug:
1. Add a new coupon, go to Usage restriction, and add a product to Products. E.g. “Product A”
2. Go to your shop and add “Product A” and “Product B” to the cart
3. Apply the coupon. After that, the plugin applies the trial to both products/subscriptions.Inside WCSC_Trial_Coupon -> before_caculate_cart_total method you should check if the $cart_item[‘product_id’] or $cart_item[‘variation_id’] are in the array returned by $coupon->get_product_ids() method (when the coupon has product restrictions).
—
George
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Usage restriction – bug report’ is closed to new replies.