Announcement

Collapse
No announcement yet.

Limiting Best Sellers, New Products

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

    Limiting Best Sellers, New Products

    Hi i have a question regarding the Best Sellers and New Products layouts within Acitinic,

    i've been using the best sellers and new products in our site and find them very useful. I use the Bestsellerslistsidebar at product level, but have just recently added the best sellers list page to our homepage so customers can view all our best sellers on 1 page. My problem is that i only generate 4 best sellers and at product level as that's all i want to see. But that means my best sellers list page (homepage) will only show 4 products aswell which seems abit pointless. Is there a way i can generate say 20 products so my best sellers list on my homepage shows a decent amount of products, but limit the amount of products shown at product level to 4 so the customer get a taste of the best sellers at product level?

    Our bestsellerslistsidebar layout is as followed:

    HTML Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductThumbnailImageFileName%22%20%2f%3e%20%21%3d%20%22%22" >
    <a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable name="ProductID" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e" >&amp;SHOP=<actinic:variable name="ShopID" /></actinic:block>">
    <img src="<actinic:variable name="ProductThumbnailImageFileName" />" width="100" alt="<actinic:variable name="ProductName" />" class="moiicon" border="0"/>
    </a>
    </actinic:block>
     <p><actinic:variable name="PriceListRetail" value="Marketing Price List" /></Actinic:PRICES></p>
    and my best sellers list layout on our homepage is:

    HTML Code:
    <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%22ProductThumbnailImageFileName%22%20%2f%3e%20%21%3d%20%22%22" >
    <a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable name="ProductID" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e" >&amp;SHOP=<actinic:variable name="ShopID" /></actinic:block>">
    <img src="<actinic:variable name="ProductThumbnailImageFileName" />" alt="<actinic:variable name="ProductName" />" class="moiicon" border="0"/>
    </a>
    </actinic:block>
    
    <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 style="margin: 5px 0 0 0;">
    <actinic:variable name="AttributeList" />
    <actinic:variable name="ComponentList" />
    <actinic:variable name="AddToCartButton" />
    </div>
    
    <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>
    <a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable name="ProductID" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e" >&amp;SHOP=<actinic:variable name="ShopID" /></actinic:block>">
    <img src="moreinfo.gif" 
       alt="More Infomation On <actinic:variable name="ProductName" />" 
       width="162" height="18" vspace="5" border="0"
       onMouseOver="src='moreinfo_r.gif' "
       onMouseOut="src='moreinfo.gif' "
    ></a>
    <actinic:block type="PriceList" >
    <b><actinic:variable name="PriceLayout" /></b></br>
    </actinic:block>
    
    <actinic:block php="true" >
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
    </form>
    </actinic:block>
    
      </TD>
     </TR>
    </TABLE>
    </DIV>
    i have a test site so you can see what i mean: www dot classixshop dot com /acatalog/test/acatalog

    Cheers FrAz
    Cheers FrAz

    #2
    Jont posted a pretty extensive answer on how to do this some time ago IIRC. You can set certain pages to use certain products in the list, so home page could have best sellers 1-12 and product pages could have 13-20 for example. It involves using the listindex variable, have a play with it, limiting it to certain bands.

    listindex <= 12 (pseudo code) would for example limit things to the first 12 items where you put it.

    Comment


      #3
      I think it's in the KB too somewhere (possibly even the AUG)
      Tracey

      Comment


        #4
        Yeh i found what i was looking for in the AUG thanks for the heads up guys.

        AUG Pg: 64
        Cheers FrAz

        Comment

        Working...
        X