Announcement

Collapse
No announcement yet.

Cart Items not displaying properly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cart Items not displaying properly

    Can anyone shed any light on this problem for me please? (http://moonlightdesign.co.uk/acatalog/)

    When I am in the shopping basket or checkout, my cart items display correctly, however if I carry on shopping, they display as 0, I have checked my cookie settings, done a web|refresh and checked the javascript as below for the cart items.

    Cart Items:
    <script language="JavaScript">
    document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"&nbsp;");
    document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
    </script>

    The product sections and shopping cart are using the same templates so what could be causing this?

    Many Thanks,

    Tracey

    #2
    Interesting...I don't know the answer, but I can confirm it does the same on my PC therefore you can rule out cookies, cache etc etc

    Comment


      #3
      Hi there

      If you add to cart, you will see in the address bar it has http://www.moonlightdesign.co.uk/cgi-bin/. The cookie needed to view the basket is reading from www.moonlightdesign.co.uk and not moonlightdesign.co.uk.

      Therefore for the basket content to work correctly, customer need to go into http://www.moonlightdesign.co.uk/acatalog/

      You may need to do a htaccess redirect, so anyone who goes through to http://moonlightdesign.co.uk, automaticley gets redirected as http://www.www.moonlightdesign.co.uk

      Hope this makes sense

      Kind Regards
      Nadeem Rasool
      SellerDeck Development

      Comment


        #4
        cookie

        I have exactly the same problem. If an htaccess redirect is the only solution, how would this be written and where would this file reside?
        If there are two urls at work on a site, how does the cookie decide under which one to show itself?

        Comment


          #5
          Mark,

          A search on the forum for 'htaccess' will bring up several threads discussing the subject in quite some detail. A google search for 'htaccess' too will provide you with links on how you can do it.

          Kind regards,
          Bruce King
          SellerDeck

          Comment

          Working...
          X