Simple Machines Community Forum

General Community => Scripting Help => Topic started by: Cathal on October 31, 2018, 02:20:01 PM

Title: Mass discount codes
Post by: Cathal on October 31, 2018, 02:20:01 PM
I want to generate about 50 unique discount codes for single use? Doing this one by one would be a bit of a chore.
Is there a way to do this or a way to duplicate rows in the DB that I can then just change the code?
Title: Re: Mass discount codes
Post by: vbgamer45 on October 31, 2018, 04:33:27 PM
You could do an online password generator to generate 50 unique combos

You can export and insert the row multiple times
Title: Re: Mass discount codes
Post by: Cathal on November 01, 2018, 02:42:23 PM
Is it just the one table - cart_rule - no cross referencing?