Re: WebCat2: multiple currency support
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10569
interpreted = N
texte = >Is it possible to let WebCat2 calculate the price of each product in different currencies and put them on the shoppingcart on the fly?Yes. Add an extra parameter to your $Add and $ShowCart and $Purchase hyperlinks that tells which currency to use, such as $Add?currency=drachma. Then put [showif [currency]=drachma]... into your formulas.db for price.>An second question: I'd like to calculate shipping cost acording to the final weight of the whole order. Is that possible? Yes. Put the weight of the product into the product database, and either add up the weight in your [lineitems] loop, or change the Formulas.db shipCost formula to add up all the weights and calculate the cost there.Formulas.db:shipCost [math]1.75*([LineItems][weight]+[/LineItems]0)[/math]Grant Hulbert, V.P. Engineering | Tools for WebWarriorsPacific Coast Software | WebCatalog, WebCommerce Solution11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMasterSan Diego, CA 92128 |619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com------------------------------------To leave this talk list send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Associated Messages, from the most recent to the oldest:
>Is it possible to let WebCat2 calculate the price of each product in different currencies and put them on the shoppingcart on the fly?Yes. Add an extra parameter to your $Add and $ShowCart and $Purchase hyperlinks that tells which currency to use, such as $Add?currency=drachma. Then put [showif [currency]=drachma]... into your
formulas.db for price.>An second question: I'd like to calculate shipping cost acording to the final weight of the whole order. Is that possible? Yes. Put the weight of the product into the product database, and either add up the weight in your
[lineitems] loop, or change the
formulas.db shipCost formula to add up all the weights and calculate the cost there.
formulas.db:shipCost
[math]1.75*(
[lineitems][weight]+[/LineItems]0)[/math]Grant Hulbert, V.P. Engineering | Tools for WebWarriorsPacific Coast Software | WebCatalog, WebCommerce Solution11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMasterSan Diego, CA 92128 |619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com------------------------------------To leave this
Talk List send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Grant Hulbert
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:
WebCatalog 3.0.8 is on FTP... (2000)
Browser Problem?!? Still getting Error message using POST! (1997)
different ship dates and shopping carts -- how to? (1997)
Sorting by date (1997)
Reversed words (1997)
what does [url] copy [/url] really do? (2000)
Help! WebCat2 bug (1997)
Goodbyes (2007)
Tracking inbound links for discounts (1997)
Pull Down Search (2000)
WebDNA version? (2007)
HTML Editors (1997)
using showpage and showcart commands (1996)
Can't add a field (1998)
Authenticate (1997)
MacAuthorize order data fields WAS:How To question... (1997)
WC Host Needed (2000)
Attn: Bug in GeneralStore example b15 (1997)
[WebDNA] WebDNA Crashing or Not (2008)
Error Lob.db records error message not name (1997)