[price] via a search

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 22023
interpreted = N
texte = I have a products.db which contains: sku price 1001 [search db=someother.db&eqskudatarq=[sku]][founditems][Cost][/founditems][/search] etc etcThen in my templates I would wrap all references to [price] inside of an [interpret] context and the values are returned correctly. This works fine for all my purposes except adding items to the cart. When using the $add command (according to the docs) a hidden lookup is done in order to add the [price] to the cart. Now since this is done behind the scenes I can't wrap the lookup inside of [interpret] so the [price] search code is never executed.So... any ideas on how to get around this? I know you can't force the price into the cart. Any tricks on forcing the code in the database to be executed prior to the $add? BTW - the search code above is greatly simplified to illustrate the problem (otherwise I'd just search the other db of course). Thanks Marty Schmid Associated Messages, from the most recent to the oldest:

    
  1. Re: [price] via a search (PCS Technical Support 1998)
  2. [price] via a search (Marty Schmid 1998)
I have a products.db which contains: sku price 1001 [search db=someother.db&eqskudatarq=[sku]][founditems][Cost][/founditems][/search] etc etcThen in my templates I would wrap all references to [price] inside of an [interpret] context and the values are returned correctly. This works fine for all my purposes except adding items to the cart. When using the $add command (according to the docs) a hidden lookup is done in order to add the [price] to the cart. Now since this is done behind the scenes I can't wrap the lookup inside of [interpret] so the [price] search code is never executed.So... any ideas on how to get around this? I know you can't force the price into the cart. Any tricks on forcing the code in the database to be executed prior to the $add? BTW - the search code above is greatly simplified to illustrate the problem (otherwise I'd just search the other db of course). Thanks Marty Schmid Marty Schmid

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:

Re[2]: Enhancement Request for WebCatalog-NT (1996) Navigator 4.01 (1997) Payment Processors (2005) plugin-acgi, different results (1997) Feature Request (2003) Netscape v. IE (1997) WebCat-Typhoon-WebTen (1998) Dummy Credit Card Number for debug? (1997) BUG REPORT -- Refusing connections! (1999) Re:2nd WebCatalog2 Feature Request (1996) [append] and SSL (1997) RE: Checkboxes to add to cart... (1998) &FieldNametype=time unnecessary? (2000) No luck with taxes (1997) access denied problem (1997) Duplicate Cart Problem in Netscape SOLUTION (2000) WebCatalog 2.1b4/Mac available (1997) Math with Time (1997) Searching multiple Databases (1997) checkbox results written to a database (1999)