Re: Carts & Refering URLs

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15420
interpreted = N
texte = At 10:32 AM -0800 12/5/97, Christer Olsson is rumored to have typed: > Hmmm... would this really solve the problem? Wouldn't a > > [hideif [referer]^http://www.mydomain.com] > Please go to our starting page > [/hideif] > > on each of the detail pages be a better way to go?Only if you want and need your customer to go to your home page to start shopping.On my site, I want people to be able to come in via any bookmark without seeing an error message. I don't want them to have to start looking through my site for something they thought they were linking to directly.On the top of each template, I have an INCLUDE that checks to see if the referring page is from my site. If it isn't, I assign a unique number to a variable using a MATH context[MATH SHOW=f]NEWCART=[DATE][TIME][RANDOM][/MATH]If it is, I set the variable to the incoming cart number [MATH SHOW=f]NEWCART=[CART][/MATH]Then, in each HREF or FORM, I say CART=[MATH]NEWCART[/MATH]Works great.MichaelMichael Winston *By Phone!: (503)/652/8815 x341 Internet Coordinator *By e-mail!: michaelw@dhorse.com Dark Horse Comics, Inc. *By web!: http://www.dhorse.com/ Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] Old carts not deleting (Stuart Tremain 2015)
  2. [WebDNA] ShoppingCarts issue (=?ISO-8859-1?Q?Cristi=E1n_Tapia?= 2009)
  3. [WebDNA] ShoppingCarts folder permissions (Paul Willis 2008)
  4. Re: emptying shopping carts and orders folder ( Donovan Brooke 2004)
  5. Re: emptying shopping carts and orders folder ( "Paul Berman" 2004)
  6. Re: emptying shopping carts and orders folder ( Donovan Brooke 2004)
  7. Re: emptying shopping carts and orders folder ( "Paul Berman" 2004)
  8. Re: emptying shopping carts and orders folder ( John Peacock 2004)
  9. Re: emptying shopping carts and orders folder ( "Paul Berman" 2004)
  10. Re: emptying shopping carts and orders folder ( Donovan Brooke 2004)
  11. Re: emptying shopping carts and orders folder ( "Paul Berman" 2004)
  12. SQL ShoppingCarts v5.x ( Bob Minor 2003)
  13. ShoppingCarts and Sandboxes ( Tim Robinson 2003)
  14. Re: 5.0: Blank shopping carts & other weirdness (WJ Starck 2003)
  15. Re: 5.0: Blank shopping carts & other weirdness (John Peacock 2003)
  16. 5.0: Blank shopping carts & other weirdness (WJ Starck 2003)
  17. Re: Multiple Carts with Mac IE (Kenneth Grome 2002)
  18. Multiple Carts with Mac IE (Richard Kirsner 2002)
  19. Re: moved shoppingCarts folder... now there's nothing in it. (Josh Lynn 2001)
  20. Re: moved shoppingCarts folder... now there's nothing in it. (Will Starck 2001)
  21. moved shoppingCarts folder... now there's nothing in it. (Josh Lynn 2001)
  22. Re: Shopping Carts folder does not exist in Linux (John Peacock 2000)
  23. Shopping Carts folder does not exist in Linux (John Winningham 2000)
  24. Re: WebCatalog not recognizing ShoppingCarts folder (WebDNA Support 2000)
  25. Re: WebCatalog not recognizing ShoppingCarts folder (John Winningham 2000)
  26. Re: WebCatalog not recognizing ShoppingCarts folder (Bob McPeak 2000)
  27. Re: WebCatalog not recognizing ShoppingCarts folder (Jay Van Vark 2000)
  28. Re: WebCatalog not recognizing ShoppingCarts folder (John Winningham 2000)
  29. Re: WebCatalog not recognizing ShoppingCarts folder (Jay Van Vark 2000)
  30. Re: WebCatalog not recognizing ShoppingCarts folder (John Winningham 2000)
  31. Re: WebCatalog not recognizing ShoppingCarts folder (John Butler 2000)
  32. Re: WebCatalog not recognizing ShoppingCarts folder (John Winningham 2000)
  33. WebCatalog not recognizing ShoppingCarts folder (John Winningham 2000)
  34. Re: carts on MacOS X Server (James Howarth 2000)
  35. Re: carts on MacOS X Server (John Butler 2000)
  36. Re: carts on MacOS X Server (oops) (Clement Ross 2000)
  37. Re: carts on MacOS X Server (Clement Ross 2000)
  38. Re: carts on MacOS X Server (Peter Ostry 2000)
  39. carts on MacOS X Server (Nitai 2000)
  40. Re: Carts & cookies (Brian B. Burton 1999)
  41. Re: Carts & cookies (Brian B. Burton 1999)
  42. Re: Carts in Admin folder? (PCS Technical Support 1999)
  43. Re: Carts in Admin folder? (The Mooseman 1999)
  44. Re: Carts in Admin folder? (Mícheál O Sé 1999)
  45. Re: Carts in Admin folder? (Gil Poulsen 1999)
  46. Re: Carts in Admin folder? (Mícheál O Sé 1999)
  47. Carts in Admin folder? (Gil Poulsen 1999)
  48. Re: Carts & cookies (Peter Ostry 1999)
  49. Re: Carts & cookies (Brian B. Burton 1999)
  50. Re: Carts & cookies (Christer Olsson 1999)
  51. Re: Carts & cookies (Kenneth Grome 1999)
  52. Re: Carts & cookies (josh@pop-art.com 1999)
  53. Carts & cookies (Brian B. Burton 1999)
  54. Re: Does anyone have a solution to make carts smaller? (PCS Technical Support 1998)
  55. Re: Does anyone have a solution to make carts smaller? (Carlos Machado 1998)
  56. Re: Does anyone have a solution to make carts smaller? (PCS Technical Support 1998)
  57. Re: Why don't my carts expire (Rob Schmidt 1998)
  58. Why don't my carts expire (Steve Rosenbaum 1998)
  59. Change 2.0 to 2.1: Carts files not written to disk automatically (Gilles Renoul 1998)
  60. 2.0.1: Shopping Carts deleted after 1 hour (Grant Hulbert 1997)
  61. Re: Carts & Refering URLs (John Hill 1997)
  62. Re: Carts & Refering URLs (Michael Winston 1997)
  63. Re: Carts & Refering URLs (Christer Olsson 1997)
  64. Re: Carts & Refering URLs (John Hill 1997)
  65. Carts & Refering URLs (John Benn/PetsForum Group 1997)
  66. Re: different ship dates and shopping carts -- how to? (Kenneth Grome 1997)
  67. Re: different ship dates and shopping carts -- how to? (Sandra L. Pitner 1997)
  68. Re: different ship dates and shopping carts -- how to? (Grant Hulbert 1997)
  69. Re: different ship dates and shopping carts -- how to? (Kenneth Grome 1997)
  70. different ship dates and shopping carts -- how to? (Sandra L. Pitner 1997)
  71. Re: Viewing old carts (was Re: FEW QUESTIONS) (Grant Hulbert 1997)
  72. Re: Viewing old carts (was Re: FEW QUESTIONS) (natasha 1997)
  73. Viewing old carts (was Re: FEW QUESTIONS) (Grant Hulbert 1997)
  74. Re: Shopping carts and reloading pages (Stephanie Wright 1997)
  75. Re: Shopping carts and reloading pages (Grant Hulbert 1997)
  76. Shopping carts and reloading pages (Stephanie Wright 1997)
At 10:32 AM -0800 12/5/97, Christer Olsson is rumored to have typed: > Hmmm... would this really solve the problem? Wouldn't a > > [hideif [referer]^http://www.mydomain.com] > Please go to our starting page > [/hideif] > > on each of the detail pages be a better way to go?Only if you want and need your customer to go to your home page to start shopping.On my site, I want people to be able to come in via any bookmark without seeing an error message. I don't want them to have to start looking through my site for something they thought they were linking to directly.On the top of each template, I have an INCLUDE that checks to see if the referring page is from my site. If it isn't, I assign a unique number to a variable using a MATH context[MATH SHOW=f]NEWCART=[date][time][random][/MATH]If it is, I set the variable to the incoming cart number [MATH SHOW=f]NEWCART=[cart][/MATH]Then, in each HREF or FORM, I say CART=[math]NEWCART[/MATH]Works great.MichaelMichael Winston *By Phone!: (503)/652/8815 x341 Internet Coordinator *By e-mail!: michaelw@dhorse.com Dark Horse Comics, Inc. *By web!: http://www.dhorse.com/ Michael Winston

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:

More on the email templates (1997) WebCat2b12 - nesting [tags] (1997) Migrating to NT (1997) [WebDNA] TLS 1.2 and [tcpconnect] (2018) [WebDNA] WebDNA & VPS (2009) File Upload and Platform (2001) Multiple Ad databases? (1997) oops private message leaked into talk list (1997) FAX orders (1996) Sorting nested search (2003) WC2f3 (1997) all records returned. (1997) Odd error in logs (1998) [table] strange behaviour (2003) PCS Emailer's role ? (1997) Calculating multiple shipping... (1997) two unique banners on one page (1997) A Global Variable (1997) WebCatalog can't find database (1997) international time (1997)