ricardovtav Posted September 8, 2010 Share Posted September 8, 2010 Hi all I want to do the following to see this pagehttp://rdreamdhost.com/pimentarara/product.php?id_product=2When someone clicks on "more details" page down and go to the "more info" if I click on "parcelling" and click "more details" page down and opens the "more info" again. how do I go down and open the page "data sheet"?I saw the js code in .. / themes / prestashop / js / product.js the following code / / Catch the click on the "more infos" button at the top of the page $ ('Div # short_description_block a.button p'). Click (function () ( $ ('# More_info_tab_more_info'). Click (); $. ScrollTo ('# more_info_tabs', 1200); )); but the only thing I could change the speed was down qa page by changing the "1200"I would like help from you guys ...AttRicardo Vianna Link to comment Share on other sites More sharing options...
rocky Posted September 9, 2010 Share Posted September 9, 2010 It is the following line you need to change: $('#more_info_tab_more_info').click(); If you don't want the "More info" tab to be selected after clicking the "More details" button, add // to the front of this line to comment it out. If you want the "Data sheet" tab to always be selected after clicking the "More details" button, change it to: $('#more_info_tab_data_sheet').click(); Link to comment Share on other sites More sharing options...
ricardovtav Posted September 29, 2010 Author Share Posted September 29, 2010 friend, did not work Link to comment Share on other sites More sharing options...
rocky Posted September 30, 2010 Share Posted September 30, 2010 I just tested it on my test site and it is working fine. I'm not sure why it isn't working for you. When I comment out the click() line, it stays on the same tab when clicking "More details" instead of changing back to the "More info" tab. When I change the click() line to #more_info_tab_data_sheet, it switching to the "Data sheet" tab whenever clicking "More details". Link to comment Share on other sites More sharing options...
ricardovtav Posted October 7, 2010 Author Share Posted October 7, 2010 sorry friend, I messed up, but it worked ..but actually my doubt is:See this page: http://rdreamdhost.com/modelos/2509/product.php?id_product=1how do I open the tab parcelling? Link to comment Share on other sites More sharing options...
rocky Posted October 8, 2010 Share Posted October 8, 2010 The Parcelling tab is missing an ID. You will need to edit the code and change: Parcelling to: Parcelling then you can use: $('#more_info_tab_parcelling').click(); Link to comment Share on other sites More sharing options...
ricardovtav Posted October 8, 2010 Author Share Posted October 8, 2010 PERFECT!!!!really, really, thank you Link to comment Share on other sites More sharing options...
rocky Posted October 8, 2010 Share Posted October 8, 2010 Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
Recommended Posts