Re: Assigning new CART number

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15444
interpreted = N
texte = >Earlier in the day, I posted about how I have an INCLUDE that checks the >referring domain and assigns a new cart number if it meets the right >criteria. Everything works fine, except for one case, which I discovered >when hopping around on the second site that I'm building. > >When I type in the URL of a page on my site (while in my domain) without >including a cart argument it generates a new CART, but in scientific >notation. > >So, if I type in: http://www.mydomain.com/Index5.html?SEC=Main >I,d get to the page, but all of the links would have CART=2945827638734+e13 >in the URL. > >I fixed this by writing the [CART] argument in my INCLUDE as [FORMAT >13s][CART][/FORMAT], but since WebCat generates cart numbers that are 15 >digits long, I'm worried about preserving uniqueness. > >How can I keep the 15 digit length of the cart?Cart numbers are NOT always the same number of digits, some are only 11 or 12 digits long, others are 13 or 14 digits, I've never seen one that's 15 digits but it's possible.You *cannot* insure the uniqueness of a cart value by truncating it in any manner, so unless you're worried about the aesthetics of being able to see +e13 at the end of some of your cart value, I would just leave it alone.Sincerely, Ken Grome ken@iav.com WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... Associated Messages, from the most recent to the oldest:

    
  1. Re: Assigning new CART number (Grant Hulbert 1997)
  2. Re: Assigning new CART number (Kenneth Grome 1997)
  3. Re: Assigning new CART number (Michael Winston 1997)
  4. Re: Assigning new CART number (Kenneth Grome 1997)
  5. Assigning new CART number (Michael Winston 1997)
>Earlier in the day, I posted about how I have an INCLUDE that checks the >referring domain and assigns a new cart number if it meets the right >criteria. Everything works fine, except for one case, which I discovered >when hopping around on the second site that I'm building. > >When I type in the URL of a page on my site (while in my domain) without >including a cart argument it generates a new CART, but in scientific >notation. > >So, if I type in: http://www.mydomain.com/Index5.html?SEC=Main >I,d get to the page, but all of the links would have CART=2945827638734+e13 >in the URL. > >I fixed this by writing the [cart] argument in my INCLUDE as [FORMAT >13s][cart][/FORMAT], but since WebCat generates cart numbers that are 15 >digits long, I'm worried about preserving uniqueness. > >How can I keep the 15 digit length of the cart?Cart numbers are NOT always the same number of digits, some are only 11 or 12 digits long, others are 13 or 14 digits, I've never seen one that's 15 digits but it's possible.You *cannot* insure the uniqueness of a cart value by truncating it in any manner, so unless you're worried about the aesthetics of being able to see +e13 at the end of some of your cart value, I would just leave it alone.Sincerely, Ken Grome ken@iav.com WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... Kenneth Grome

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:

Passing Cart variable to subdirectory files? (1997) [object] Tag & WebDNA Support (2005) Advice needed. (1998) Cart Creation (1998) problems with 2 tags shakur (1997) Forms Search Questions (1997) Sendmail and attachments? (1998) New Site (1998) Initiating NewCart (1997) Transfer of data from Invoice to thank you templates (1998) please anybody help (2005) Problems searching from a FORM (1997) Some Advise needed (1997) [protect admin] (1997) Formatting a .txt file (1998) Erotic Sites (1997) WebCat2b12 CGI Mac -- Problems propagating the cart through (1997) Hiding HTML and breaking the page (1997) [WebDNA] [thisurl] not clean on fastcgi 7 (2010) WebCatalog NT beta 18 now available (1997)