-
09-09-08 #76
Dark Prince
- Join Date
- Aug 2003
- Location
- Behind you
- Posts
- 1,688
- Thanks
- 4
- Thanked 16 Times in 14 Posts
Re: Free PHP Voucher Code Framework
Oops - added some extra bug checking to the code and left the old line in too.
Easy peasy to fix - just find this in newcode.php:and delete this line:PHP Code:$perform_insert=mysql_query($sql);
$perform_insert = mysql_query($sql) or die("<b>Data could not be entered</b>.\n<br />Query: " . $query . "<br />\nError: (" . mysql_errno() . ") " . mysql_error());
The zip file download has been updated with the fixed version.PHP Code:$perform_insert=mysql_query($sql);
-
The Following User Says Thank You to lowndsy For This Useful Post:
ChristopherB (09-09-08)
-
09-09-08 #77
Registered User
- Join Date
- Jun 2007
- Posts
- 224
- Thanks
- 12
- Thanked 3 Times in 2 Posts
Another issue is, i added a discount code for the merchant dixons (created the merchant also.) however under D it's not working and it's not entering anything in the DB for the firstletter.
-
09-09-08 #78
Registered User
- Join Date
- Nov 2007
- Posts
- 115
- Thanks
- 19
- Thanked 8 Times in 8 Posts
Great framework, should create a number of diverse sites, as intended.
I have played around with some of the sql to change when a code is expired. At the moment the function is referencing now() to determine which codes are expired and hence indicating codes that expire today are expired.
I have tried using (DATE_ADD(now(),INTERVAL 1 DAY)) to no avail, any suggestions?
Thanks again
-
11-09-08 #79
Dark Prince
- Join Date
- Aug 2003
- Location
- Behind you
- Posts
- 1,688
- Thanks
- 4
- Thanked 16 Times in 14 Posts
Christopher: I'm afraid I can't replicate that - can you try with the latest code from the zip file?
newcode.php is the file which controls this and it has had a bit of work done on it recently.
Richard: yeah - it has been noticed. I'm looking for an acceptable fix to it, but to be honest I won't be deploying the fix on my own system - I have noticed that not all merchants agree on whether the voucher code expires at the end or start of the day they define, and since I'm trying to keep my own data uber clean and accurate I'd rather present it as expired rather than have users make a decision to buy from a particular merchant based on codes which might not work. It's not ideal, but that's what I'm doing at the moment.
I'll publish the fix and let people decide which one to use - perhaps by flicking a switch in the config file.
Everyone: As ever, I have tidied the functions file up again - it is looking much neater now and tightens up a lot of the sql statements. If you are already using the thumbnail version you can just drop the new functions file into your sites without breaking anything. It should work in previous versions too (no promises), but I urge you to update to the latest one - lots of minor things have been smartened up, especially in the admin.
-
The Following User Says Thank You to lowndsy For This Useful Post:
Richard101 (12-09-08)
-
14-10-08 #80
Registered User
- Join Date
- Mar 2006
- Posts
- 428
- Thanks
- 36
- Thanked 49 Times in 36 Posts
Dragging up an slightly old thread but whats happened to the wiki? Did it get hacked?
-
10-11-09 #81
Registered User
- Join Date
- Apr 2009
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hi Guys,
I know this is an oold thread, but this script is so much better.
where has the wiki for it gone?
http://blog.affiliatefuture.co.uk/AF...FrameworkWiki/
Dave
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Webgains weekly updated merchant promotions
By Emma Delaforce in forum WebgainsReplies: 0Last Post: 24-01-08, 12:46 PM -
Weekly Update: Webgains Current Promotions
By Emma Delaforce in forum WebgainsReplies: 2Last Post: 08-06-07, 10:09 AM -
Promotions & offers from Webgains merchants
By Hero in forum WebgainsReplies: 0Last Post: 10-01-07, 08:57 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks