Announcement

Collapse
No announcement yet.

Add to Cart & Attributes @ Section Level

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

    Add to Cart & Attributes @ Section Level

    Hi we're currently running: v8.5.3 and we are currently SPP. i've seen a few posts on the forums but that don't seem to answer my question.

    Cant i have my add to cart and dropdown attributes @ section level. If so, how can this be accomplished?.

    Our current section layout is as followed:

    HTML Code:
    <!-- SectionLine HTML begin -->
    <!-- Insert HTML for the beginning of a section title -->
    <DIV ALIGN="CENTER">
    <TABLE BORDER="0" CELLSPACING="0" width="154" CELLPADDING="5" valign="TOP">
     <TR>
      <TD ALIGN="center" VALIGN="TOP">
       <p style="margin:0px;font-size:12px"><B><A 
     class="whitebg" 
    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>"><!-- SectionNavImage HTML begin -->
    <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionImageAlt%22%20%2f%3e%20%3d%3d%20%22%22" >
    	<img alt="<actinic:variable name="SectionName" />" src="<actinic:variable name="SectionImageFileName" />" border="0" />
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionImageAlt%22%20%2f%3e%20%21%3d%20%22%22" >
    	<img src="<actinic:variable name="SectionImageFileName" />" alt="<actinic:variable name="SectionName" />" onMouseOver="src='<actinic:variable name="SectionImageAlt" />' " onMouseOut="src='<actinic:variable name="SectionImageFileName" />' " border="0"> 
    </actinic:block>
    <!-- SectionNavImage HTML end 	  <actinic:variable name="SectionImageHeight" />
    	  <actinic:variable name="SectionImageWidth" />
    	  --></A>
       <p style="margin:0;font-size:11px"><B><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>"><actinic:variable formatting="font(Color|808080)" name="SectionName" /></A></B></p>
          <actinic:block type="ProductList" >
    <actinic:block type="PriceList" >
    <actinic:variable name="PriceLayout" /><br/>
    </actinic:block> 
    </actinic:block> 
    <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" >
    <actinic:variable name="AddToCartButton" /><br>
    </actinic:block>
       <actinic:variable formatting="bold" encoding="actinic" name="SectionDescription" />
    
      </TD>
     </TR>
    </TABLE>
    </DIV>
    
    
    <!-- Insert HTML for the end of a section title -->
    <!-- SectionLine HTML end -->
    
    
    Cheers FrAz

    #2
    I think the AUG has been updated with the information youneed. If it's note in the V8 Advanced User Guide, try the one for V9.

    Army Gore-tex
    Winter Climbing Mitts
    webD's Blog: Website design, SEO and other ramblings…
    Twitter LinkedIN

    If you think a post is good, rate it!

    Find the answers in the Knowledge Base | Have you read the User Guides

    Comment


      #3
      I believe the AUG was recently updated in this area, worth looking at that first.

      Comment


        #4
        Cool found something in v1.7 that helped me put this into the site. i've completely battered it to get it to display the sections images how i want, can this code it tidied up any better that this?

        I'm not sure if i took all the useless code out?:

        HTML Code:
        <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>
        
        <actinic:block type="ProductList" >
        <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%21%3d%202" >
        
        <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" >
        <center><div><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" class="moiicon"/></a></div>
        <div><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"><span style="color:#080808"><actinic:variable name='SectionName'/></span></a></div></center>
        <center><actinic:variable name="AttributeList" /></center>
        <center><actinic:variable name="ComponentList" /></center>
        <center><actinic:variable name="AddToCartButton" /></center>
        </actinic:block>
        </actinic:block>
        
        <actinic:block type="PriceList" >
        <center><b><actinic:variable name="PriceLayout" /></b></center>
        </actinic:block>
        <actinic:block php="true" >
        </actinic:block>
        </actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
        </form>
        </actinic:block>
        I've attatched a picture to show what i'm displaying atm, Cheers FrAz
        Attached Files
        Cheers FrAz

        Comment


          #5
          Yes, It is in the v9 AUG, I was looking at it yesterday.
          Try around p34 - "Single Product Per Page - Using Subsections"
          Darren Guppy
          Golf Tee Warehouse
          Golf Tees and Golf Accessories.

          Comment


            #6
            Hi, just a follow up from my last post, the code i submitted (ie. the battered on) had clearly not been tested and failed to add the products to cart. I think it was because there was no quantity being given, but i've since had a play with it and have got it to work properly, whether it's good code or not is a completely different matter.

            Is there any blockif rules that can be removed from this layout?

            HTML Code:
            <!-- SectionLine HTML begin -->
            <!-- Insert HTML for the beginning of a section title -->
            
            <DIV ALIGN="CENTER">
            <TABLE BORDER="0" CELLSPACING="0" width="170" CELLPADDING="10" valign="TOP">
             <TR>
              <TD ALIGN="center" VALIGN="TOP">
            <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>
            
            <actinic:block type="ProductList" >
            <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%21%3d%202" >
            <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" >
            <center><div><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" class="moiicon"/></a></div>
            <div><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'/></a></div></center>
            <center><actinic:variable name="AttributeList" /></center>
            <center><actinic:variable name="ComponentList" /></center>
            <center><actinic:variable name="AddToCartButton" /></center>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e" >
                  <br />
                  <span class="actrequired"><actinic:variable name="QuantityPrompt" /></span>
                  &nbsp;
                  <input type="text" name="Q_<actinic:variable name="ProductID" />" size="4" value="<actinic:variable name="DefaultQuantity" />" />
            </actinic:block>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptHidden%22%20%2f%3e" >
            	<input type="hidden" name="Q_<actinic:variable name="ProductID" />"  value="<actinic:variable name="DefaultQuantity" />" />
            </actinic:block>
            </actinic:block>
            </actinic:block>
            
            <actinic:block type="PriceList" >
            <center><b><actinic:variable name="PriceLayout" /></b></center></br>
            </actinic:block>
            <actinic:block php="true" >
            </actinic:block>
            </actinic:block>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
            </form>
            </actinic:block>
            
              </TD>
             </TR>
            </TABLE>
            </DIV>
            
            <!-- Insert HTML for the end of a section title -->
            <!-- SectionLine HTML end -->
            Cheers FrAz

            Comment

            Working...
            X