SLiCK_303 Posted June 19, 2017 Share Posted June 19, 2017 (edited) So what I am trying to do is add a button at the bottom of each of those, on the homepage, to say 'all best sellers' on the bestsellers block or 'all new products' on the newproducts block. This is what I have, but it's not working, anyone have any thoughts on how I can make this happen? Its on 1.6.1.14, and the following file is my blockbestsellers-home.tpl. Thanks in advance.... So if i modify the code thusly, I get it to work, but...It then shows the button for 'all best sellers' on the newproducts page as well.....You can see what I mean at http://www.paganliving.net , my 1.6.1.14 test site.... {* * 2007-2016 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2016 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($best_sellers) && $best_sellers} {include file="$tpl_dir./product-list.tpl" products=$best_sellers class='blockbestsellers tab-pane' id='blockbestsellers'} <p class="lnk"><a href="{$link->getPageLink('best-sales')|escape:'html'}" title="{l s='All best sellers' mod='blockbestsellers'}" class="button_large">» {l s='All best sellers' mod='blockbestsellers'}</a></p> {else} <ul id="blockbestsellers" class="blockbestsellers tab-pane"> <li class="alert alert-info">{l s='No best sellers at this time.' mod='blockbestsellers'}</li> </ul> {/if} Edited July 6, 2017 by SLiCK_303 (see edit history) Link to comment Share on other sites More sharing options...
SLiCK_303 Posted June 20, 2017 Author Share Posted June 20, 2017 I figured it out....what ya gotta do is this... {* * 2007-2016 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2016 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($best_sellers) && $best_sellers} <ul id="blockbestsellers" class="blockbestsellers tab-pane"> <li> <div> {include file="$tpl_dir./product-list.tpl" products=$best_sellers class='blockbestsellers tab-pane' id='blockbestsellers'} <a href="{$link->getPageLink('best-sales')|escape:'html'}" title="{l s='All best sellers' mod='blockbestsellers'}" class="button_large">» {l s='All best sellers' mod='blockbestsellers'}</a> </div> </li> </ul> {else} <ul id="blockbestsellers" class="blockbestsellers tab-pane"> <li class="alert alert-info">{l s='No best sellers at this time.' mod='blockbestsellers'}</li> </ul> {/if} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now