Re: StoreBuilder Easily change a SKU

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58075
interpreted = N
texte = At 3:50 PM -0700 5/26/04, Sal wrote: >Thought someone might find this useful. > >I added a link for ChangeSku.tpl to the admin/search.tpl in storebuilder to >easily change the SKU for a product. > >[!]PUT THIS FILE IN THE DIRECTORY THAT HOLDS YOUR PRODUCTS.DB[/!] > >
>Choose the Product Title of the SKU you want to Change: [search >db=products.db&neSKUdata=FIND_ALL][/search]
>Enter The NEW SKU:
> > >
> >[showif [process]=T] >[Replace >db=products.db&eqTITLEdatarq=[__title]]sku=[__sku][/Replace] >The Sku is now Changed
> [/showif] You're going to have problems if the TITLE field contains & or perhaps if it contains other special characters such as = . Why not just change the SKU directly? Make your select like this: and your replace like this: [Replace db=products.db&eqSKUdatarq=[__oldSKU]]sku=[url][__sku][/url][/Replace] Perhaps you didn't realize that you can actually change the field that you're using for the replace with a new value. Also you need to [url] the new SKU value since a human entering 123&456 into the form field will screw up your database. ~joe -- _______________________________________________________________ Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Century webhosting ~ co-location ~ wireless access ~ WebCat programming ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: StoreBuilder Easily change a SKU ( Joe D'Andrea 2004)
  2. StoreBuilder Easily change a SKU ( "Sal" 2004)
At 3:50 PM -0700 5/26/04, Sal wrote: >Thought someone might find this useful. > >I added a link for ChangeSku.tpl to the admin/search.tpl in storebuilder to >easily change the SKU for a product. > >[!]PUT THIS FILE IN THE DIRECTORY THAT HOLDS YOUR PRODUCTS.DB[/!] > >
>Choose the Product Title of the SKU you want to Change: [search >db=products.db&neSKUdata=FIND_ALL][/search]
>Enter The NEW SKU:
> > >
> >[showif [process]=T] >[Replace >db=products.db&eqTITLEdatarq=[__title]]sku=[__sku][/Replace] >The Sku is now Changed
> [/showif] You're going to have problems if the TITLE field contains & or perhaps if it contains other special characters such as = . Why not just change the SKU directly? Make your select like this: and your replace like this: [Replace db=products.db&eqSKUdatarq=[__oldSKU]]sku=[url][__sku][/url][/Replace] Perhaps you didn't realize that you can actually change the field that you're using for the replace with a new value. Also you need to [url] the new SKU value since a human entering 123&456 into the form field will screw up your database. ~joe -- _______________________________________________________________ Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Century webhosting ~ co-location ~ wireless access ~ WebCat programming ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Joe D'Andrea

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:

PR: Internet Cleanup 4.0 for Mac released (2006) WebDNA's portability (2007) A Global Variable (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Sort Order on a page search (1997) AddLineItem Problem (1997) WebDNA Solutions ... sorry! (1997) Multiple Newcarts (1996) whole word matching (2004) Cart Database (1999) Separate SSL Server (1997) [Fwd: F3 database munching] (1997) Cant open pages generated by Webcat (2004) Help! WebCat2 bug (1997) Showif Error Generated... (2003) Purchased cart being overwritten - still !?? (1997) Browser Problem?!? Still getting Error message using POST! (1997) Online magazine- monthly updates and such (1999) old 3.0 mac license for sale? (2003) Webcatalog server support (1997)