Hi everybody,
I am coding my own module to enable extra customisations on each product of my shop. So I used the hook "DisplayAdminProductsExtrta" mymodule.php in order to create an extra tab ("Custom Stamp for Client", check the picture) in each product page of Catalog/Products in the admin back office.
Now in the hook, I use $this->display("mymodule_admin.tpl"). It is a template file in which there is a form. The form allows the admin to chose some colors available for this product. The form has a submit button and by submitting, the chosen colors are saved in the database.
My problem is that each time I submit the form on the mymodule_admin.tpl, I am being redirected to the tab "Information" of my product admin page. I don't want to be redirected, I want to stay on the same tab after submitting. My purpose is to be able to then update the values on that same tab without being redirected.
Can someone help me how to stay on the same tab after submit?
(Exemple: On all the other tabs, there are two buttons on the right side, one that is "Save" and one "Save and Stay". I would like to have the same thing as "Save and Stay".)