SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    ontario
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Restrict only 20 items to a cart

    Hi,

    How do I limit the amount of items placed in a cart to 20?

    code:
    PHP Code:
    <script LANGUAGE="JavaScript">

        
    // showItems() - displays shopping basket in a table
        
    function showItems() {
            
    index document.cookie.indexOf("TheBasket");
            
    countbegin = (document.cookie.indexOf("="index) + 1);
                
    countend document.cookie.indexOf(";"index);
                if (
    countend == -1) {
                        
    countend document.cookie.length;
                } 

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You seriously need to post more code and/or a demo link.
    ck :: bringing chris to the masses.

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    ontario
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Anarchos
    You seriously need to post more code and/or a demo link.

    Thanks .. check out POST#5
    http://www.sitepointforums.com/showt...hreadid=133248


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •