banel Posted October 31, 2013 Share Posted October 31, 2013 Hello everyone, I wonder if it's possible to go directly to the product page for a category with a single product without going through the intermediate page that normally displays the products of the category? Regards. Link to comment Share on other sites More sharing options...
vekia Posted October 31, 2013 Share Posted October 31, 2013 by default it isn't possible, only with modification of blockcategories / top menu module (or other modules / page where the link to category appears) Link to comment Share on other sites More sharing options...
banel Posted October 31, 2013 Author Share Posted October 31, 2013 Thank you for your solution. Regards. Link to comment Share on other sites More sharing options...
vekia Posted November 1, 2013 Share Posted November 1, 2013 if you need any additional assistance in this case, feel free to write, i can show you how to change these links to point to the product pages Link to comment Share on other sites More sharing options...
banel Posted November 6, 2013 Author Share Posted November 6, 2013 Hello Vekia, Can you explain me how to change the links to point to the product pages? Regards. Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2013 Share Posted November 6, 2013 in top menu module file (blocktopmenu.php) you've got code like: case 'CMS': $selected = ($this->page_name == 'cms' && (Tools::getValue('id_cms') == $id)) ? ' class="sfHover"' : ''; $cms = CMS::getLinks((int)$id_lang, array($id)); if (count($cms)) $this->_menu .= '<li'.$selected.'><a href="'.Tools::HtmlEntitiesUTF8($cms[0]['link']).'">'.$cms[0]['meta_title'].'</a></li>'.PHP_EOL; break; you have to add if condition (with else) where you will check cms page id and then place link to the product (instead of Tools::HtmlEntitiesUTF8($cms[0]['link']) code) Link to comment Share on other sites More sharing options...
banel Posted November 6, 2013 Author Share Posted November 6, 2013 Thank you, But i d'ont use the top menu to navigate.I want to link to the product pages from categories. Regards. Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2013 Share Posted November 6, 2013 sorry for misunderstanding you mean that instead of category page you want to display product page? Link to comment Share on other sites More sharing options...
banel Posted November 7, 2013 Author Share Posted November 7, 2013 Hello, I want something like here : http://www.pixartprinting.fr/petit-format/impression-flyers-tractes/ When I click onn "flyer et tracts" i want to go directly to the product page. Regards. 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