the dreaded unitShipCost
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53786
interpreted = N
texte = okay. this has me going completely nuts.In one of our stores, you can add stuff to the cart and it calculates theprice, unitshipcost and tax based on the formulas database.the code that runs when you add something to your cart is as follows:[AddLineItemcart=[newcart]&sku=[sku]&db=/db/products.db]quantity=1[/AddLineItem]now, each time a user adds something to his cart i record this in a databaseso that, if they ever return to the site and log in again, i can ressurectthe contents of any un-purchased carts. The reason i store it in thedatabase is because the carts directories get cleared out every 1440 minutesor something... so they are not always available. the above code works fineand adds price, shipcost and tax perfectly each time.the problem i have is that when somebody returns to the site and the coderuns to re-add the contents of their old cart to their new one, itcompletely misses the unitshipcost.here is the code that re-adds the products:[searchdb=/db/existing_detail.db&eqEXISTING_IDdatarq=[EXISTING_ID]&asLINE_IDsort=1&LINE_IDtype=number][founditems] [AddLineItemcart=[newcart]&sku=[PROD_SKU]&db=/db/products.db]quantity=1[/AddLineItem][/founditems][/search]now i don't understand why the unitshipcost is calculated correctly andavailable in the first instance and not in the second. does anybody have anyideas????-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
okay. this has me going completely nuts.In one of our stores, you can add stuff to the cart and it calculates theprice, unitshipcost and tax based on the formulas database.the code that runs when you add something to your cart is as follows:[AddLineItemcart=[newcart]&sku=[sku]&db=/db/products.db]quantity=1[/AddLineItem]now, each time a user adds something to his cart i record this in a databaseso that, if they ever return to the site and log in again, i can ressurectthe contents of any un-purchased carts. The reason i store it in thedatabase is because the carts directories get cleared out every 1440 minutesor something... so they are not always available. the above code works fineand adds price, shipcost and tax perfectly each time.the problem i have is that when somebody returns to the site and the coderuns to re-add the contents of their old cart to their new one, itcompletely misses the unitshipcost.here is the code that re-adds the products:[searchdb=/db/existing_detail.db&eqEXISTING_IDdatarq=[EXISTING_ID]&asLINE_IDsort=1&LINE_IDtype=number][founditems] [AddLineItemcart=[newcart]&sku=[PROD_SKU]&db=/db/products.db]quantity=1[/AddLineItem][/founditems][/search]now i don't understand why the unitshipcost is calculated correctly andavailable in the first instance and not in the second. does anybody have anyideas????-------------------------------------------------------------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://webdna.smithmicro.com/
"Andrew Simpson"
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:
[table] strange behaviour REAL solution (2003)
WebCatalog for guestbook ? (1997)
How can I Add several Items into the cart at once? (1997)
Silly Question (1997)
Cart questions (1997)
[WebDNA] FreeBSD (2009)
PCS Frames (1997)
Testing ... (2002)
textA (1998)
WCS Newbie question (1997)
Storing calculated data (2002)
Problem with updating to 2.1.1 (1998)
my price won't move (1997)
[delete] problem (1997)
WebCatalog and Webstar 3.02 (1998)
Identical [Replace] contexts, different results in different directories? (2000)
Introduction/Tutorial/QuickStart (1997)
I'm new be kind (1997)
Robots fill event log (1997)
Where is eudora plugin? (1998)