Announcement

Collapse
No announcement yet.

Section Layout - help needed

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

    Section Layout - help needed

    Hi all

    I am working on a site for a client (my first v8 site ).

    The site is using the compact section list as described here:

    http://knowledge.actinic.com/acatalo...ture.html#a457

    and in the advanced user guide.

    I am using the method of making each product a sub section (I know there is another method, but this was easier for this store).

    All ok, until I get to adding fragments to the products.

    When I add a fragment to each product, I am getting another 'add to cart' button appear on the section list for each product in the section list.

    So if I have 2 fragments on the product, I am getting 3 'add to cart buttons' on the section list for that product. One is correct, but the additional two I would like to remove.

    This has been driving me mad for about 4 hours - i am sure it is something simple.

    Any help would be appreciated.

    SG

    #2
    We need to see your site, not the knowledgebase article, to fully understand what you are trying to do and to investigate what you are doing wrong.

    Can you post a URL?

    Not at all clear why you would be adding fragments to a product.
    Bill
    www.egyptianwonders.co.uk
    Text directoryWorldwide Actinic(TM) shops
    BC Ness Solutions Support services, custom software
    Registered Microsoft™ Partner (ISV)
    VoIP UK: 0131 208 0605
    Located: Alexandria, EGYPT

    Comment


      #3
      thanks for the response.

      it is a client site and is on a development server on an internal network at the moment. i will speak to the client to see if he minds us putting on an external server - so I can post a link

      One point you made interests me though - why would you NOT use fragments in a product page?

      We are testing using them (fragments) to show images of different variations of a product, e.g a different colour.

      Is there a problem with doing this?

      Comment


        #4
        Simon - I think it was your phrasing about "adding fragments to the products" .. rather than just the product page which is standard practice.. have to admit I read it the same way as Bill.


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          ah...got it - sorry

          Comment


            #6
            ok - I have not been able to get hold of the client, as yet but I have created a 'test section' and have created a screen shot so you can see what I mean.

            The attached shows a section list. You will notice that for each product in the list an extra add to cart button is being displayed for each fragment that is 'atrtached' to each product page - e.g. 3 fragments - 3 extra add to cart buttons.

            To clarify i am using a section layout (as per the advanced user guide) and am creating a sub section for each product then the product details page under that subsection (again as per the advanaced user guide).

            Hope this helps to explain my dilema a little more

            Appreciate the help.

            Click image for larger version

Name:	Capture.GIF
Views:	1
Size:	22.9 KB
ID:	542159

            Comment


              #7
              Your dilemna is well illustrated, but it is still not clear how you got there.

              I would do this with focus on the main shop page -- right click - 'New Section' e.g. Gloves, focus on gloves page -- right click - 'New SubSection' e.g. 'Red Mittens', focus on Red Mittens page -- right click - 'New Fragment' repeated as necssary, right click - 'New Product'.

              THEN

              Focus on product, right click, copy. Focus on Gloves page, right click - paste as duplicate, and edit the duplicate layout as required.
              Bill
              www.egyptianwonders.co.uk
              Text directoryWorldwide Actinic(TM) shops
              BC Ness Solutions Support services, custom software
              Registered Microsoft™ Partner (ISV)
              VoIP UK: 0131 208 0605
              Located: Alexandria, EGYPT

              Comment


                #8
                thanks - I tried this but the section list still shows an extra add to cart button for each fragment I create

                Will try some more stuff now and let you know how I get on

                Thanks for the help so far.

                Comment


                  #9
                  Simon, you have either broken the layouts or you are not doing things correctly as you are the only one i've ever heard of with this problem. Go into the design library, revert the layouts back to factory standard and start again. Something is fundamentally wrong, back to basics is your best bet.

                  Comment


                    #10
                    thanks - am reverting back now.

                    Comment


                      #11
                      update

                      for anybody who is having the same issues, I have spoken to Bruce at Actinic and he can replicate the issue, so he has handed it to the dev team to tweak the code in the advanced user guide.

                      Comment


                        #12
                        Hi Simon,

                        Further to our call earlier this afternoon ...

                        If you take a look at the new layout you created called 'Section Link with Product Details' in the library, check the 'block if' on line 18 of the layout ( just above the 'AddToCartButton' layout.. double click on the block if to expand it.. you should see
                        Code:
                        <actinic:variable name="IsAddToCartButtonShown" /> AND 
                        (<actinic:variable name="NumberAttributesInPushButtonGrid" /> == 0)
                        You need to add a condition here to exempt the fragment so teh code would now read

                        Code:
                        <actinic:variable name="IsAddToCartButtonShown" /> AND 
                        (<actinic:variable name="NumberAttributesInPushButtonGrid" /> == 0)  AND (<actinic:variable name="ProductType" />  == 0)
                        Save and exit, you should now see only a single 'Add to Cart' button appearing for the product.

                        Kind regards,
                        Bruce King
                        SellerDeck

                        Comment


                          #13
                          bruce

                          thank you - worked like a dream

                          Thanks for your speedy help on this - it has been driving me mad

                          I can rest well tonight !!

                          SG

                          Comment


                            #14
                            I'm coming across the same problem and I'm unable to resolve it due to my code being different in the layout library, see below...

                            Does anyone know what I need to change to take away the second add to cart button?

                            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
                            <form method="post" action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />">
                            <input type="hidden" name="SID" value="<Actinic:Variable Name="SectionID"/>" />
                            <input type="hidden" name="PAGE" value="PRODUCT" />
                            <input type="hidden" name="PAGEFILENAME" value="<actinic:variable name="SectionPageName" />" />
                            <Actinic:SECTION BLOB='<Actinic:Variable Name="SectionCatFile"/>'/>
                            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">
                            <!-- Hidden field when in trial mode -->
                            <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" />
                            </actinic:block>
                            </actinic:block>

                            <div class="product_list">
                            <div class="image_product"><a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self"><img alt="<actinic:variable name="SectionName" encoding="strip"/>" src="<actinic:variable Name="SectionImageFileName"/>" border="0" /></a></div>
                            <div><h3 class="product"><a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self">
                            <actinic:variable name='SectionName'/></span></a></h3></div>
                            <actinic:block type="ProductList" >
                            <actinic:block type="PriceList" >
                            <b><actinic:variable name="PriceLayout" /></b><br>
                            <actinic:variable name='SectionDescription'/>
                            <br />
                            </actinic:block><actinic:block php="true" ></actinic:block>
                            </actinic:block>

                            <br>
                            <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self">More Info...</a>

                            <actinic:block type="ProductList" >
                            <div style="float: right;">
                            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20AND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGrid%22%20%2f%3e%20%3d%3d%200%29" >
                            <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><br>
                            <input type="text" name="Q_<Actinic:Variable Name="ProductReference"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" class="form_input_general" /><br/>
                            <actinic:variable name="AddToCartButton" />
                            </actinic:block>
                            </div>
                            </actinic:block>
                            </div>

                            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
                            </form>
                            </actinic:block>
                            <br />
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                            <td height="10" background="h_dots.gif">&nbsp;</td>
                            </tr>
                            </table>

                            Comment


                              #15
                              Try using the "Displaying Fragments Separately From Product" method from the AUG, thats how i stopped it showing fragments as products and having additional add to cart buttons.

                              Comment

                              Working...
                              X