Re: Problem 2 of 2 (was: Shipping Confusion)
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35312
interpreted = N
texte = Hi all,We have three product categories; posters, postcards and books. Postcards and books have taxes and shipping built-in to their price. Posters, on the other hand, do not. The mailing tubes in which we ship the posters cost $5 to mail, and can hold more than one poster. Therefore, the workaround is to detect the presence of a poster in the cart and add a mailing tube to the order (price=$0, unitshipcost=$5). Brilliant. It works. But every time we hit shoppingcart.tpl or invoice.tpl, another mailing tube gets added, and they add up quick. If we can get this going, we're set -- we can figure out how to hide them (to keep people from removing them!) and how to delete the mailing tube from the order if the user removes all posters from the cart (I think), but this has us stuck.The code (with thanks to John Butler and John Peacock) looks like this:[!]This checks the cart for posters, and adds a mailing tube if it finds one![/!][lineitems][showif [url][itemType][/url]=poster][text show=F]needsTube=yes[/text][/showif][/lineitems][hideif [url][SKU][/url]=10001][showif [url][needsTube][/url]=yes][AddLineItem cart=[cart]&db=tantramar_publishing.db&sku=10001][/AddLineItem][/showif][/hideif]It's adding the mailing tube okay, but the [hideif] context doesn't prevent it from adding more mailing tubes, which to my eye, it should. Can anyone spot the problem?-- Regards,Christopher Mackay, Director of Technical ServicesTantramar Interactive, http://www.tantramar.com/506/364-1097 cell: 364-7659 fax: 536-2409NEW! Tantramar Vistas: 360-degree photos of Tantramar.Posters, postcards and a book with bonus CD-ROM for Mac and Windows!On sale at http://www.tantramarpublishing.com/-------------------------------------------------------------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:
Hi all,We have three product categories; posters, postcards and books. Postcards and books have taxes and shipping built-in to their price. Posters, on the other hand, do not. The mailing tubes in which we ship the posters cost $5 to mail, and can hold more than one poster. Therefore, the workaround is to detect the presence of a poster in the cart and add a mailing tube to the order (price=$0, unitshipcost=$5). Brilliant. It works. But every time we hit shoppingcart.tpl or invoice.tpl, another mailing tube gets added, and they add up quick. If we can get this going, we're set -- we can figure out how to hide them (to keep people from removing them!) and how to delete the mailing tube from the order if the user removes all posters from the cart (I think), but this has us stuck.The code (with thanks to John Butler and John Peacock) looks like this:[!]This checks the cart for posters, and adds a mailing tube if it finds one![/!][lineitems][showif [url][itemType][/url]=poster][text show=F]needsTube=yes[/text][/showif][/lineitems][hideif [url][SKU][/url]=10001][showif [url][needsTube][/url]=yes][AddLineItem cart=[cart]&db=tantramar_publishing.db&sku=10001][/AddLineItem][/showif][/hideif]It's adding the mailing tube okay, but the [hideif] context doesn't prevent it from adding more mailing tubes, which to my eye, it should. Can anyone spot the problem?-- Regards,Christopher Mackay, Director of Technical ServicesTantramar Interactive, http://www.tantramar.com/506/364-1097 cell: 364-7659 fax: 536-2409NEW! Tantramar Vistas: 360-degree photos of Tantramar.Posters, postcards and a book with bonus CD-ROM for Mac and Windows!On sale at http://www.tantramarpublishing.com/-------------------------------------------------------------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/
Christopher Mackay
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:
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
WCS Newbie question (1997)
WAY Off-Topic (2004)
searching with if/then (2004)
[WebDNA] Digest from talk@webdna.us (2018)
no global [username] or [password] displayed ... (1997)
Can't use old cart file (was One more try) (1997)
HELP WITH DATES (1997)
WebCommerce: Folder organization ? (1997)
Slow [spawn] (2003)
[WebDNA] Random Numbers no repeat within a range (2014)
Cart # Starting at 1000 (2000)
RE: is sku a REQUIRED field on NT (1997)
Don't tick me off :) [elaspedtime] (1997)
[WebDNA] Website almost dead? (2016)
all records returned. (1997)
Credit Card Gateways (2005)
Passing Variables.. yikes, I'm dumb (2000)
migrating from MacOS to unix (2000)
Universal root for WC errors? (1997)