+ Reply to Thread
Page 6 of 6
FirstFirst ... 2 3 4 5 6
  1. #76
    lowndsy is an unknown quantity at this point lowndsy's Avatar 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:
    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()); 
    and delete this line:
    PHP Code:
    $perform_insert=mysql_query($sql); 
    The zip file download has been updated with the fixed version.

  2. The Following User Says Thank You to lowndsy For This Useful Post:

    ChristopherB (09-09-08)

  3. #77
    ChristopherB is an unknown quantity at this point 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.

  4. #78
    Richard101 is an unknown quantity at this point 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

  5. #79
    lowndsy is an unknown quantity at this point lowndsy's Avatar 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.

  6. The Following User Says Thank You to lowndsy For This Useful Post:

    Richard101 (12-09-08)

  7. #80
    ash
    ash is offline
    ash is an unknown quantity at this point 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?

  8. #81
    niravdave is an unknown quantity at this point 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

+ Reply to Thread
Page 6 of 6
FirstFirst ... 2 3 4 5 6

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Webgains weekly updated merchant promotions
    By Emma Delaforce in forum Webgains
    Replies: 0
    Last Post: 24-01-08, 12:46 PM
  2. Weekly Update: Webgains Current Promotions
    By Emma Delaforce in forum Webgains
    Replies: 2
    Last Post: 08-06-07, 10:09 AM
  3. Replies: 0
    Last Post: 10-01-07, 08:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Content Relevant URLs by vBSEO 3.5.0 RC2