PDA

View Full Version : Get 1 Free



michael_s
02-21-2008, 12:00 PM
This version adds the function to remove the offer once the expire date has passed..


+++++++++++++++++++++
Upgrade v 1.3 to 1.4:
+++++++++++++++++++++

========================
Changes in this version:
========================

Bug fixes/Features:
* Auto expire now works.

===============
Modified Files:
===============

The following files have been modified from v 1.2:

catalog/includes/application_top.php



=============
Installation:
=============

Modify or replace the above files. See the following sections.



=============
Modify Files:
=============

First, open catalog/includes/application_top.php and find the following code

---------------------------------------------------------------------------------------
// auto expire special products
require(DIR_WS_FUNCTIONS . 'specials.php');
tep_expire_specials();

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

add after
---------------------------------------------------------------------------------------
// auto expire get_1_free products
require(DIR_WS_FUNCTIONS . 'get_1_free.php');
tep_expire_get_1_free();

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

Upload

catalog/includes/function/get_1_free.php



++++++++++++++++++++++++++++
End of Upgrade v 1.3 to 1.4
++++++++++++++++++++++++++++
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


More... (http://addons.oscommerce.com/info/4990)