Jump to content

[SOLVED] changing destiny of "more details"


Recommended Posts

Hi all I want to do the following to see this page
http://rdreamdhost.com/pimentarara/product.php?id_product=2

When 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 ...

Att
Ricardo Vianna

Link to comment
Share on other sites

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

  • 3 weeks later...

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

×
×
  • Create New...