Announcement

Collapse
No announcement yet.

Cart Value and Items Ordered are null and different from View Basket page

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

    Cart Value and Items Ordered are null and different from View Basket page

    Team,

    I am about to set this site live and have been doing some testing. I am finding when I add items to the cart that the "view basket" link correctly gives the number of "items ordered" and the "cart value", but the same summary in the left bar for the same thing on other pages gives 0 items and value.
    I have cut and pasted the code from the view basket template to the relevant template for the left hand bar, but the contents still do not get updated.
    Can someone please have a look at
    http://battery-shed.co.uk/acatalog/index.html
    Add an item to their basket/ cart - view basket will give the correct details, but when you go back to shopping, the summary in the left hand bar is incorrect with no items shown. Returning back to the View basket screen shows the summary there is indeed correct.
    Any ideas please.

    Andrew
    Andrew Fish
    Http://www.BatteryShed.co.uk
    For all your battery requirements at prices less than in the high street.
    "Batteries without the overcharging"

    #2
    I recently struggled with this one and found that it was a problem with cookies. My cgi-bin could read them but the html pages couldn't. To resolve the issue I followed the guidance in this article http://knowledge.actinic.com/users/k...re.html#aKB540

    Although it doesn't look immediately relevant it did seem to solve my troubles.

    Helen

    Comment


      #3
      I have made the modifications mentioned in the thread by Helen and still the cart details are not being updated. Can anyone offer a solution to the problem please.
      Andrew
      Andrew Fish
      Http://www.BatteryShed.co.uk
      For all your battery requirements at prices less than in the high street.
      "Batteries without the overcharging"

      Comment


        #4
        Hi there Andrew

        Rather than go to http://battery-shed.co.uk/, if would be better for you to go through your site on the following addresss: http://www.battery-shed.co.uk/

        I think that the javascript treats:
        http://battery-shed.co.uk/
        and
        http://www.battery-shed.co.uk/

        as different site.

        So if you go to http://battery-shed.co.uk/ and add to cart. Then when it bounces back, it will bounce back to http://www.battery-shed.co.uk/ which results, in the cookie data being flushed.

        Please can you go to: http://www.battery-shed.co.uk/ and add to cart and checkout.

        I have tried it on my pc and it works fine

        Kind Regards
        Nadeem Rasool
        SellerDeck Development

        Comment


          #5
          I have tried adding items to cart using http://www.battery-shed.co.uk and it seems to work, but if you select the View Basket and then select Continue, then for some reason the url changes to http://battery-shed.co.uk.
          Where is this held? I have not hard coded this. In fact weirdly, if I click the online shop from the home page (Floating the cursor over this icon shows in the info bar on explorer http://www.battery-shed.co.uk) but clicking on it takes you to http://battery-shed.co.uk.
          I don't know what is happening here or why. Any ideas cos this is indeed the cause of the problem.
          I wonder if this explains my trouble with google indexing at the moment?
          Any further advice to solve this would be appreciated.
          Andrew
          Andrew Fish
          Http://www.BatteryShed.co.uk
          For all your battery requirements at prices less than in the high street.
          "Batteries without the overcharging"

          Comment


            #6
            This is doing my head in. After searching around Catalog to try and find every location of a variable which may hold the URL for the site I think it may be something that is being done by the hosting company.
            Please can someone explain when and how the www prefix to a web address is controlled.
            e.g. I type in an explicit address into IE like
            http://www.battery-shed.co.uk/acatalog/ then what is displayed in the browser window is
            http://www.battery-shed.co.uk/acatalog/
            However, if I type in
            http://www.battery-shed.co.uk/acatalog <-- note missing last slash
            then what is displayed in the browser window is
            http://battery-shed.co.uk

            Now the problem with the cart cookie appears to be that this changes. But this changes presumably because different buttons are giving different address references for the same page on the site.
            The problem manifests itself when you hit continue from the shopping cart page as it returns you to
            Http://battery-shed.co.uk/acatalog/ and not
            http://www.battery-shed.co.uk/acatalog/

            If I type in http://www.battery-shed.co.uk/acatalog lo and behold the correct cart summary information is there in the left hand bar.

            HELP

            Andrew
            Andrew Fish
            Http://www.BatteryShed.co.uk
            For all your battery requirements at prices less than in the high street.
            "Batteries without the overcharging"

            Comment


              #7
              CORRECTION...
              However, if I type in
              http://www.battery-shed.co.uk/acatalog <-- note missing last slash
              then what is displayed in the browser window is
              http://battery-shed.co.uk/accatalog/

              Andrew
              Andrew Fish
              Http://www.BatteryShed.co.uk
              For all your battery requirements at prices less than in the high street.
              "Batteries without the overcharging"

              Comment


                #8
                Team,
                I have sorted this.
                The problem is indeed caused by the difference in
                http://www.battery-shed.co.uk
                and
                http://battery-shed.co.uk references from within catalog
                i.e. whether or not the www prefix is present.
                To control this I used the following entry in my .htaccess file on the server and it all works.
                ----------Start of entry of .htaccess file------------
                RewriteEngine On
                RewriteCond %{HTTP_HOST} ^battery-shed.co.uk$
                RewriteRule ^(.*)$ http://www.battery-shed.co.uk/$1 [R=301,L]
                ----------End of entry of .htaccess file------------

                I am now wondering if this is why I can't get google to index this site properly. But I guess that's another story!

                I am sure this post will help a lot of people having the same problem
                Actinic Support chaps, I guess you can close the ticket with the solution which I found above :-)

                Andrew
                Andrew Fish
                Http://www.BatteryShed.co.uk
                For all your battery requirements at prices less than in the high street.
                "Batteries without the overcharging"

                Comment


                  #9
                  thanks! i had this same problem..
                  if you are within my checkout or cart pages, clicking on another link removes the www. from the url.. it does seem very strange.

                  would be interested if there is an alternative to altering the .htaccess file (but glad to see there is a solution already!)

                  Comment

                  Working...
                  X