Announcement

Collapse
No announcement yet.

Cart layout - two different files?

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

    Cart layout - two different files?

    Hi there,

    In the site www.soroptimist-gbi.org/acatalog/ if you "view trolley" or go to "checkout", the layout of the cart page is as I expect it to be, but if you add an item to your trolley, the cart page that you are briefly shown before being redirected back to the catalogue pages has a different layout, with the cart displaying outside of the div it's supposed to be in. Is it using a different template? Or is there something else I should edit to get it to display in the same way as the other pages?

    Any thoughts appreciated!

    (By the way, I know about the javascript error, and I have the code to fix it!)

    Lizzy

    #2
    Hi

    I need to confer on this with my colleagues and will post the possible solution asap.

    Cheers
    Krithika Chandrasekar
    SellerDeck

    sigpic

    E-commerce software by SellerDeck

    Comment


      #3
      Hi Elizabeth

      Have the shopping cart templates been modified ? If you click on Help | Troubleshooting and click on Compare Templates, it should give you a list of all modified templates. Let me know what you find.

      Cheers
      Krithika Chandrasekar
      SellerDeck

      sigpic

      E-commerce software by SellerDeck

      Comment


        #4
        Hi Elizabeth

        Try inserting the <div> and </div> tags into the Act_ShoppingCartXML.html template, which will keep the cart items correctly aligned.

        To open this template, click on Advanced | Template Manager. If you are not seeing buttons, click on Change view. Select the Ordering tab. Click on the button labelled 'Cart Table'.
        Krithika Chandrasekar
        SellerDeck

        sigpic

        E-commerce software by SellerDeck

        Comment


          #5
          Hi Krithika,

          Thanks very much for your time on this! I did alter the Shopping Cart html file but did not do anything to the xml file. I assumed that whenever the shopping cart is shown it generates it in the same way - I couldn't understand why it was fine in one case and not in the other.

          I have taken a closer look at the source code, and it seems that the problem is actually an extra div tag. The cart table is supposed to be written inside the '<div class="content">' layer, which is in my Act Primary template. The structure is:
          <div class="content"><a name="maincontent"></a>
          Generated content here
          <div class="footer">
          All the copyright, privacy information here
          </div>
          </div>
          This works fine in all the other pages on the site, but in the cart which you are shown after you have added an item, there is an extra div opening tag being written after the first one, which is putting the trolley out of alignment:
          <div class="content"><a name="maincontent"></a>
          <div class="content">
          Generated content here
          etc

          So I have to find where this is coming from - do you think it could be the Shopping Cart xml file?

          I am going away for a few days but will take a look at the templates again when I get back next week and let you know if I manage to fix it.

          Many thanks again,

          Lizzy

          Comment


            #6
            Don't be afraid of Act_ShoppingCartXML.html - it is just a big old table. Put your <div>s just after <Actinic:XMLTEMPLATE NAME="ShoppingCart"> at the beginning and just above </Actinic:XMLTEMPLATE> at the end.

            Comment

            Working...
            X