Multiple price fields
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32344
interpreted = N
texte = I get a database export from a customer, where are 3 prices for eachproduct:db_prod_id db_price_1 db_price_2 db_price_31 10 20 302 40 50 603 70 80 90No [price] would go to the cart, because there is no such field.I think about two options:1 - I could write a [price] field to a seperate database before each[addlineitem] and [setlineitem], and put this field into the cart: No needto change the original database, but much more database access during work.2 - I could rearrange the database like this:db_prod_id db_group price1 1 101 2 201 3 302 1 402 2 502 3 603 1 703 2 803 3 90This involves a change of the original database but less db access andshould be faster, even on Linux. Ok, I loose the ability to use [lookup],but since I can do a case sensitive search for the product ID it shouldn'tbe slower.The second option is better, right?Peter-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- Multiple price fields (Peter Ostry 2000)
|
I get a database export from a customer, where are 3 prices for eachproduct:db_prod_id db_price_1 db_price_2 db_price_31 10 20 302 40 50 603 70 80 90No [price] would go to the cart, because there is no such field.I think about two options:1 - I could write a [price] field to a seperate database before each[addlineitem] and [setlineitem], and put this field into the cart: No needto change the original database, but much more database access during work.2 - I could rearrange the database like this:db_prod_id db_group price1 1 101 2 201 3 302 1 402 2 502 3 603 1 703 2 803 3 90This involves a change of the original database but less db access andshould be faster, even on Linux. Ok, I loose the ability to use [lookup],but since I can do a case sensitive search for the product ID it shouldn'tbe slower.The second option is better, right?Peter-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Peter Ostry
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
grouped fields? (1999)
page redirect in webDNA (1997)
Card clearance, problems - solutions? (1997)
[WebDNA] two ideas for running a cluster of WebDNA servers (2019)
Trouble with formula.db (1997)
RE: [WebDNA] OT - JS help (2008)
Order file numbers diferent than the cart number. why? (2000)
WebMerchant 1.6 and https (1997)
Admin User - Users.db (1999)
WebCat2: multiple currency support (1997)
[WebDNA] FastCGI version confusion (2011)
[OT] SMTP gateway software for Mac (1999)
Quitting WebMerchant ? (1997)
WCS Newbie question (1997)
CyberCash problem in OS9/4.5 -> OSX/5.1 transition (2003)
REALLY need a hand (1999)
Plugin or CGI or both (1997)
Fun with dates (1997)
How to unsubscribe (2001)
Grant, please help me ... (1997)