Announcement

Collapse
No announcement yet.

Shopping Cart Panel - HELP!

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

    Shopping Cart Panel - HELP!

    Good Morning Everyone,

    I have noticed a problem with my shopping panel contents.

    If you go to http://www.highlandclans.co.uk/Clan_Crest_Badge.html and add a badge to the cart the shopping cart displays ok.

    However, If I do a search (which produces some results) I get a syntax error in the shopping cart panel at this line

    document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"&nbsp;<BR>");
    ( the NETQUOTEVAR:CARTCOOKIEITEMS is replaced with "Items&#58;&nbsp;")

    It appears to be something in the http://www.highlandclans.co.uk/cgi-bin/ss000596.pl script.

    Any ideas would be much appreciated.

    Thanks,

    Niall
    Niall
    www.highlandclans.co.uk

    #2
    Hi Niall,

    Can you provide a specific section or product on the store where this is happening. I tried adding the badge to the basket after doing a search and clicking on the badge, and it worked perfectly fine. If you are still getting the errors, can you tell me at which stage exactly and the steps followed to produce the error.

    Cheers,
    Bruce King
    SellerDeck

    Comment


      #3
      The problem is that for some reason in your cgi pages, the pages generated are trying to reference the .js files from the current directory (where they don't live). How did you set your catalog up to use the root rather than an acatalog folder? I would imagine whatever you did to set that up has broken the referencing of files at some point.
      Matt
      Actinic User since v.3

      Custom Actinic Site Specialist:
      <a href="http://www.glowsticksdirect.co.uk/">GlowSticksDirect.co.uk</a>
      <a href="http://www.digishopdirect.co.uk/">DigiShopDirect.co.uk</a>
      <a href="http://www.calibreshopping.co.uk/">CalibreShopping.co.uk</a>

      Comment


        #4
        woes

        Bruce

        I have my IE6 browser settings set hard to trap any script errors,

        If you go to http://www.highlandclans.co.uk/Cap_Badges.html and add one badge to cart you will see the shopping cart contents on the left as in the CartCorrect gif.

        If you then search for tankard, I trap several errors. The page eventually displays - showing the tankard in the search results - but the shopping cart contents are not displayed. As in CartIncorrect.

        I wonder if Pneumatus is onto something. I really dislike the acatalog folder so removed the references to it in the database.

        Thanks,

        Niall
        Attached Files
        Niall
        www.highlandclans.co.uk

        Comment


          #5
          What you can do is put the content of 'actiniccore.js' and 'actinicextras.js' directly into the overall layout template by placing the code within <script language="JavaScript" type="text/javascript"> and </SCRIPT> tags.

          This should get around the problem.

          You must remember to keep the chunks of code in their relative positions i.e. put the actiniccore code before the actinicextras code.

          Comment


            #6
            Chris

            Many thanks for that help.

            What template is the ss000596.pl using when it returns the search results?

            I would rather keep the files as include to save load times.

            Can I sort the problem simply by putting the .js copies in the cgi directory?

            Niall
            Niall
            www.highlandclans.co.uk

            Comment


              #7
              The search script uses Act_Primary.html so adding the raw code to the page would make a lot of HTML files very clunky. You could put the two .js files in the cgi-bin to rectify the problem.
              Matt
              Actinic User since v.3

              Custom Actinic Site Specialist:
              <a href="http://www.glowsticksdirect.co.uk/">GlowSticksDirect.co.uk</a>
              <a href="http://www.digishopdirect.co.uk/">DigiShopDirect.co.uk</a>
              <a href="http://www.calibreshopping.co.uk/">CalibreShopping.co.uk</a>

              Comment


                #8
                O how wonderful life is...

                Great!

                Thanks Guys

                I have put the two scripts into the cgi-bin and it is working a treat.

                Very many thanks - I can't belive that the solution is that simple!

                Many thanks.

                Niall
                Niall
                www.highlandclans.co.uk

                Comment

                Working...
                X