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:

Shownext! (1998) emailer (1997) redirect from the errorsMessages.db entry (1997) createfolder permissions (2003) WebCat2b12 CGI Mac - [shownext] problem (1997) MySQL Wildcard Trouble (2006) Installing on IIS 5.1 Windows XP Pro - Username/Password (2006) Tea Room trouble (1997) Date problems-more (1997) Restoring textarea stored in header (1998) NT version (1997) Signal Raised Error (1997) [cart] how is it generated (2002) RE: Checkboxes to add to cart... (1998) missing records (1998) Help! WebCat2 bug (1997) [Announce] Newest Commerce Site based on WebCatalog (1997) Generating unique SKU from [cart] - FIXED! (1997) Uh...can someone help me out with the b10? (1997) XML Parse with XML WebDNA Syntax... (2004)