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 Eagle StarNine Technologies http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. 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 Eagle StarNine Technologies http://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:

WebCat & WebTen (1997) Running _every_ page through WebCat ? (1997) Replacing a price with text (1998) redirect from the errorsMessages.db entry (1997) Help Encrypt/Decrypt eMail (2003) 'does not contain' operator needed ... (1997) Error 11 (1996) Signal Raised (1997) Not really WebCat (1997) WC1.6 to WC2 date formatting (1997) WebCatalog Upgrade Pricing? (1997) WCS Newbie question (1997) Make sure I understand this??? (1997) Possible Bug in 2.0b15.acgi (1997) Relevancy Rating (1998) my price won't move (1997) RE: Database field limit? (1998) RE: Formulas.db + Users.db (1997) Problems with [Applescript] (1997) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997)