Re: 2.0Beta Command Ref (can't find this instruction)

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10486
interpreted = N
texte = I have a question about _why_ you're doing this, but I'll ask it at the end.>But I can't get it to take on a >[replace=product.db&eqskudata=[sku]]&pvprice=[pvprice][/replace] )with the >modified value of pvpriceIs pvprice a field in your database? If not, then no amount of pvprice=xx will be able to replace a field that doesn't exist.The syntax for replace with a database that has a price field is [replace db=product.db&eqskudata=[sku]]price=[math][price]*.95[/math][/replace]Notice there is no = after replace, and there is no & at the beginning of the interior of the replace context.Also [math][pvprice]=[pvprice]*.95[/math] doesn't make sense; remember that anything with [] around it gets substituted with its real value _first_, so the line above would read[math]6.45=6.45*.95[/math], which is not possible.These are just little syntax problems, but they make the whole thing not work. ----------So, why are you doing this temporariy price thing? Is it to give certain persons a discount while they're at your site? If so there are much better ways to do that, and they don't require modifications to your database.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: 2.0Beta Command Ref (can't find this instruction) (Grant Hulbert 1997)
  2. Re: 2.0Beta Command Ref (can't find this instruction) (grichter@panavise.com (Gary Richter) 1997)
  3. Re: 2.0Beta Command Ref (can't find this instruction) (Grant Hulbert 1997)
  4. 2.0Beta Command Ref (can't find this instruction) (grichter@panavise.com (Gary Richter) 1997)
I have a question about _why_ you're doing this, but I'll ask it at the end.>But I can't get it to take on a >[replace=product.db&eqskudata=[sku]]&pvprice=[pvprice][/replace] )with the >modified value of pvpriceIs pvprice a field in your database? If not, then no amount of pvprice=xx will be able to replace a field that doesn't exist.The syntax for replace with a database that has a price field is [replace db=product.db&eqskudata=[sku]]price=[math][price]*.95[/math][/replace]Notice there is no = after replace, and there is no & at the beginning of the interior of the replace context.Also [math][pvprice]=[pvprice]*.95[/math] doesn't make sense; remember that anything with [] around it gets substituted with its real value _first_, so the line above would read[math]6.45=6.45*.95[/math], which is not possible.These are just little syntax problems, but they make the whole thing not work. ----------So, why are you doing this temporariy price thing? Is it to give certain persons a discount while they're at your site? If so there are much better ways to do that, and they don't require modifications to your database.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:

Execute Applescript (1997) Multiple prices (1997) HTML Editors (1997) [shell] (2002) [ListFiles] context & alias (1997) [OT] HTML Table Cell Problem (2003) [WebDNA] MD5 Hash issue (2009) OSX Applescripts -- Anyone? please? (2004) [interpret] inside the db field? (1997) RE: IIS4b2 and WebCatalog b19 (1997) Searching by Date Comparison (2000) Where is f2? (1997) [referrer] tag (1997) Line items in table cells (1997) SiteGaurd file Cache vs webcatalog cache (1997) [WebDNA] Max upload file size (2010) Shopping problems with 2.1b3 acgi (1997) WebCat2 - Getting to the browser's username/password data (1997) RequiredFields notes ... (1997) b12 cannot limit records returned and more. (1997)