![]() |
|
|
#1
|
|||
|
|||
|
New twist on the price calculator...
Now that the price calculator is working smoothly (see previous post - thanks frankm), I've got to throw a wrench in the works. Whereas the last version recalculated price based on one set price and the quantity chosen, this version has different price options.
Previous version (with a few tweaks): php Code:
This is where it gets strange... #thispic.price# is the price for the item specified in the dB query. However, each item can have several variations, which are retrieved from the dB like so (query name="addon"): php Code:
php Code:
The issue here is that I want to recalculate price everytime either menu is changed. If a different price point is selected in the 1st menu, the displayed price ("subT") must be recalculated according to the quantity specified in the 2nd. My thought was to merely change the function to look like this: php Code:
thanks again |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Love calculator | truelysam | Buy, Sell or Trade | 7 | May 14th 2008 3:16 am |
| 100 Directories Submission (lower price!) | bluemouse2 | Services | 22 | May 14th 2005 1:05 am |
| Need help determining the price for a site | retSaMbew | General Business | 5 | Mar 22nd 2005 2:56 pm |
| Amazon.com affiliate program for price search engine | saveontexts | Amazon | 3 | Jan 2nd 2005 9:39 pm |
| What is the price? | schlottke | Link Development | 1 | Jul 9th 2004 6:52 am |