RE: Discounting prices across a site
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13551
interpreted = N
texte = Gil ->Question: I am now charged with offering price discounts to visitors>that come from certain sites. I have alredy set up a>[refsite]=TheReferringSite type of thing that will be carried throughout>every link on my site, so I can determine when to offer the discount.>I am now attempting to use [hideIf] and [showIf] to deduct 10% from the>prices for these visitors, which is working. But, do I have to do this>on every single page that displays a price, or is there an easier way to>globally change the price once and have it apply to every page on which>the price appears?If you already have a price formula in your formulas.db, you could just use a [lookup] tag on formulas.db every time you want to display the price. Alternatively, make a separate file that has your [hideif] and [showif] code and use the [include] tag to insert this code everywhere you need to display the price.Hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- RE: Discounting prices across a site (Marc Eagle 1997)
|
Gil ->Question: I am now charged with offering price discounts to visitors>that come from certain sites. I have alredy set up a>[refsite]=TheReferringSite type of thing that will be carried throughout>every link on my site, so I can determine when to offer the discount.>I am now attempting to use
[hideif] and
[showif] to deduct 10% from the>prices for these visitors, which is working. But, do I have to do this>on every single page that displays a price, or is there an easier way to>globally change the price once and have it apply to every page on which>the price appears?If you already have a price formula in your
formulas.db, you could just use a
[lookup] tag on
formulas.db every time you want to display the price. Alternatively, make a separate file that has your
[hideif] and
[showif] code and use the
[include] tag to insert this code everywhere you need to display the price.Hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Marc Eagle
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:
TCP Connect/send and CGI (2003)
Deleting associated records from 2 different databases (2001)
include bug????? (1997)
OT: Need (a tiny bit) of help setting up MySQL (2000)
$Replace with [founditems] (1997)
Multiple prices (1997)
Stopping bad HTML propagation ? (1997)
shipping confusion (2000)
Changing user submitted data (2000)
Problems passing [SKU] with $Replace in 2.0 (1997)
Country & Ship-to address & other fields ? (1997)
Queertrons? (1997)
[WebDNA] Pinterest kinda site? (2013)
Storing calculated data (2002)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
Remote Admin Design Question (1998)
[random] only for 1-100??? (1997)
RAM variables (1997)
Bug Report, maybe (1997)
Unexpected error (1997)