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 WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San 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.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat2: multiple currency support (Grant Hulbert 1997)
  2. Re: WebCat2: multiple currency support (Jacques VERNAY 1997)
  3. WebCat2: multiple currency support (ollesch@muenster.de (Lars von Olleschik) 1997)
>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 WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San 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.com with BODY unsubscribe 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:

AuthorizeNet Declines (2005) Another question about credit cards (1997) Multi-processor Mac info ... (1997) redirect with frames (1997) ampersand in a sendmail body (2007) Help formatting search results w/ table (1997) Blocking form spam (2006) showif comparison begins w/ and contains (1997) WebDNA Server Not Running (2005) Credit Card Number checking (1997) Database Helper missing? (2000) Banners (1997) Off Topic: Personal Web Server (1998) Backwards list behavior ... (1997) [WebDNA] WebDNA 6.0a - CentOS 4.7 Server Quick Start Guide (2008) [WebDNA] Query re: autonumber (2010) RE: [WebDNA] html email.. should be a no-brainer.. but it is not parsing. (?) (2010) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Database wiped clean (2005) Can't load tmpl files (1997)