[lineitems /webcatalog/webmerchant/completedOrders/[filename]]SKU =[sku]
[search db=/files/totalSales.db&waskudata=[sku]]Number of found items forfirst search: [numfound]
[showif [numfound]>0]greater than 0, therefore we are going to perform areplace. [founditems]in found items:
[replacedb=/files/totalSales.db&waSKUdata=[sku]]totalSold=[math][totalSold]+[quantity][/math][/replace] [/founditems] [/showif] [showif [numfound]=0]including... [hideif [sku]^_][includefile=includes/append.inc&quantity=[quantity]&sku=[sku]][/hideif][showif[sku]^_]downloadable, not added[/showif] [/showif] end of lineitem,
[/search] [/lineitems] [/orderfile][/listfiles](The goal of this code is to track the quantities of products sold from ouronline store... Like a counter...)TIA!Nathan HydeInternet ServicesCasady & Greeneemail: nh_is@casadyg.com, nhyde@mail3.casadyg.comweb page: http://www.casadyg.comMacBundle.com: http://www.macbundle.comWinBundle.com: http://www.winbundle.com
Associated Messages, from the most recent to the oldest:
|
[lineitems /webcatalog/webmerchant/completedOrders/[filename]]SKU =[sku]
[search db=/files/totalSales.db&waskudata=[sku]]Number of found items forfirst search: [numfound]
[showif [numfound]>0]greater than 0, therefore we are going to perform areplace. [founditems]in found items:
[replacedb=/files/totalSales.db&waSKUdata=[sku]]totalSold=[math][totalSold]+[quantity][/math][/replace] [/founditems] [/showif] [showif [numfound]=0]including... [hideif [sku]^_][includefile=includes/append.inc&quantity=[quantity]&sku=[sku]][/hideif][showif[sku]^_]downloadable, not added[/showif] [/showif] end of lineitem,
[/search] [/lineitems] [/orderfile][/listfiles](The goal of this code is to track the quantities of products sold from ouronline store... Like a counter...)TIA!Nathan HydeInternet ServicesCasady & Greeneemail: nh_is@casadyg.com, nhyde@mail3.casadyg.comweb page: http://www.casadyg.comMacBundle.com: http://www.macbundle.comWinBundle.com: http://www.winbundle.com
Nathan Hyde DOWNLOAD WEBDNA NOW!
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...