nanqi Posted May 4, 2017 Share Posted May 4, 2017 (edited) Hi I am making a motor parts store that wants to have the features displayed by default on each product page instead of the description. The description section does not need to remain if it is necessary to remove it, I just need the features to be immediately available instead of tucked in behind the second tab. Any solutions welcome, thanks in advance! Prestashop 1.7 Edited May 4, 2017 by nanqi (see edit history) Link to comment Share on other sites More sharing options...
Jeff A Posted June 20, 2019 Share Posted June 20, 2019 I have the same question - I have created a child_classic/templates/catalog/product.tpl with: {extends file='parent:catalog/product.tpl'} and copied in {block name='product_tabs'} ... {/block} but don't know what changes to make to default to Features rather than Detail... Link to comment Share on other sites More sharing options...
Jeff A Posted June 20, 2019 Share Posted June 20, 2019 Ok - so following it through further shows that the templates are not well structured. You have to also change the child_classic/templates/catalog/_partials/product-details.tpl because someone decided to put some of the aria divs in product.tpl and others in product-details.tpl. Sniff - a bad code smell. I did the following: swap the order of the nav LI so that Description is second swap the order of the data DIV so that Description is second remove the conditional 'active' class from Description LI and DIV make the active class unconditional in Details LI and DIV The way the templates are coded seems sub-optimal. Not sure why they are not using a proper compose-block pattern. Splitting just some of the aria tab/divs into a child template... not pretty. Link to comment Share on other sites More sharing options...
7 Sergi Posted April 18, 2020 Share Posted April 18, 2020 Hi Jeff A, I'm also trying to swap the order of the tab in front office and make the details tab open by default. could you please explain exactly the things to do. it would be a great help to me if you can post ,for every step, the code and in which file. Thank you! 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