Re: WebCat2: multiple currency support
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10525
interpreted = N
texte = Lars von Olleschik wrote:> > Is it possible to let WebCat2 calculate the price of each product in different currencies and put them on the shoppingcart on the fly?> I could think of a special formula that calculates the different prices according to which currency is needed and to have only one price field inside the database and the variables and values for the calculation formula within the language specific tempHello Lars,I'm French and to have a price in Dollars and in French Francs, I createa convertmonnaie.db like :Devise valeurdollar 5.80where 5,80 is the french value of the US$and in my result template I use the formula :[format ,2f][math][price]/[lookupdb=convertmonnaie.db&lookInField=devise&value=dollar&returnField=valeur][/math][/format]and this give me the equivalent price in US $.You can replace the value dollar by any value you whantJacques VERNAY-- ============================================= - ABSIDIAL - http://www.zarcromcorp.com/absidial Decorez votre vitrine sur l'Internet mailto:absidial@zarcromcorp.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:
Lars von Olleschik wrote:> > Is it possible to let WebCat2 calculate the price of each product in different currencies and put them on the shoppingcart on the fly?> I could think of a special formula that calculates the different prices according to which currency is needed and to have only one price field inside the database and the variables and values for the calculation formula within the language specific tempHello Lars,I'm French and to have a price in Dollars and in French Francs, I createa convertmonnaie.db like :Devise valeurdollar 5.80where 5,80 is the french value of the US$and in my result template I use the formula :[format ,2f]
[math][price]/[lookupdb=convertmonnaie.db&lookInField=devise&value=dollar&returnField=valeur][/math][/format]and this give me the equivalent price in US $.You can replace the value dollar by any value you whantJacques VERNAY-- ============================================= - ABSIDIAL - http://www.zarcromcorp.com/absidial Decorez votre vitrine sur l'Internet mailto:absidial@zarcromcorp.com =============================================------------------------------------To leave this
Talk List send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Jacques VERNAY
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:
WCS Newbie question (1997)
Can I invoke an ssi plugin from within a webcat page (1997)
[ot] Raid Cards for RH ES (2004)
sendmail error (1997)
[LOOKUP] (1997)
Price Not Appearing (2000)
[Listfiles] vs Netfinder (1997)
aloha! (2002)
Nested [xxx] contexts & Bad Suffix (1998)
Log-in Scheme (2003)
Re[2]: Next X hits (1996)
did I miss anything (1997)
Micro-managing External Links (2006)
Mass download. (2003)
killer-format in cart (1998)
WebCat2 several catalogs? (1997)
Sort Order on a page search (1997)
# fields limited? (1997)
Emailer again & again (1997)
WebCatalog NT beta 18 now available (1997)