ahmadamani Posted June 25, 2015 Share Posted June 25, 2015 (edited) hi every body, i'm new to prestashop. i'm working on a new module which shows a page consist of forms and buttons in admin panel of products. those form use ajax and query a php page inside my module root folder. also, i have my js files in /views/js/ folder. i have two problems: 1) the used javascript files in my tpl doesnt included in page. i add this line ($this->context->controller->addJS($this->_path.'views/js/custom.js')) to hookDisplayHeader in my module. but nothing changed. 2) after submitting, a 404 page has been shown. i have <form action="{$module_dir}handler.php" method="post"> in my form. i have handler in my module root folder and template folder. What should I do to make that module works? it's gonna make me crazy. thank you. p.s. the html form and js files are working correctly outside presta. p.s. smarty cache is disabled. Edited June 25, 2015 by ahmadamani (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now