Re: REPOST: Overwiting SKU in Cart

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 40953
interpreted = N
texte = *This message was transferred with a trial version of CommuniGate(tm) Pro* In that case, you may want to approach things differently.You might create a second db that has a field which indicates whether or not this particular item must be the first item in the cart before other items can be added, in a relational database sorta way. Something like:sku priority 23454 1 23456 2 22451 3 22567 2Then you could do a simple test during your [addlineitems], and if the item in question being added does not have the right priority, it can't get added until there is an item with a priority of one in there.Now I don't know the exact situation, but you may have more than one product that has to be in there first, so you may have to tweak this a little bit. But that at least might get you started...Let me know if you need more help...--Will Starck NovaDerm Skincare Science http://www.novaderm.com support@novaderm.com----- Original Message ----- From: Stuart Tremain To: WebCatalog Talk Sent: Tuesday, June 25, 2002 10:11 PM Subject: Re: REPOST: Overwiting SKU in Cart *This message was transferred with a trial version of CommuniGate(tm) Pro* I tried something similar to that but I could not force an index of 1.Why is it important - a long story but basically the client has requested some alterations to the architecture of the process for the cart and a particular type of product must be in index 1 to allow other items to be added. -- Stuart Tremain idfk web developments - AustraliaOn Wednesday, 26 June 2002, NovaDerm Skincare Science wrote: >*This message was transferred with a trial version of CommuniGate(tm) Pro* >No can do muchacho ;) > >But, you could write some code that deletes all the lineitems after you've >recorded them, say in a temp lineitems.db, and then add them back in, with >the sku of interest first on the list, so it has an index of 1. Kind of a >colossal pain. > >BTW, why is it important that it have an index of 1??? >-- > >Will Starck >NovaDerm Skincare Science >http://www.novaderm.com >support@novaderm.com > > > > >----- Original Message ----- >From: Stuart Tremain >To: WebCatalog Talk >Sent: Tuesday, June 25, 2002 9:06 PM >Subject: REPOST: Overwiting SKU in Cart > > >*This message was transferred with a trial version of CommuniGate(tm) Pro* >To change a line item in a visitor's shopping cart, put a SetLineItem >context into a template. Whenever WebCatalog encounters a SetLineItem >context, it opens the shopping cart file and changes values in a line item >(identified by its index). The item's quantity, textA-E, and cart header >fields are all >changeable. > >How can I change the SKU? It is important that the product that needs to be >changed remains index=1. > > >-- >Stuart Tremain >idfk web developments - Australia > > > >------------------------------------------------------------- >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/ > > > > >------------------------------------------------------------- >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/ >------------------------------------------------------------- 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/ ------------------------------------------------------------- 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:

    
  1. Re: REPOST: Overwiting SKU in Cart (NovaDerm Skincare Science 2002)
  2. Re: REPOST: Overwiting SKU in Cart (NovaDerm Skincare Science 2002)
  3. Re: REPOST: Overwiting SKU in Cart (Stuart Tremain 2002)
  4. Re: REPOST: Overwiting SKU in Cart (NovaDerm Skincare Science 2002)
  5. REPOST: Overwiting SKU in Cart (Stuart Tremain 2002)
*This message was transferred with a trial version of CommuniGate(tm) Pro* In that case, you may want to approach things differently.You might create a second db that has a field which indicates whether or not this particular item must be the first item in the cart before other items can be added, in a relational database sorta way. Something like:sku priority 23454 1 23456 2 22451 3 22567 2Then you could do a simple test during your [addlineitems], and if the item in question being added does not have the right priority, it can't get added until there is an item with a priority of one in there.Now I don't know the exact situation, but you may have more than one product that has to be in there first, so you may have to tweak this a little bit. But that at least might get you started...Let me know if you need more help...--Will Starck NovaDerm Skincare Science http://www.novaderm.com support@novaderm.com----- Original Message ----- From: Stuart Tremain To: WebCatalog Talk Sent: Tuesday, June 25, 2002 10:11 PM Subject: Re: REPOST: Overwiting SKU in Cart *This message was transferred with a trial version of CommuniGate(tm) Pro* I tried something similar to that but I could not force an index of 1.Why is it important - a long story but basically the client has requested some alterations to the architecture of the process for the cart and a particular type of product must be in index 1 to allow other items to be added. -- Stuart Tremain idfk web developments - AustraliaOn Wednesday, 26 June 2002, NovaDerm Skincare Science wrote: >*This message was transferred with a trial version of CommuniGate(tm) Pro* >No can do muchacho ;) > >But, you could write some code that deletes all the lineitems after you've >recorded them, say in a temp lineitems.db, and then add them back in, with >the sku of interest first on the list, so it has an index of 1. Kind of a >colossal pain. > >BTW, why is it important that it have an index of 1??? >-- > >Will Starck >NovaDerm Skincare Science >http://www.novaderm.com >support@novaderm.com > > > > >----- Original Message ----- >From: Stuart Tremain >To: WebCatalog Talk >Sent: Tuesday, June 25, 2002 9:06 PM >Subject: REPOST: Overwiting SKU in Cart > > >*This message was transferred with a trial version of CommuniGate(tm) Pro* >To change a line item in a visitor's shopping cart, put a SetLineItem >context into a template. Whenever WebCatalog encounters a SetLineItem >context, it opens the shopping cart file and changes values in a line item >(identified by its index). The item's quantity, textA-E, and cart header >fields are all >changeable. > >How can I change the SKU? It is important that the product that needs to be >changed remains index=1. > > >-- >Stuart Tremain >idfk web developments - Australia > > > >------------------------------------------------------------- >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/ > > > > >------------------------------------------------------------- >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/ >------------------------------------------------------------- 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/ ------------------------------------------------------------- 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/ NovaDerm Skincare Science

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:

[LOOKUP] (1997) Wierd thing in ViewOrder.tpl (1999) Using & in subject line (2003) maybe even an easier plan to satisfy need for solid tech support? (2000) Searchtitle (2000) [WebDNA] Mistake in web page instructions (2009) Re:2nd WebCatalog2 Feature Request (1996) [SearchString] usage (1997) Online reference (1997) Card clearance, problems - solutions? (1997) Fun with dates (1997) WebCat2 - Getting to the browser's username/password data (1997) WebDNA module - Automated database archiving (1997) more cookie crumbling (1999) How do I get multiple unique numbers on one template? (2000) [WebDNA] anyone know why webdna kicking out incorrect dates? (2008) WebCat2b13MacPlugIn - [include] (1997) OT: Email Spam a bit of Hell (2004) Filemaker Pro Template for Orders (1999) Updating a database once per day - An example (1998)