osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Choice of Free Gifts Module

This is a discussion on Choice of Free Gifts Module within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Database Modifications: Add Configuration Group: INSERT INTO `configuration_group` VALUES ('', 'Free Gift', 'Free Gift Configuration', '17', '1'); Please get the ...


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 04-15-2008, 02:03 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,436
Thanks: 73
Thanked 334 Times in 313 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 Choice of Free Gifts Module

Database Modifications:

Add Configuration Group:

INSERT INTO `configuration_group` VALUES ('', 'Free Gift', 'Free Gift Configuration', '17', '1');


Please get the configuration_id that the db has generated, as it will be required for the next step!
AND CHECK THE LASTconfiguration_id IN configuration AND add in LAST1 and LAST2 below.
example your last number is 143, you add in 144 and 145.

Please replace 'ID' with the id generated from stage 1

Add Configuration Items:


INSERT INTO `configuration` VALUES ('LAST1', 'Minimum Spend', 'FREE_GIFT_MINIMUM_SPEND', '30.00', 'Minimum Spend to Qualify For The Free Gift', 'ID', '1', '2007-08-08 15:24:50', '2007-08-07 19:16:00', null, null);

INSERT INTO `configuration` VALUES ('LAST2', 'Free Gift Category', 'FREE_GIFT_CATEGORY', '96', 'The category that contains all of the potentially free items', 'ID', '2', '2007-08-11 11:02:05', '2007-08-07 19:16:00', 'tep_cfg_get_cat_name', 'tep_cfg_pull_down_cat_list(');


Add Free Gift Orders Table

CREATE TABLE `orders_freegift` (
`orders_freegift_id` int(11) NOT NULL auto_increment,
`orders_id` int(11) default NULL,
`products_id` int(11) default NULL,
`products_model` varchar(12) default NULL,
`products_name` varchar(64) default NULL,
PRIMARY KEY (`orders_freegift_id`)
) TYPE=MyISAM;




Database Modifications Complete

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.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
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
Choice of Free Gifts Module michael_s New osCommerce Contributions 0 02-28-2008 01:12 AM
Choice of Free Gifts Module michael_s New osCommerce Contributions 0 02-28-2008 12:00 AM
Choice of Free Gifts Module michael_s New osCommerce Contributions 0 11-02-2007 07:25 AM
Choice of Free Gifts Module michael_s New osCommerce Contributions 0 08-11-2007 03:25 AM
Gifts module josemanuel osCMax v2 Customization/Mods 0 11-22-2006 06:39 PM


All times are GMT -8. The time now is 10:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax