Re: multiple prices

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20752
interpreted = N
texte = Tim, It's hard for me to tell exactly what the problem is, but one thing that may be the case is that you need to treat [header1] not like a regular variable but as a special orderfile variable. You must set it during an Add command or a addlineitem or setlineitem context. The value of header1 is actually written into the cart file in those commands/contexts, so you'll have access to it on any $showcart page or within an orderfile context. *and* your price calculation will have proper access to it. Hope that helps. There's definitely a learning curve here...! Yours in Success,Luke At 5:58 PM 10/28/98, you wrote:>>>>hmmm I still don't think I'm doing this right on search.tpl I haveCourier<
We will need to know if you are a Member of ANLA <
<<
Along with the code from the rest of the general store template with a few sort modifcations which are working.On Results.tpl I have:Courier< along with the rest of results.tpl In formulas.db I have:Name Formulaprice [lookup db=catalog.txt&lookinField=sku&value=[sku]&returnField=[header1]]But on shoppingcart.tpl the price is still $0 Any Ideas?It went.....>>>>Tim, First off, you'll probably want to store the customer's membership status in a header variable like header1 instead of in each lineitem. the price calculation would be something like: [lookup db=catalog.txt&lookinField=sku&value=[sku]&returnField=[header1]] where you've got memis or nonis stored in [header1]. Then, if you want to change the price after the item has been added to the cart (i.e. they changed membership status), you'll also need to use a [setlineitem...] context like [lineitems][SetLineItem cart=[cart]&index=[lineindex]]password=yourpassword&price=[include incs/pricecalc.inc][/SetLineItem][/lineitems] where pricecalc.inc contains the same thing as the price line of your Forumlas.db. Good luck! Luke MeliaUpline P.S. I'm considering moving to San Diego. Anyone doing website development with WebDNA there? At 2:48 PM 10/28/98, you wrote:>>>>Okay what I've done is have two fields in the database, one called [memis] for member price and one called [nonis] for non-member price. both are veiw on the resutls and detail pages. On shoppingcart.tpl I have the form CourierMembershipStatus:<<in formulas.db I've tried-- price [textb] and -- price [lookup db=catalog.txt&lookinField=[textb]&returnField=price]Neither of these seems to work, any ideas? Thanks Tim I originally went.....>Add a field to the product database called MemberPrice and use a entry in>formulas.db to return the proper price based on the customers membership>status.>>Luke>>At 5:43 PM 10/27/98, you wrote:>>Hi all>>>>I'm using the general store template to build a rather simple publications>>catalog. The problem I'm having is that there is one price for members and>>a seperated price for non-members assigned to each sku. Now I know I can>>either duplicate the whole database and have two different entry points and>>have the price field different in the memberstore and nonmemberstore>>catalogs. I guess I could also duplicate each line item and change sku's>>and put in some sort of sorting field on each page to get the>>member/nonmember listing. Either way the vendor will confirm member>>status when they recieve the order. I guess what I'm trying to ask is there>>some extreemly simple way to set this up?>>>>Thanks>>>>Tim Taylor>>Webmaster>>http://www.growzone.com>>Tim@versa.com>>t h e s i t e f o r t h e>>g r e e n i n d u s t r y>>1.888.800.5904>>>___________________________________________________________________________>Upline Subscribers succeed faster. Find out why:>Send e-mail to why@upline.com for an instant FREE report!>___________________________________________________________________________>For software for Network Marketers, check out http://www.kaizensoft.com>Upline is Online: http://www.upline.com>___________________________________________________________________________> ============================ Luke Melia>|| In between stimulus ||>|| and response, || Snail Mail:>|| there is a small || 106 South St. Suite 209>|| space... || Charlottesville, VA 22902> ======= Victor Frankl ======= (804) 979-4427 x136<<<<<<<< ___________________________________________________________________________Upline Subscribers succeed faster. Find out why:Send e-mail to why@upline.com for an instant FREE report!___________________________________________________________________________For software for Network Marketers, check out http://www.kaizensoft.comUpline is Online: http://www.upline.com___________________________________________________________________________ ============================ Luke Melia|| In between stimulus || || and response, || Snail Mail:|| there is a small || 106 South St. Suite 209|| space... || Charlottesville, VA 22902 ======= Victor Frankl ======= (804) 979-4427 x136<<<<<<<<<<<<<<<< ___________________________________________________________________________Upline Subscribers succeed faster. Find out why:Send e-mail to why@upline.com for an instant FREE report!___________________________________________________________________________For software for Network Marketers, check out http://www.kaizensoft.comUpline is Online: http://www.upline.com___________________________________________________________________________ ============================ Luke Melia|| In between stimulus || || and response, || Snail Mail:|| there is a small || 106 South St. Suite 209|| space... || Charlottesville, VA 22902 ======= Victor Frankl ======= (804) 979-4427 x136 Associated Messages, from the most recent to the oldest:

    
  1. Re: Multiple prices per product ( Gary Krockover 2004)
  2. Re: Multiple prices per product ( Gary Krockover 2004)
  3. Re: Multiple prices per product ( Gary Krockover 2004)
  4. Re: Multiple prices per product ( Tim Robinson 2004)
  5. Re: Multiple prices per product ( Gary Krockover 2004)
  6. Re: Multiple prices per product ( Tim Robinson 2004)
  7. Re: Multiple prices per product ( Stuart Tremain 2004)
  8. Re: Multiple prices per product ( Gary Krockover 2004)
  9. Re: Multiple prices per product ( Tim Robinson 2004)
  10. Multiple prices per product ( Gary Krockover 2004)
  11. Size Options and Multiple prices (Paul 2003)
  12. Formulas and Multiple Prices (Glenn Busbin 2000)
  13. Multiple prices, one sku (Corky Kane 1999)
  14. Re: multiple prices (Luke Melia 1998)
  15. Re: multiple prices (Tim Taylor 1998)
  16. Re: multiple prices (Luke Melia 1998)
  17. Re: multiple prices (Tim Taylor 1998)
  18. Re: multiple prices (Luke Melia 1998)
  19. multiple prices (Tim Taylor 1998)
  20. Re: how to do multiple prices/item? (Sandra L. Pitner 1998)
  21. Re: how to do multiple prices/item? (Dale Stokdyk 1998)
  22. Re: how to do multiple prices/item? (Sandra L. Pitner 1998)
  23. how to do multiple prices/item? (Dale Stokdyk 1998)
  24. Re: Multiple prices (Grant Hulbert 1997)
  25. Re: Multiple prices (Robert Minor 1997)
  26. Re: Multiple prices (Grant Hulbert 1997)
  27. Re: Multiple prices (Robert Minor 1997)
  28. Re: Multiple prices (Grant Hulbert 1997)
  29. Multiple prices (Robert Minor 1997)
