Jump to content

How to make a fly down button for the accessories?


Recommended Posts

http://www.prestashop.com/forums/viewthread/15951/help_installation___upgrade/accessories_flydown_button
OK, heres how i did it in the end.

that file that controls the tabs and sliding effects is:
\themes\prestashop\js\product.js


1) add the button to product.tpl wherever in the position you would like it to appear.







2) add code to the js file that controls the tabs 'product.js' after line 274.

    //catch the click for "accessories" button
   $('div#accessoriesbutton a.buttonacc').click(function(){
       $('#more_info_tab_accessories').click();
       $.scrollTo( '#more_info_tabs', 1200 );
   });




I have read this tread about how to make a fly down button for the accessories. I did exactly what it said to do, but my button doesnot fly. Can someone please tell me if there is anything I can do to make it work?

Thanks.
Link to comment
Share on other sites

Hi I will just ask this question one more time, and if I don't get the answer, I will just totally forget about this. I have tried it for over 2 days.... I really do not know what I should do to make that happen. Anyway, thank you for the help. :-S

Link to comment
Share on other sites

I just tried it and it worked for me. Did you remember to change [removed] to javascript followed by a colon?


It WORKED for you???? :gulp: Then I am in the right direction. I did use javascript by a colon at the end, I will try it again. Thank you.
Link to comment
Share on other sites

×
×
  • Create New...