RasdyCute Posted March 26, 2015 Share Posted March 26, 2015 Hello guys I have made a new feature on my website and I want to move the HOME TABS on every category that will sort them as New Arrivals, Best Sellers and Popular Hope somebody can help me here I have already solved for new arrivals but the popular and best sellers are not yet. Thanks in Advance Link to comment Share on other sites More sharing options...
NemoPS Posted March 27, 2015 Share Posted March 27, 2015 You mean you need that to display the same on every category, or you need to add a category-specific set of tabs, displaying only entries of the category that is currently being viewed? Link to comment Share on other sites More sharing options...
RasdyCute Posted April 9, 2015 Author Share Posted April 9, 2015 Yes sir, can you help me with this I am using 1.6.0.14 Link to comment Share on other sites More sharing options...
NemoPS Posted April 10, 2015 Share Posted April 10, 2015 Yes to the first or the second one? Link to comment Share on other sites More sharing options...
RasdyCute Posted April 10, 2015 Author Share Posted April 10, 2015 On the first one to dispaly the same in every category. Would to advise me something over that problem and thanks in advance Link to comment Share on other sites More sharing options...
NemoPS Posted April 10, 2015 Share Posted April 10, 2015 If you need all tabs, simply grab the displayHomeTabs and displayHomeTabsCOntent hooks that you find in index.tpl and try copying them into category.tpl {if isset($HOOK_HOME_TAB) && $HOOK_HOME_TAB|trim} <ul id="home-page-tabs" class="nav nav-tabs clearfix"> {$HOOK_HOME_TAB} </ul> {/if} <div class="tab-content">{$HOOK_HOME_TAB_CONTENT}</div> I am not totally sure it will work. If not, you need to create new hooks there, and register them in the module you want to plug in to that pagehttp://nemops.com/adding-hooks-to-prestashop-1-5/#.VSeFY_nQqr0 Link to comment Share on other sites More sharing options...
RasdyCute Posted April 10, 2015 Author Share Posted April 10, 2015 Thanks sir I will try it... Hope this can help me on my problem Link to comment Share on other sites More sharing options...
Ed_03 Posted June 6, 2015 Share Posted June 6, 2015 Hie. How do I display products per category on my homepage with each category having a title e.g LAPTOPS as well as "New Arrivals" "Best Sellers" "Popular" tabs per each category. Link to comment Share on other sites More sharing options...
NemoPS Posted June 6, 2015 Share Posted June 6, 2015 It would be complicated to explain you the whole procedure. It also depends on which category you want to display products of.Create a module, then a method named hookDisplayHome. Inside it, create a new category instance for each of the ones you need, and then again$category->getProducts(); to get them. Of course, you need to assign them all to the template in the end Link to comment Share on other sites More sharing options...
Ed_03 Posted June 8, 2015 Share Posted June 8, 2015 Thanx Nemo, it turned out that the theme developers had disabled the widget heading in the code, so i had to add the following code to the widget_producttabs.tpl file. {if isset($widget_heading)&&!empty($widget_heading)} <h4 class=”title_block”> {$widget_heading} </h4> {/if} Link to comment Share on other sites More sharing options...
Recommended Posts