Re: 2nd Request for help/advice on variable pricing + MORE

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34903
interpreted = N
texte = >> But, is there any reason I can't just write all the ad data (including >> price, the big problem) to a database, including the cart number, but call >> that SKU in the database. Then, have a purchase this item link or button >> on a shoppingcart.tpl-like page (from the Tea Room example) that goes into >> that temp database and adds the sku=[cart] item, with its pre-calculated >> price already entered into the database. If I do that, I won't have to worry >> about using a formula to generate the price, right? > > well I think it will amount to the same level of complexity. If you can code > the logic you need to get a dynamic price, then you can stick that logic in > the proce formula or you can stick it somewhere else. It amount to the same > thing no? The advantage of using the price formula is that it works in > conjunction with other webcat features - which will save you hassle over the > long run. The more times you bypass typical setup the more hassle it will be > for you overall. Don't be afraid of formulas... they are your friend! Just > ask for help when/if you get stuck.I'll work on getting the formula to work, so I'll know how to do it in the future, if nothing else.> also a good trick when trying to figure out code once you know what it should > ultimately do is to write it out step by step in English. > > Like here's one I wrote myself today:> Then you replace the english sentences with WebDNA step by step. You can get > thru long very hairy code pots o' spaghetti that wayThat's a good idea. I have outlined the project a couple of different ways. I generally try to take the bigger to smaller approach to coding, but the English to WebCat method you described seems like a great idea. I'll try it.Thanks again for all the help!Cheers,Steve ------------------------------------------------ Steven Jarvis Web Developer sjarvis@nwaonline.netMorning News of Northwest Arkansas http://www.nwaonline.net ------------------------------------------------------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
>> But, is there any reason I can't just write all the ad data (including >> price, the big problem) to a database, including the cart number, but call >> that SKU in the database. Then, have a purchase this item link or button >> on a shoppingcart.tpl-like page (from the Tea Room example) that goes into >> that temp database and adds the sku=[cart] item, with its pre-calculated >> price already entered into the database. If I do that, I won't have to worry >> about using a formula to generate the price, right? > > well I think it will amount to the same level of complexity. If you can code > the logic you need to get a dynamic price, then you can stick that logic in > the proce formula or you can stick it somewhere else. It amount to the same > thing no? The advantage of using the price formula is that it works in > conjunction with other webcat features - which will save you hassle over the > long run. The more times you bypass typical setup the more hassle it will be > for you overall. Don't be afraid of formulas... they are your friend! Just > ask for help when/if you get stuck.I'll work on getting the formula to work, so I'll know how to do it in the future, if nothing else.> also a good trick when trying to figure out code once you know what it should > ultimately do is to write it out step by step in English. > > Like here's one I wrote myself today:> Then you replace the english sentences with WebDNA step by step. You can get > thru long very hairy code pots o' spaghetti that wayThat's a good idea. I have outlined the project a couple of different ways. I generally try to take the bigger to smaller approach to coding, but the English to WebCat method you described seems like a great idea. I'll try it.Thanks again for all the help!Cheers,Steve ------------------------------------------------ Steven Jarvis Web Developer sjarvis@nwaonline.netMorning News of Northwest Arkansas http://www.nwaonline.net ------------------------------------------------------------------------------------------------------------- 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://search.smithmicro.com/ Steven Jarvis

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:

Un[url]ize (1999) quantity minimum problem (1997) Help formatting search results w/ table (1997) best way to get 2 unique strings on the same page load? (2000) NT 2.1b10 (1998) Separate SSL Server (1997) RE: Unexceling (was I need a smart quote...) (1999) [OT] Netscape Browser Window (2001) WebTen and WebCat (1997) searchable list archive (1997) Dates (1996) Snake Bites (1997) temporary database? an aside (2000) Emailer Set Up (1997) Hello??? (1997) Line Feed problems ... (2002) Help! WebCat2 bug (1997) New index for docs (1997) OH MY GOD! (1998) Webmerchant confirmation hooks? (1997)