osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Get 1 Free

This is a discussion on Get 1 Free within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Corrected Package for version 1.4. There was a typo in the includes/functions/get_1_free.php file Change // Auto expire ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 03-02-2008, 02:14 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,203
Thanks: 66
Thanked 291 Times in 277 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Get 1 Free

Corrected Package for version 1.4.

There was a typo in the includes/functions/get_1_free.php file

Change

// Auto expire products on get_1_free
function tep_expire_get_1_free() {
$get_1_free_query = tep_db_query("select get_1_free_id from " . TABLE_GET_1_FREE . " where status = '1' and now() >= get_1_free_expires_date and get_1_free_expires_date > 0");
if (tep_db_num_rows($specials)) {
while ($get_1_free = tep_db_fetch_array($get_1_free_query)) {
tep_set_get_1_free_status($get_1_free['get_1_free_id'], '0');
}
}
}


to

// Auto expire products on get_1_free
function tep_expire_get_1_free() {
$get_1_free_query = tep_db_query("select get_1_free_id from " . TABLE_GET_1_FREE . " where status = '1' and now() >= get_1_free_expires_date and get_1_free_expires_date > 0");
if (tep_db_num_rows($get_1_free_query)) {
while ($get_1_free = tep_db_fetch_array($get_1_free_query)) {
tep_set_get_1_free_status($get_1_free['get_1_free_id'], '0');
}
}
}


More...
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Get 1 Free michael_s New osCommerce Contributions 0 11-30-2007 06:10 AM
Get 1 Free michael_s New osCommerce Contributions 0 11-17-2007 03:31 AM
Get 1 Free michael_s New osCommerce Contributions 0 03-28-2007 08:03 PM
Get 1 Free michael_s New osCommerce Contributions 0 03-27-2007 05:50 PM
Get 1 Free michael_s New osCommerce Contributions 0 03-27-2007 03:00 PM


All times are GMT -8. The time now is 07:04 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax