• Resolved nimonogi

    (@nimonogi)


    Hello,

    I’m facing an issue when I restricted a coupon to a specific product. The product has to be added to the cart first and then click on the coupon URL.

    If you click on the coupon URL first and then add the product to the cart, the coupon is not applied.

    Any advice?

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Algoritmika

    (@algoritmika)

    Hi @nimonogi,

    Could you please share screenshots of the settings: a) coupon’s, and b) plugin’s?

    Thread Starter nimonogi

    (@nimonogi)

    I just updated my initial comment. I ran a few more tests and updated the initial thread with the issue I face.

    Thread Starter nimonogi

    (@nimonogi)

    Thanks for the prompt reply btw.

    Plugin Author Algoritmika

    (@algoritmika)

    @nimonogi,

    Could you please try adding add-to-cart parameter to the URL, i.e. something like this:

    https://example.com/cart/?add-to-cart=2495&alg_apply_coupon=test

    What happens then?

    P.S. There is also “Add products to cart” checkbox option in plugin’s settings, which automatically adds coupon’s products to the cart for “Fixed product discount” type coupons, however, unfortunately, this option is available in our Pro plugin only.

    Thread Starter nimonogi

    (@nimonogi)

    The thing is that our products are customizable. There are several parameters the customer has to choose and even upload a file before adding the product to cart. The option to automatically adding the product to cart will not work for me.

    Isn’t there a way to coupon code is kept in record/a cookie and once the cart or checkout page is visited to check if the coupon is valid or not.

    As I understood now that check is made once the URL is visited and thus the restricted product option will never work.

    Plugin Author Algoritmika

    (@algoritmika)

    @nimonogi,

    Ok, got it. Let me try to implement it – I mean validating it only on cart/checkout pages. Will get back to you soon…

    Thread Starter nimonogi

    (@nimonogi)

    Awesome!

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @nimonogi,

    As promised, we’ve released a new plugin version (v1.5.0) today, where I’ve added new “Delay coupon” options (it’s in “WooCommerce > Settings > URL Coupons > General Options”). If you enable the checkbox, coupon will be stored in session, until some product is added to the cart. And you will probably want to enable our “Force session start” checkbox, to ensure that it will work normally for guest (i.e. not logged) users as well.

    Please give it a try and let me know if it’s working as expected.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi again @nimonogi,

    Update: Please test with the newest v1.5.1, not v1.5.0.

    Thread Starter nimonogi

    (@nimonogi)

    Your are are a rock star! This works perfectly however I have to click twice on the add to cart button. The first time I click it does nothing…
    Here is a temporary URL shortner of our URL: https://www.temporary-url.com/57BAE

    Plugin Author Algoritmika

    (@algoritmika)

    @nimonogi,

    Thanks for the feedback. I’ll take a look at that tomorrow, hope that’s ok.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @nimonogi,

    Please update the plugin to the latest v1.5.2, I believe all should be fixed now. I wasn’t able to reproduce the problem you’ve mentioned, however, I’ve noticed that although product was added normally (i.e. on first click), there were issues with the redirect. I can see that customer on your site is redirected to the checkout page after he adds product to the cart – this was not working properly, and should be now fixed in the latest v1.5.2. Please give it a try and let me know if it’s ok now.

    Thread Starter nimonogi

    (@nimonogi)

    I can’t thank you enough. You already had my 5-star rating here and I will recommend your company to friends and colleagues!

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @nimonogi,

    Thank you, and glad to hear it’s solved! Please let me know if you need anything else ??

    Plugin Author Algoritmika

    (@algoritmika)

    Hi again @nimonogi,

    Just wanted to let you know that I’ve made an improvement regarding our “Delay coupon” option in the latest plugin v1.5.3. Now there is an additional “Check product” checkbox in our “Delay coupon” settings section. If it’s enabled, the plugin will apply coupon only when the correct product is added to the cart (vs any product). Hope you get the idea.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Issue with Product Restricted Coupons’ is closed to new replies.