Monday, April 8, 2013

Prestashop adding jQuery plugin

Front end / Back end controller class, call this:
 $this->addJQuery($componentname);
 $this->addJqueryUI("ui.componentname");

 eg. $this->addJqueryUI("ui.datepicker");

3 comments:

Vivekananda Sakhilati said...

Dear Sir,

Thank you very much for providing valuable information.

I am trying hard to include Jquery ui Tabs a or accordion into prestashop 1.5.4 Front end Home page.

I was unable to do it.. I am not good coder. can you please explain in detail how to do it.

Please help us. we are waiting to launch our website on that.

Regards
Vivek Sakhilati

Unknown said...

hi,

u need to create a module and add in the head hook.
from there, call the $this->addJQueryUI("ui.tabs");

its located in js/jquery/ui/

refer to this sample
https://www.dropbox.com/s/k5p7h8vly70jwhr/test.zip

Unknown said...

a more easier way is to add it in themes/default/header.tpl