I want use a jQuery plugin in category.tpl. Put files in javascript/jquery directory. Now, how can use this plugin?
I want use a jQuery plugin in category.tpl. Put files in javascript/jquery directory. Now,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve never used OpenCart, but a quick google session tells me that you should include the plugin scripts (just like any other js) in a file called
header.tpl.Here is a part of an sample
header.tpl-file I found:Just add a the following line below the jQuery include so it looks like this:
and you should be good to go.