mzfp Posted October 1, 2014 Share Posted October 1, 2014 Hi, I'm hoping someone already knows the answer to this little problem which I've been grinding over for the past few hours to no avail. In short, I am creating a nodule which implements the displayAdminProductsExtra hook. This results in an extra tab being added to the product edit page in the back office and here I render a form using the HelperForm class. When the form is submitted it is processed by the module for saving the information. All this works without any issues, however I am attempting to implement the display of form errors and cannot figure out how to go about processing the form, returning and displaying any errors while keeping keeping my custom tab open. It seems after submit, the default "information" tab is opened. Any sort of help would be hugely appreciated. Muzz Link to comment Share on other sites More sharing options...
sandipchandela Posted October 2, 2014 Share Posted October 2, 2014 Hello friend, you can use ajax to implement this way. find admin-products.js in main js directory search for function ajaxAction() then detect controller request in AdminProductsController.php using Tools::getValue(''); thanks Link to comment Share on other sites More sharing options...
mzfp Posted October 2, 2014 Author Share Posted October 2, 2014 Hi Sandip Thanks for your thoughts and time. I was hoping to do this without Ajax, just a normal form submit. I see that that other tabs in the product admin manage to acheive what I am after but I just can't figure out how Hello friend, you can use ajax to implement this way. find admin-products.js in main js directory search for function ajaxAction() then detect controller request in AdminProductsController.php using Tools::getValue(''); thanks Link to comment Share on other sites More sharing options...
Nadjib BELLOUNDJA Posted June 22, 2015 Share Posted June 22, 2015 Hi mzfp, Did you manage to find a solution to your proble? I have the exact same issue; it would be great if you could tell me how to solve it. Thanks. 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