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:
Search design (1997)
Word wrapping (1997)
Enhanced Master Counter? (1997)
math a various prices (1997)
WebCat2: Items xx to xx shown, etc. (1997)
Redirect Possible???????? (2001)
Strange Date happenings (2007)
Not reading blanks (1998)
Progress !! WAS: Trouble with formula.db (1997)
controlling user input (1998)
transferring values (1998)
Tiny Store (1998)
Working HTML email (2001)
Help!!!! (1999)
how to get [protect] tag from webcat3b3 to 3.03 on IIS working (1998)
Speed Optimization - Mac (1997)
[WebDNA] Successful, working WebDNA7/CentOS install? (2013)
[date] problem with %d%m%Y (1998)
File Uploads: WebCat/SiteEdit (1998)
Include a big block of text (1997)