Programmers Direct Posted March 27, 2014 Share Posted March 27, 2014 I have made my own tab and most of it works but I cannot find where to add the jquery link as every time I click it it does not switch to page. So on behalf of all us users can someone please give a tutorial on this as it seems there is little on the home page tab addition. I hope someone can either message me with the information so I can make the tutorial, or make one themselves as this would help many of us to generate more sales and the ability to buy or pay for other modules and themes. Thanks, William Shop Save N Earn http://www.shopsavenearn.com Link to comment Share on other sites More sharing options...
Programmers Direct Posted March 27, 2014 Author Share Posted March 27, 2014 I hope someone could help with this as I am sure many people need it and it would generate great traffic as there is little to no information on it on the internet. Link to comment Share on other sites More sharing options...
vekia Posted March 27, 2014 Share Posted March 27, 2014 you use old 1.5 theme homepage tabs will not work in this template - it isn't support displayHomeTab and dispalyHomeTabContent hooks. Link to comment Share on other sites More sharing options...
Programmers Direct Posted March 27, 2014 Author Share Posted March 27, 2014 I use 1.5 theme on my live website, although I use 1.6 of the same that is upgraded to 1.6, all of which has upgraded flawlessly I might add for my testing site which is on the same server and based off of the default bootstrap theme. I have everything working except when I click the tab the content does not show. Link to comment Share on other sites More sharing options...
vekia Posted March 27, 2014 Share Posted March 27, 2014 any chance to see it live somewhere? im asking because it sounds like some kind of js / css problem so it's necessary to inspect website with browser dev tools Link to comment Share on other sites More sharing options...
Programmers Direct Posted March 27, 2014 Author Share Posted March 27, 2014 (edited) yes it is open for viewing at www.testing.shopsavenearn.com Edited March 27, 2014 by ShopSaveNEarn (see edit history) Link to comment Share on other sites More sharing options...
Programmers Direct Posted March 27, 2014 Author Share Posted March 27, 2014 (edited) thanks for the help I did no edits to js which may be an issue Edited March 27, 2014 by ShopSaveNEarn (see edit history) Link to comment Share on other sites More sharing options...
Programmers Direct Posted March 28, 2014 Author Share Posted March 28, 2014 Okay I did get it working. now I need to get the page to show it, but in doing so I had to scrap what I had. Link to comment Share on other sites More sharing options...
vekia Posted March 28, 2014 Share Posted March 28, 2014 I'm late website is under maintenance mode again but it's not necessary now - the most important thing that it works for you now. Link to comment Share on other sites More sharing options...
Programmers Direct Posted March 28, 2014 Author Share Posted March 28, 2014 (edited) Yes thank you for your help. By chance, can I call a front controller class from the module as I cannot populate smarty using the same Product::PricesDrop statement used in the controller as it errors. I did create a new controler but not sure how to call it to populate the smarty. Edited March 28, 2014 by ShopSaveNEarn (see edit history) Link to comment Share on other sites More sharing options...
Programmers Direct Posted March 28, 2014 Author Share Posted March 28, 2014 Why cant I put this $this->productSort(); $nbProducts = Product::getPricesDrop($this->context->language->id, null, null, true); $this->pagination($nbProducts); $products = Product::getPricesDrop($this->context->language->id, (int)$this->p - 1, (int)$this->n, false, $this->orderBy, $this->orderWay); $this->addColorsToProductList($products); in my module page as the; $this->productSort(); $this->pagination($nbProducts); $this->addColorsToProductList($products); and the bolded parts also error $this->p - 1, (int)$this->n, false, $this->orderBy, $this->orderWay) However, I must have the information the PricesDrop controller generates to run the prices drop products Link to comment Share on other sites More sharing options...
Programmers Direct Posted March 28, 2014 Author Share Posted March 28, 2014 I will mark this solved as I have now got it to work with $nbProducts = Product::getPricesDrop($this->context->language->id, null, null, true); $products = Product::getPricesDrop($this->context->language->id, (int) 1,(int) 12, false); with 12 being the amount of product shown Link to comment Share on other sites More sharing options...
Programmers Direct Posted March 28, 2014 Author Share Posted March 28, 2014 okay while testing and viewing everything it seems that the actual page for specials is no longer working. So my question is, " How come Product::getPricesDrop works but when adding my own controller the Product::getSpecialsTabContent will not? Also why does $specials = Product::getPricesDrop($this->context->language->id, (int) 1,(int) 12, false); make the Specials page not work? Link to comment Share on other sites More sharing options...
Programmers Direct Posted March 28, 2014 Author Share Posted March 28, 2014 Okay you great people I need a code that selects the specials from the database without using the one below $products = Product::getPricesDrop($this->context->language->id, (int) 1,(int) 12, false); Any help would be very appreciated, Link to comment Share on other sites More sharing options...
brim Posted April 3, 2014 Share Posted April 3, 2014 My content tabs are showing on the homepage, but the content is not changing when the tab is clicked.Prestashop version 1.6. Website is http://www.sunset27.co.nzIs this a bug? Link to comment Share on other sites More sharing options...
Programmers Direct Posted April 4, 2014 Author Share Posted April 4, 2014 Check to make sure the template and the module names are correct and if there has been no edits done uninstall and reinstall the featured products module. However, this could be also because of the theme which also must match the modules tab setup too. Link to comment Share on other sites More sharing options...
brim Posted April 7, 2014 Share Posted April 7, 2014 Somehow I fixed my tabs not working by ensuring the module hooks were in displayHomeContentTabs, then in BO Preferences > Themes > Clicked EDIT on my theme, made a change (any change) then saved.Seems to have needed some SAVE code that the themes page offers. Dont know, but its now working. Link to comment Share on other sites More sharing options...
brim Posted July 29, 2014 Share Posted July 29, 2014 Homepage tabs are not working again. I have found out that when I turn Off Smarty Cache, then the tabs start working. Is this the solution - or is something wrong here? Link to comment Share on other sites More sharing options...
brim Posted July 29, 2014 Share Posted July 29, 2014 OK, I have now disabled the Layered Navigation Block.Pagination and manufacturers block now works all ok. Link to comment Share on other sites More sharing options...
Recommended Posts