Tim, It's hard for me to tell exactly what the problem is, but one thing that may be the case is that you need to treat [header1] not like a regular variable but as a special orderfile variable. You must set it during an Add command or a addlineitem or setlineitem context. The value of header1 is actually written into the cart file in those commands/contexts, so you'll have access to it on any $showcart page or within an orderfile context. *and* your price calculation will have proper access to it. Hope that helps. There's definitely a learning curve here...! Yours in Success,Luke At 5:58 PM 10/28/98, you wrote:>>>>hmmm I still don't think I'm doing this right on search.tpl I haveCourier<
We will need to know if you are a Member of ANLA <<<
Along with the code from the rest of the general store template with a few sort modifcations which are working.On Results.tpl I have:Courier< along with the rest of results.tpl In formulas.db I have:Name Formulaprice [lookup db=catalog.txt&lookinField=sku&value=[sku]&returnField=[header1]]But on shoppingcart.tpl the price is still $0 Any Ideas?It went.....>>>>Tim, First off, you'll probably want to store the customer's membership status in a header variable like header1 instead of in each lineitem. the price calculation would be something like: [lookup db=catalog.txt&lookinField=sku&value=[sku]&returnField=[header1]] where you've got memis or nonis stored in [header1]. Then, if you want to change the price after the item has been added to the cart (i.e. they changed membership status), you'll also need to use a [setlineitem...] context like [lineitems][SetLineItem cart=[cart]&index=[lineindex]]password=yourpassword&price=[include incs/pricecalc.inc][/SetLineItem][/lineitems] where pricecalc.inc contains the same thing as the price line of your Forumlas.db. Good luck! Luke MeliaUpline P.S. I'm considering moving to San Diego. Anyone doing website development with WebDNA there? At 2:48 PM 10/28/98, you wrote:>>>>Okay what I've done is have two fields in the database, one called [memis] for member price and one called [nonis] for non-member price. both are veiw on the resutls and detail pages. On shoppingcart.tpl I have the form CourierMembershipStatus:<<in formulas.db I've tried-- price [textb] and -- price [lookup db=catalog.txt&lookinField=[textb]&returnField=price]Neither of these seems to work, any ideas? Thanks Tim I originally went.....>Add a field to the product database called MemberPrice and use a entry in>formulas.db to return the proper price based on the customers membership>status.>>Luke>>At 5:43 PM 10/27/98, you wrote:>>Hi all>>>>I'm using the general store template to build a rather simple publications>>catalog. The problem I'm having is that there is one price for members and>>a seperated price for non-members assigned to each sku. Now I know I can>>either duplicate the whole database and have two different entry points and>>have the price field different in the memberstore and nonmemberstore>>catalogs. I guess I could also duplicate each line item and change sku's>>and put in some sort of sorting field on each page to get the>>member/nonmember listing. Either way the vendor will confirm member>>status when they recieve the order. I guess what I'm trying to ask is there>>some extreemly simple way to set this up?>>>>Thanks>>>>Tim Taylor>>Webmaster>>http://www.growzone.com>>Tim@versa.com>>t h e s i t e f o r t h e>>g r e e n i n d u s t r y>>1.888.800.5904>>>___________________________________________________________________________>Upline Subscribers succeed faster. Find out why:>Send e-mail to why@upline.com for an instant FREE report!>___________________________________________________________________________>For software for Network Marketers, check out http://www.kaizensoft.com>Upline is Online: http://www.upline.com>___________________________________________________________________________> ============================ Luke Melia>|| In between stimulus ||>|| and response, || Snail Mail:>|| there is a small || 106 South St. Suite 209>|| space... || Charlottesville, VA 22902> ======= Victor Frankl ======= (804) 979-4427 x136<<<<<<<< ___________________________________________________________________________Upline Subscribers succeed faster. Find out why:Send e-mail to why@upline.com for an instant FREE report!___________________________________________________________________________For software for Network Marketers, check out http://www.kaizensoft.comUpline is Online: http://www.upline.com___________________________________________________________________________ ============================ Luke Melia|| In between stimulus || || and response, || Snail Mail:|| there is a small || 106 South St. Suite 209|| space... || Charlottesville, VA 22902 ======= Victor Frankl ======= (804) 979-4427 x136<<<<<<<<
<<<<<<<< ___________________________________________________________________________Upline Subscribers succeed faster. Find out why:Send e-mail to why@upline.com for an instant FREE report!___________________________________________________________________________For software for Network Marketers, check out http://www.kaizensoft.comUpline is Online: http://www.upline.com___________________________________________________________________________ ============================ Luke Melia|| In between stimulus || || and response, || Snail Mail:|| there is a small || 106 South St. Suite 209|| space... || Charlottesville, VA 22902 ======= Victor Frankl ======= (804) 979-4427 x136
Luke Melia

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:

OT: WebObjects (2000) multi-paragraph fields (1997) Form Variables (2000) RE: type 2 errors with ssl server (1997) Color (1997) HELP WITH DATES (1997) Proper file locations (1997) Linux Install Question (2000) emailer on Windows Beta 18 (1997) HELP WITH DATES (1997) Enhanced Master Counter? (1997) Forcing price recalculation in shopping cart (1998) Secure Server (1997) Problem getting shipping to calculate (2003) New servers and new inline cache (1997) Running 2 two WebCatalog.acgi's (1996) Bug? (1997) [WebDNA] Still can't get v7 running ... (2012) Looking for a Manual (1997) WebCat editing, SiteGuard & SiteEdit (1997)