Announcement

Collapse
No announcement yet.

2 Add to Cart buttons in sub section links

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

    #16
    Erm!!! Isn't that what I had done in posts 1 and 3 above.

    I haven't got a problem placing my fragments. The problem I have is that the sub section links treat the fragments as products and I end up with two Add to Cart buttons

    Comment


      #17
      Your problem is that you are using (from the AUG)
      <actinic:block type="ProductList" >
      in your Section details and this lays out ALL products and fragments. This code was intended to work with only a single product (and no Fragments) on the section.

      So spurious code is being generated for each Fragment on the page.

      We need some Condition that only generates code if the item in the list is a Product. Hang on while I locate some...
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #18
        OK. Found the required Variable. In the AUG page 25 code. Locate the line
        Code:
        <actinic:block type="ProductList" >
        After it add
        Code:
        <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%21%3d%202" >
        You will also have to locate the </actinic:block> that goes with <actinic:block type="ProductList" > and add an </actinic:block> above it.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #19
          Thank you Norman.

          I will give it a try and see what happens.

          Comment


            #20
            Norman you are a star.

            I've just put together a sample sub section and it seems to be working OK.

            Many thanks indeed.

            Comment


              #21
              Thanks again Norman. This had also stumped me!

              Can the AUG be amended to reflect this?
              Sam
              http://www.originaltouch.co.uk
              http://www.spcb.co.uk

              If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

              Failure is the tuition you pay for success.

              Comment


                #22
                i used the Displaying Fragments Separately From Products from pg 33 of the AUG to resolve this issue.

                Comment

                Working...
                X