brad Posted March 16, 2010 Share Posted March 16, 2010 Can someone explain for me in a simple way how i can do this! when you first come into prestashop, the main page is allways on "feat products" in the middle,Now i would like to delete that, and put "New products" instead of "feat products", in that place so the first thing you see when you come in is "New products". thanks in advance! Link to comment Share on other sites More sharing options...
brad Posted March 16, 2010 Author Share Posted March 16, 2010 please i can someone explain how i can paste new products into the main page(homepage) instead of feat products Link to comment Share on other sites More sharing options...
razaro Posted March 16, 2010 Share Posted March 16, 2010 Look here firsthttp://www.prestashop.com/wiki/Moving_and_Transplanting_Modules/#Transplanting_a_moduleSo to remove Featured block go toBack Office » Modules » PositionsHomepage content section and delete Featured Products on the homepage v0.9.Then to add New Products blockclick Transplant a moduleModule : New products blockHook into : Homepage contentBut to New Products block looks like Featured block you have to change css and tpl files or to download module like this onefrom this post or similar , search the forum. Link to comment Share on other sites More sharing options...
brad Posted March 16, 2010 Author Share Posted March 16, 2010 I didnt work, i planted "new products block" into homepage content, but the only thing that came up was the side block on the right menu, nothing in the main menu, what files do i have to change in that case? thanks in advance apprentice Link to comment Share on other sites More sharing options...
razaro Posted March 18, 2010 Share Posted March 18, 2010 My bad, new product block don't have defined hook for homepage.But you can easily add it.First backup module blocknewproducts then add this code to blocknewproducts.php function hookHome($params) { return $this->hookRightColumn($params); } Or to look like featured product block function hookHome($params) { global $smarty; $currency = new Currency(intval($params['cookie']->id_currency)); $newProducts = Product::getNewProducts(intval($params['cookie']->id_lang), 0, intval(Configuration::get('NEW_PRODUCTS_NBR'))); $smarty->assign(array( 'new_products' => $newProducts, 'mediumSize' => Image::getSize('medium'))); return $this->display(__FILE__, 'blockhomenew.tpl'); } Copy blockhomenew.tpl to modules\blocknewproducts This is modified tpl file from module from previous post. Link to comment Share on other sites More sharing options...
summer Posted March 20, 2010 Share Posted March 20, 2010 @brad: what is the result? Link to comment Share on other sites More sharing options...
brad Posted March 22, 2010 Author Share Posted March 22, 2010 i didnt try it, someone else with experiece fixed it, not sure how they did it? 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