Forums
Home / Plugin: WooCommerce / Unique coupon code
(@samisraeli)
3 years ago
Hi, How can I force uniqueness in the coupon code? Today I can create 2 coupons with the same code. Sam
(@conschneider)
Engineer
Hi @samisraeli,
Most of the time the coupon codes created by WooCommerce should be different. I would either try and remove the duplicate and try to create a new one or if that fails you can try and force a more sophisticated unique coupon code generation with custom code: https://www.tychesoftwares.com/how-to-create-unique-coupon-codes-in-woocommerce-programmatically/
Kind regards,
(@margaretwporg)
We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was helpful.
If you have other questions, please feel free to open a new topic.