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:
Error with [applescript] (1999)
Updating a database once per day - An example (1998)
[WebDNA] CORRECTION: 60% failure rate using replace in a loop (2010)
[Sum] function? (1997)
WebCatalog-NT?'s (1996)
formulas.db ?? (1998)
A question for the experts (2000)
Bad cookie (1998)
Plugin or CGI or both (1997)
how to use WebCat w. SSL & CyberCash (1998)
Unexpected error (1997)
IE Cache Problems... (1999)
Max Record length restated as maybe bug (1997)
Error Lob.db records error message not name (1997)
Date Formats (1997)
Max Record length (1997)
is [math] busted somehow in 3.05b10? (1999)
Format date.... (2003)
[format 40s]text[/format] doesn't work (1997)
A little help on e-mail (HELP!!! :-) ) (1998)