Jump to content

Nadjib BELLOUNDJA

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • First Name
    Nadjib
  • Last Name
    BELLOUNDJA

Nadjib BELLOUNDJA's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Vekia, I didn't put anything in action="". I tried to put the template file or the controller pf my module (.php) but it didn't work. So what I did is that I added <div id="product-tab-content-CustomStampForClient" class="product-tab-content"> <input type="hidden" name="submitted_tabs[]" value="CustomStampForClient" id="myForm"/> ANd this <div class="panel-footer"> <a href="{$link->getAdminLink('AdminProducts')}" class="btn btn-default"><i class="process-icon-cancel"></i> {l s='Cancel'} </a> <button type="submit" name="submitAddproduct" class="btn btn-default pull-right"><i class="process-icon-save"></i> {l s='Save'} </button> <button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right"><i class="process-icon-save"></i> {l s='Save and stay'} </button> And know I have a Save and Stay button. Is it the right way to do it? Or is it also possible to add a custom form? What would be the right "action" for the form? Thanks.
  2. 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.
  3. 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".)
  4. Thanks Vekia, It worked. I just changed the required_once into require_once(dirname(__FILE__).'/controllers/admin/default.php') insteas.
  5. Hi everybody, Once I get this tab, I would like to have changes that are specific to a category and others that are specific to the produt. I would like each of this changes to be handled by different controllers. My question is when and how do I call other controllers within my hookDisplayAdminProductsExtra($params) function. My function is currently: public function hookDisplayAdminProductsExtra($params) { // I WOULD LIKE TO CALL MY CONTROLLERS IN THE module_folder/controllers/admin AND MAKE THEM CALL THE FOLLOWING PAGE return $this->display(__FILE__, 'stampcustom_admin_tab.tpl'); } Thanks.
×
×
  • Create New...