Announcement

Collapse
No announcement yet.

Show all products

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

    Show all products

    I'm using a fragment to show all products in the site

    In the fragment I place:

    Code:
    !!<
    <actinic:block type="EntireSectionList">
    	<actinic:block type="ProductList">
    		[ProductLayout]
    	</actinic:block>
    </actinic:block>
    >!!
    You can see the page here:
    http://www.valeheritage.co.uk/acatal...re_ranges.html

    Problem is, this has inserted a false product at the top with a quantity and add cart button and nothing else.

    I can't find this empty product anywhere.

    Any idea how I get rid of it?

    #2
    Tried that.

    It's also appearing in the designer. A rogue product that I can't get rid of.

    If I remove the above code then no products appear, so I have a feeling that there is something wrong with that code.

    Comment


      #3
      This is getting weird

      I tracked down product 42 to the fragment in the product table

      If I remove the row then that fragment doesn't work, so I restored from a backup

      It's as if the fragment thinks it's a product.

      I've tried creating a new fragment and adding the code to that with the same problem.

      Comment


        #4
        Sweating over this for ages and think I found a fix.

        I even tried the "Displaying Fragments Separately From Products" in the AUG without success.

        Finally 'fixed' it by going to that product (fragment) in the access database and unticking the available to purchase option.

        Now at least it doesn't show on the page.

        Comment


          #5
          I've been trying to do that without success.

          I think the problem is that the code is in the details of a fragment.

          I tried to alter the product layout by putting the producttype blockif in, but that product just wouldn't go away.

          Obviously I must have been doing something wrong, but just couldn't get it to work.

          Comment


            #6
            Using ProductType == 0 works fine. This displays only products (not duplicates or fragments).
            Code:
            !!<
            <actinic:block type="EntireSectionList">
            	<actinic:block type="ProductList">
            		<actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%3d%3d%200" >
            			[ProductLayout]
            		</actinic:block>
            	</actinic:block>
            </actinic:block>
            >!!
            N.B. make sure you only use this on a Fragment on a Brochure page. If you do this to a Fragment on a Section page, you may end up with an infinite recursion loop.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Thanks I'll give it a go.

              Comment

              Working...
              X