Announcement

Collapse
No announcement yet.

removing cart summary from checkout pages.

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

    removing cart summary from checkout pages.

    I'd like to remove the cart summary from the checkout pages as I've had a few people that start the checkout ok but then click on the pay now button in the summary rather than using the next button as intended.

    What i've done is duplicate the external layout so there is a new layout for use in the checkout, change the site setup so the checkout pages use the new layout. When I delete the cart summary from the new layout, it's also removed from the original layout so the cart summary is removed across the site.

    Am I doing this wrong?

    #2
    You'd be better off sticking to one template and using BlockIfs to remove the summary off the pages where you do not want it. Use the PageType variable with the page names as per how they are listed in the drop down list on the design tab. You still have one template then, but it's content is dynamic according to settings or pages that you specify.

    Comment


      #3
      cheers Lee.

      Any chance of an example of what it should look like? I did try that method but couldn't work it out.

      Comment


        #4
        Pseudo Code:

        BlockIf (using pagetype == "Checkout Page 1" OR pagetype == "Checkout Page 2" etc..... as the conditions within)

        Have the whole of the cart summary code here in the middle of those tags

        /BlockIf

        Comment


          #5
          that makes sense but when I do it it removes if from all the pages

          Comment


            #6
            That's the method, done it many times, so something you're not quite doing right, in the absence of any info or code, i can't really comment any further. Provide the code including the blockif and the cart code in here within CODE tags and i can take a look.

            Comment


              #7
              If think I got there in the end but it seems to work in reverse?

              I ended with a block like this which I read as block if page ype isn't a checkout page.

              <actinic:variable name="PageType" /> != "Checkout Page 0" AND <actinic:variable name="PageType" /> != "Checkout Page 1" AND <actinic:variable name="PageType" /> != "Checkout Page 2" AND <actinic:variable name="PageType" /> != "Checkout Page 3"


              <div id="cartHeader">Your Cart Summary</div>
              <div id="cartSummary"><Actinic:Variable Name="ShoppingCartSummary"/>
              <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%20%21%3d%20%22Checkout%20Page%200%22%20%20AND%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Checkout%20Page%201%22%20%20AND%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Checkout%20Page%202%22%20%20AND%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Checkout%20Page%203%22" >
              <a href="<actinic:variable name="CartLinkText" />">View Cart</a>&nbsp;<a href="<actinic:variable name="OrderLinkText" />">Pay Now</a>
              </actinic:block>

              Comment


                #8
                You can use PHP functions in Blockif's so it's possible to check for all pagetypes that don't contain "checkout" in one go. E.g.
                Code:
                <actinic:block if="%21%20stristr%20%28%20%27%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%27,%20%27checkout%27%20%29">
                	This only shows if not a checkout page
                </actinic:block>
                Where the blockif code above actually looks like:
                Code:
                ! stristr ( '<actinic:variable name="PageType" />', 'checkout' )
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  You are using 'AND' not 'OR' as advised and to completely remove the summary, it should be wrapped around the outside of the code you provided, you've fitted it inside. That way it will take the title away too.

                  Comment


                    #10
                    I know, it all seems to be the opposite to the way I expected but it works. The cart summary stays there and the 2 link buttons are removed on all the checkout pages.

                    Comment


                      #11
                      You're doing it correctly.

                      i.e:

                      If NOT checkout page
                      -- Display Cart Summary
                      Endif

                      Mike
                      -----------------------------------------

                      First Tackle - Fly Fishing and Game Angling

                      -----------------------------------------

                      Comment


                        #12
                        Are you trying to remove the whole summary or just the links to cart and checkout? Your initial post seems to request complete removal. When you say it is working in reverse, does this not mean it is doing the opposite to what you want?

                        Comment

                        Working...
                        X