If the coupon is already active and the user re-enters the coupon, the Coupon applied trigger will be fired while an error will be displayed.
As a suggestion, it would be nice if there was a trigger for Coupon error to have full control over the coupon action. In this case, we can display the text “Coupon is not valid or has already been used.”
thank you for this observation. We are triggering “coupon applied” interaction, if we receive the “apply coupon” event from WooCommerce. It appears that the same even is used, if there is an error.
That’s why I’m not sure if I should take this as a bug or as an improvement . I’ll create a task anyway, and we will have a look at what can be done.
Add to cart is when the product has been added to the cart. But Adding to cart is for the time when the adding to cart process is taking place. In fact, this trigger is suitable for displaying a loading in the adding to cart process. The Bricks Ultimate plugin has this trigger.
Hey @HOSEIN and @Victor1999, so, I’m checking this one out, and it seems that the only thing I can add is “Adding to cart” event like @Victor1999 suggested - and I see that this is basically what BricksUltimate has as well.
Or you have some other ideas? I don’t think I can make it so specific as it was suggested on first post, as there are no data attached to the events, so I can’t discriminate between them.
Yes. The event that I’m listening to, for example, is “coupon applied” or something like this (I don’t know from the top of my head now), but this gets triggered by WooCommerce whether the coupon is applied successfully or not - but that’s also all the data I get. I just see that “coupon was applied”, I can’t know if successfully or now.
There is a slight chance that I’m missing something, which I will make sure to double-check just in case.
I’m glad you’re adding “Adding to cart”. As an idea, it would be nice if there was an option to disable the default WooCommerce notifications. Displaying notifications using bricks popup makes life much more beautiful. That’s all.
Or you have some other ideas? I don’t think I can make it so specific as it was suggested on first post, as there are no data attached to the events, so I can’t discriminate between them.
Hi,
As an idea, it would be great if two new dynamic data were added for Discount coupon.
For example,{discount_code} and {discount_total_amount}.
Using these two dynamic data, we can display a popup with text that shows the discount amount or discount title when the user applies the discount code. This is great for improving the user experience.
We’ve fixed this issue in Bricks 2.0, now available as a one-click update in your WordPress Dashboard.
Please take your time to read the changelog entry before updating: Bricks 2.0 Changelog – Bricks, and let us know if you continue to experience issues.