• 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

    • This topic was modified 4 years, 11 months ago by George J.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Md Jahidul Islam

    (@md-jahidul-islam)

    Hello George,

    Thank you for reporting bug. I have tried to test the way you said and found that it is working fine with the retraction product. Can you please check if it conflict with other plugins. Or can you send me a screen-cast at [email protected]

    Thread Starter George J

    (@georgejipa)

    Hello,

    I solved the bug before reporting it here (it wasn’t a plugin conflict).
    Anyway, if you followed every step and everything worked fine on your end, then you can close the ticket.


    George

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Usage restriction – bug report’ is closed to new replies.