Jump to content

[Solved] Error with discount coupons


Recommended Posts

Hello.

I've been looking for some time now to see what could be wrong with my store, but I don't see the solution.

I use Prestashop 8.1.7 with PHP 8.1.31.

I have created several coupons, but they don't work. When I add a coupon that doesn't exist, the action works fine, giving an error message saying that the coupon doesn't exist (https://prnt.sc/mudh_8uMXK5g)

But when I use a coupon that does exist, an empty error appears and nothing applies (https://prnt.sc/V1XEPWRFGd41)

I used a paid template, but I changed it to the classic theme to see if that was the reason and it's still the same.

Any idea what it could be? I moved the site to a test subdomain to play around with things, in case you want to check how it works (https://test.bozoom.es). A valid coupon would be BZM5ENE

Thanks

Edited by oscarm2
Add links (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

Hi,

If valid coupons in PrestaShop 8.1.7 show a blank error and don’t apply, first enable debug mode (config/defines.inc.php) to check for errors.
Inspect the browser console (F12 → Console) for JavaScript issues.
Verify the coupon in the database (ps_cart_rule) to ensure it's active, has valid dates, and quantity > 0.
Disable any third-party modules related to checkout or cart rules from Modules → Module Manager.

Finally, test applying the coupon manually from Orders → Carts → Edit Cart. If the issue persists, check the debug log for further details.

Regards.

Link to comment
Share on other sites

Oh, thanks for the reply.
I already found out that it was causing problems with a module. By disabling that module, the coupons started working correctly again.
I forgot to close this topic

Link to comment
Share on other sites

  • oscarm2 changed the title to [Solved] Error with discount coupons

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...