Re: Price Change

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35626
interpreted = N
texte = Figure out what your discount total is and add it to the cart as a negative lineitem. This will require that you have a product in your product database for the discount.1) Add a product to your database for the discount, the price will not matter we will set it later 2) In your template figure out what the discount amount will be 3) Add the discount sku to the cart with a negative price, you will need to use the price change password to set the price[addlineitem cart=[cart]&sku=your discount sku]price=discount amount&password=your price change password[/addlineitem]-----Original Message----- From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Stephen Russo Sent: Wednesday, August 02, 2000 5:40 PM To: WebCatalog Talk Subject: Re: Price Change Glenn, That works fine. But when I go to change subtotal to the new discounted price it does not change. That is my main problem, changing subtotal to the new price.Stephen-----Original Message----- From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Glenn Busbin Sent: Wednesday, August 02, 2000 8:46 AM To: WebCatalog Talk Subject: Re: Price Change There's more than one way to skin a cat using WC. The database approach I suggested (late at night after a long day) is one, but since your discounts are so simple, you can also just sum the costs of the items in the cart and use some [showif] [hideif] stuff.Sum the costs of the items BEFORE getting to [subtotal]. Then evaluate the temporarysubtotal to see if a discount should be given. If so, add a negative number to the cart that will deduct the appropriate amount.Try something along the order of:[showif [temporarysubtotal]>299] [hideif [temporarysubtotal]>499] [Discount]=-50[/hideif][/showif][showif [temporarysubtotal]>499] [Discount]=-55[/showif]In the html for the page, add a line that will display whatever discount is given or hide it if there isn't one.[showif [Discount]>0] Discount=[Discount][/showif]Then continue with the html and WC stuff as if there were no discount included. The negative values of [Discount] will be added to the cost of the Items ordered and will not foul up WC's built-in use of the [subtotal] and [grandtotal] calcs.Subtotal=[subtotal] Taxes=[tax] Grandtotal=[grandtotal] etc.Lemme know how it works out.Glenn ------------------------------------------------------------- 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: [WebDNA] [SETLINEITEM] Price Change Not Working (Lawrence 2010)
  2. [WebDNA] [SETLINEITEM] Price Change Not Working ("Ki Song - Knifecenter.com" 2010)
  3. Re: Price Change Password ( Stuart Tremain 2003)
  4. Re: Price Change Password ( Stuart Tremain 2003)
  5. Price Change Password ( Brian Wachter 2003)
  6. Re: Price Change (John Butler 2000)
  7. Re: Price Change (Stephen Russo 2000)
  8. Re: Price Change (Stephen Russo 2000)
  9. Re: Price Change (Glenn Busbin 2000)
  10. Re: Price Change (John Jakovich 2000)
  11. Re: Price Change (Stephen Russo 2000)
  12. Re: Price Change (Glenn Busbin 2000)
  13. Re: Price Change (Glenn Busbin 2000)
  14. Re: Price Change (Stephen Russo 2000)
  15. Re: Price Change (Glenn Busbin 2000)
  16. Re: Price Change (dale 2000)
  17. Re: Price Change (John Butler 2000)
  18. Price Change (Stephen Russo 2000)
  19. Re: Price Change (Glenn Busbin 2000)
  20. Re: Price Change (PCS Technical Support 1999)
  21. Price Change (Bob Minor 1999)
  22. Re: price change help (PCS Technical Support 1998)
  23. price change help (Scott Szretter 1998)
Figure out what your discount total is and add it to the cart as a negative lineitem. This will require that you have a product in your product database for the discount.1) Add a product to your database for the discount, the price will not matter we will set it later 2) In your template figure out what the discount amount will be 3) Add the discount sku to the cart with a negative price, you will need to use the price change password to set the price[addlineitem cart=[cart]&sku=your discount sku]price=discount amount&password=your price change password[/addlineitem]-----Original Message----- From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Stephen Russo Sent: Wednesday, August 02, 2000 5:40 PM To: WebCatalog Talk Subject: Re: Price Change Glenn, That works fine. But when I go to change subtotal to the new discounted price it does not change. That is my main problem, changing subtotal to the new price.Stephen-----Original Message----- From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Glenn Busbin Sent: Wednesday, August 02, 2000 8:46 AM To: WebCatalog Talk Subject: Re: Price Change There's more than one way to skin a cat using WC. The database approach I suggested (late at night after a long day) is one, but since your discounts are so simple, you can also just sum the costs of the items in the cart and use some [showif] [hideif] stuff.Sum the costs of the items BEFORE getting to [subtotal]. Then evaluate the temporarysubtotal to see if a discount should be given. If so, add a negative number to the cart that will deduct the appropriate amount.Try something along the order of:[showif [temporarysubtotal]>299] [hideif [temporarysubtotal]>499] [Discount]=-50[/hideif][/showif][showif [temporarysubtotal]>499] [Discount]=-55[/showif]In the html for the page, add a line that will display whatever discount is given or hide it if there isn't one.[showif [Discount]>0] Discount=[Discount][/showif]Then continue with the html and WC stuff as if there were no discount included. The negative values of [Discount] will be added to the cost of the Items ordered and will not foul up WC's built-in use of the [subtotal] and [grandtotal] calcs.Subtotal=[subtotal] Taxes=[tax] Grandtotal=[grandtotal] etc.Lemme know how it works out.Glenn ------------------------------------------------------------- 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/ John Jakovich

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:

WCf2 and nested tags (1997) Why WebDNA is not popular (2002) email program problem (1998) Problems passing [SKU] with $Replace in 2.0 (1997) how to do multiple prices/item? (1998) Target wit redirect (1998) setting the price of goods after its added to the cart (2000) Date Bug (1998) showif and cart (1997) syntax question, not in online refernce (1997) Associative lookup style? + bit more (1997) Pirated WebCat? NOT... (2003) WebCat2: multiple currency support (1997) [ShowIf] and empty fields (1997) Limiting user access to .tmpl files (1997) Location of Webcat site in folder hierarchy (1997) Multiple prices (1997) RE: [WebDNA] Windows WebDNA Editor (2009) MacOS9 plugin 4.0.2b5 template security error (2000) Showing unopened cart (1997)