Welcome Guest, Not a member yet? Register   Sign In
flexi cart - A comprehensive shopping cart library for CodeIgniter
#52

[eluser]haseydesign[/eluser]
@jojo

You were so close dude, you just needed to set the usage limit (disc_usage_limit).

Here's the revised code.

Code:
INSERT INTO `discounts` VALUES (1, 0, 8, 0, 0, 0, 0, 0, 0, 'test1', 'test discount code', 0, 0, 0.00, 1.00, 1, 1, 0, 0, '', '', '', 99, '2012-9-19 12:54:41', '2012-9-29 00:00:00', 1, 1);

The usage limit defines how many times the discount can be used, when set to 0, the cart thinks all the discount codes have been used up.

------------------------------------

I understand looking at the discount tables is a little daunting with so many columns and options.
To help out in future, I would suggest you create a separate installation of the flexi cart demo so that you can do stuff like build discounts via the provided demo and see what kind of output it does.

If you want/need to create discounts via your site, copy the code from the discount builder in the demo.
http://haseydesign.com/flexi-cart/admin_..._discounts


Messages In This Thread
flexi cart - A comprehensive shopping cart library for CodeIgniter - by El Forum - 09-24-2012, 06:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB