Support » Plugin: URL Coupons For WooCommerce » Works great but has two defects that can be fixed easily

  • Good plugin but I think i found two defects:

    1. To apply the coupon the link should be http://www.example.com/coupon?code=couponcode and NOT http://www.example.com/coupon/couponcode

    2. When clicking the URL to add the coupon, if the cart is empty or there is no session yet, the coupon won’t persist. Also no error will be returned in this case. To solve this, just needs to persist a session cookie before calling the WC->cart->add_discount function.

    // Set a session cookie to persist the coupon in case the cart is empty.
    WC()->session->set_customer_session_cookie( true );

    Thanks!
    adnovasi

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jkohlbach

    (@jkohlbach)

    Thanks for the feedback adnovasi!

    We’re fixing these as we speak 🙂

    I replied with more detail on your support ticket: https://wordpress.org/support/topic/good-plugin-but-has-two-defects/

    Cheers,
    Josh

    • This reply was modified 2 years, 11 months ago by jkohlbach.
    Plugin Author jkohlbach

    (@jkohlbach)

    Hey @adnovasi,

    Just letting you know these are now fixed as of 1.0.1

    Cheers,
    Josh

    Wanted to touch base on this. I have the same desires for both points aforementioned.

    1. I want the URL to look like http://www.example.com/coupon?code=couponcode and NOT look like http://www.example.com/coupon/couponcode

    2. I want to add this URL functionality to a promo emailing to customers. When they click the promo URL link in the email and subsequently visit the web store I want the coupon to be held in a cookie so when the user does choose to add a qualified product to their cart, the promo applies. This is currently not the case. At least with my tests, a user *must* FIRST have a product in their cart and THEN click the promo URL to successfully apply the promotion to their cart.

    At least right now neither of these seem to have been addressed, even though the Author says they have been? Am I missing something?

    • This reply was modified 2 years, 10 months ago by interwebjedi. Reason: Spelling
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Works great but has two defects that can be fixed easily’ is closed to new replies.