SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old June 1st, 2003, 05:54 AM
john28uk john28uk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 13 john28uk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Esimate / Quote script

Hi

I have been looking without much success for a script which will enable me to give out online quotes, for example if a user wants to buy a computer he/she would be presented with a list of drop down boxes to configure the system to his/her needs, these would be items such as memory/ cpu speed etc, all of which would have differing prices, the items selected would then be added together and a price given to the user.

Can anybody point me in the direction of a prebuilt script, or give me an idea on how I could possible write one to suit my needs

Many Thanks

John

Reply With Quote
  #2  
Old June 1st, 2003, 09:25 AM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 6
Quote:
or give me an idea on how I could possible write one to suit my needs


Certainly. Lets go on what you posted and use custom systems as an example. First, we will examine a sample table structure:
Code:
Table: products_base_systems

   id   |   sku   |   base_price   |   title   |   description   |   etc   |   etc   
--------+---------+----------------+-----------+-----------------+---------+---------
  1001  | 523-69  |    699.99      |  computer |    something    |         |         
--------+---------+----------------+-----------+-----------------+---------+---------
  1002  | 423-39  |    999.99      |  computer |    something    |         |         
--------+---------+----------------+-----------+-----------------+---------+---------

Table: products_upgrade_options

   id   |   option_id   |   base_id   | option_price   
--------+---------------+-------------+---------------
   1    |      32       |    1001     |    79.95           
--------+---------------+-------------+---------------
   2    |      33       |    1001     |    29.95           
--------+---------------+-------------+---------------
   3    |      34       |    1001     |    19.95           
--------+---------------+-------------+---------------
   4    |      32       |    1002     |    69.95           
--------+---------------+-------------+---------------
   5    |      33       |    1002     |    24.95           
--------+---------------+-------------+---------------
   6    |      34       |    1002     |    19.95           
--------+---------------+-------------+---------------

Table: products_hardware

   id   |   sku   |   price   |   title   |   description   |   etc   |   etc   
--------+---------+-----------+-----------+-----------------+---------+---------
   32   |  963-56 |  156.50   |   memory  |   512 meg DDR   |         |         
--------+---------+-----------+-----------+-----------------+---------+---------
   33   |  953-46 |   72.50   |   memory  |   256 meg DDR   |         |         
--------+---------+-----------+-----------+-----------------+---------+---------
   34   |  943-36 |   42.50   |   memory  |   128 meg DDR   |         |         
--------+---------+-----------+-----------+-----------------+---------+---------

Ok - the products_base_systems holds the system information. This is the table you will draw the information from to display the information to the user - product images, description, price, details, etc. will come from this table.

To get your available upgrade options for each of these systems, you would draw the information from the products_upgrade_options table. If you study the structure of this table, you will see the linkage to the products_hardware table where the information for each upgrade option (except the upgrade price) resides.

Once the user selects the available options, it is a matter of building the query to retrieve all of the data and summing it up to show the new price with all the relative information...
__________________
~ Joe Penn

We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set?

Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you.




Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Esimate / Quote script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway