Jump to content

Best Sellers & Featured Product help control and change


MKerr

Recommended Posts

I would like to be able to control the "Best Sellers" list and the Featured Product, also "Latest Products" on our website. I have no idea how to do this and I have tried. Please HELP? I believe we have the 6.0 version, however I am not 100% sure. Thank you. 

Link to comment
Share on other sites

In admin, Store Settings, Layout tab, for "Source data for popular products" is the "Best Sellers" selector. Your choice is the number of times visitors have viewed that product and the number of times customers have bought that product. If you wish to have CubeCart base the selection of Best Sellers using any other criteria, an edit to the core code will be necessary.

The Featured Product is a completely random chosen item. An edit to the skin is necessary to remove this box.

In admin, Store Settings, one can choose to display Latest Products and how many. For each product, you have the choice of including it as a Latest Product.

There may be plugins available that will enhance the functionality of these features.

Link to comment
Share on other sites

I've made an issue and a pull request for this on GitHub that would allow admins to specify exactly which products show up in the Featured Product box independently from those that show up on the home page.

If you are handy with Git, you can pull those changes in to your code base; if not, maybe adding a comment on GitHub in support of merging the Pull Request will help get this feature implemented.

Link to comment
Share on other sites

You can code these in. As an example if you visit the cubecart demo store at https://demo.cubecart.com/cc6/ and view the source code you will see the following html for the Best Sellers

<div class="panel" id="box-popular">
  <h3>Best Sellers</h3>
  <ol>
        <li><a href="https://demo.cubecart.com/cc6/tv-home-cinema/3d-tvs/sony-kdl-32hx753-3d-tv.html" title="Sony KDL-32HX753 3D TV">Sony KDL-32HX753 3D TV</a><br>
             <span class="old_price">£699.00</span> <span class="sale_price">£657.99</span>
        </li>
        <li><a href="https://demo.cubecart.com/cc6/su-b400s-tv-stand.html" title="SU-B400S TV Stand">SU-B400S TV Stand</a><br>
             £65.99
        </li>
        <li><a href="https://demo.cubecart.com/cc6/3d-glasses-tdg-br200/w.html" title="3D Glasses TDG-BR200/W">3D Glasses TDG-BR200/W</a><br>
             <span class="old_price">£22.99</span> <span class="sale_price">£18.75</span>
        </li>
      </ol>
</div>


and for the On Sale products

                  
<div class="panel" id="box-sale_items">
  <h3>On Sale</h3>
  <ul>
      <li>
      <a href="https://demo.cubecart.com/cc6/tv-home-cinema/3d-tvs/sony-kdl-32hx753-3d-tv.html" title="Sony KDL-32HX753 3D TV (Save £41.01)">Sony KDL-32HX753 3D TV</a><br>
      <span class="old_price">£699.00</span> <span class="sale_price">£657.99</span>
    </li>
      <li>
      <a href="https://demo.cubecart.com/cc6/3d-glasses-tdg-br200/w.html" title="3D Glasses TDG-BR200/W (Save £4.24)">3D Glasses TDG-BR200/W</a><br>
      <span class="old_price">£22.99</span> <span class="sale_price">£18.75</span>
    </li>
    </ul>
</div>

If you find the same in your store you could then edit the files in the foundation skins/foundation/templates/box.popular.php and skins/foundation/templates/box.sale_items.php and replace the code that is already there (everything below the  *} with the html code for each of the two boxes.

Then you can edit the products to suit your requirements.

For the Featured product the code in the demo is

               
<div class="panel" id="box-featured">
   <h3>Featured Product</h3>
   <a class="th" href="https://demo.cubecart.com/cc6/tv-home-cinema/3d-tvs/sony-kdl-32hx753-3d-tv.html" title="Sony KDL-32HX753 3D TV">
   <img src="https://demo.cubecart.com/cc6/images/cache/sony/KDL-32HX753/203840.200.jpeg" alt="Sony KDL-32HX753 3D TV">
   </a>
   <h4><a href="https://demo.cubecart.com/cc6/tv-home-cinema/3d-tvs/sony-kdl-32hx753-3d-tv.html" title="Sony KDL-32HX753 3D TV">Sony KDL-32HX753 3D TV</a></h4>
      <span class="old_price">£699.00</span> <span class="sale_price">£657.99</span>
   </div>

You can edit the skins/foundation/templates/box.featured.php file and replace with the copied html then edit to the product you wish to show.

The latest products can be controlled by setting the specific product to show to either yes or no in admin on the Products General tab. There is a tick box to show in Latest Products or not.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...