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:

Robert Minor duplicate mail (1997) Copyfile to length limit for absolute paths (2003) webcat- multiple selection in input field (1997) Tea Room trouble (1997) WebCat2: Items xx to xx shown, etc. (1997) NT Manual (1997) [TaxableTotal] - not working with AOL and IE (1997) remotely add + sign (1997) WebTen and WebCat (1997) Shopping Cart Module (2004) Error Lob.db records error message not name (1997) setlineitem quantity to zero? (2000) How did *you* learn Web Catalog? (2000) Hosting Services (1999) Search Command, multiple dbs, etc. --still confused (2000) using showpage and showcart commands (1996) Almost a there but..bye bye NetCloak (1997) Passing radio check box value to itself... (2000) Another bug to squash (WebCat2b13 Mac .acgi) (1997) DataBaseHelper Flawed (1997)