sickshot Posted April 24, 2013 Share Posted April 24, 2013 hello i'd like to remove some unnecessary tabs in admin product edit page. i want to remove customization, attachment, supplier tabs , but was unable to detect which file to edit. if anyone knows please help.Thanks Link to comment Share on other sites More sharing options...
vekia Posted April 24, 2013 Share Posted April 24, 2013 well, it's not good idea, but if you want, you should give us information about what prestashop version you use Link to comment Share on other sites More sharing options...
sickshot Posted April 24, 2013 Author Share Posted April 24, 2013 oh sorry i forgot. version is 1.5.3.1 I know this is not a good idea but i really need to remove them Link to comment Share on other sites More sharing options...
sickshot Posted April 27, 2013 Author Share Posted April 27, 2013 no chance? Link to comment Share on other sites More sharing options...
vekia Posted April 27, 2013 Share Posted April 27, 2013 hello in controllers / AdminProductsController.php near line ~97 you've got: $this->available_tabs = array('Quantities' => 6, 'Warehouses' => 14); if ($this->context->shop->getContext() != Shop::CONTEXT_GROUP) $this->available_tabs = array_merge($this->available_tabs, array( 'Informations' => 0, 'Pack' => 7, 'VirtualProduct' => 8, 'Prices' => 1, 'Seo' => 2, 'Associations' => 3, 'Images' => 9, 'Shipping' => 4, 'Combinations' => 5, 'Features' => 10, 'Customization' => 11, 'Attachments' => 12, 'Suppliers' => 13, )); try to manage the array elements, you will see how it works 2 Link to comment Share on other sites More sharing options...
sickshot Posted April 28, 2013 Author Share Posted April 28, 2013 thank you i'll give it a try and get back with the results. Link to comment Share on other sites More sharing options...
Julia James Posted October 4, 2013 Share Posted October 4, 2013 (edited) this help me for updating my side tabs Edited October 4, 2013 by Julia James (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 5, 2013 Share Posted October 5, 2013 this help me for updating my side tabs hello may i know what you changed? i'm wondering if sickshot achieved what he expected, it looks like my suggestions was alright Link to comment Share on other sites More sharing options...
Julia James Posted October 5, 2013 Share Posted October 5, 2013 yes dear you are correct and as i am new so am i love with codings and updation as i like its really a very good community here every one will help each other. Link to comment Share on other sites More sharing options...
vekia Posted October 6, 2013 Share Posted October 6, 2013 thank you for you kind words about community. Im going to mark this topic as [solved] im convinced that it is solved, mainly because i used this method in several ps installations. with regards, Milos Link to comment Share on other sites More sharing options...
Riya Posted October 15, 2013 Share Posted October 15, 2013 thanks Link to comment Share on other sites More sharing options...
jeyjoo Posted November 4, 2013 Share Posted November 4, 2013 I have done this in the past using css, for example: #link-Suppliers {display:none;} to remove the suppliers tab I was not using. If you need to do this for different admin access levels, then you need conditional PHP to test the employee profile. Link to comment Share on other sites More sharing options...
sickshot Posted January 5, 2014 Author Share Posted January 5, 2014 hello, sorry for late reply... unfortunately I was unable to test this solution as the project was canceled. anyway Im sure me or someone else will find it usefull Link to comment Share on other sites More sharing options...
Borax Posted May 19, 2014 Share Posted May 19, 2014 (edited) What about the main tabs, how can we remove some of them wich we don't use (shipping for example)? I want to simplify the system for the novice users. Was a silly question. Sorry. Edited May 19, 2014 by boragursel (see edit history) Link to comment Share on other sites More sharing options...
iAreku Posted December 31, 2014 Share Posted December 31, 2014 hello in controllers / AdminProductsController.php near line ~97 you've got: $this->available_tabs = array('Quantities' => 6, 'Warehouses' => 14); if ($this->context->shop->getContext() != Shop::CONTEXT_GROUP) $this->available_tabs = array_merge($this->available_tabs, array( 'Informations' => 0, 'Pack' => 7, 'VirtualProduct' => 8, 'Prices' => 1, 'Seo' => 2, 'Associations' => 3, 'Images' => 9, 'Shipping' => 4, 'Combinations' => 5, 'Features' => 10, 'Customization' => 11, 'Attachments' => 12, 'Suppliers' => 13, )); try to manage the array elements, you will see how it works Just for the record, i commented out those i didnt need and worked like a charm. Thank you all. Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2015 Share Posted January 2, 2015 anway it's worth to test product edit pages after that :-) Link to comment Share on other sites More sharing options...
iAreku Posted January 6, 2015 Share Posted January 6, 2015 (edited) Agreed! i just noticed descriptions were not being saved properly Damnit!How woud "hidding by css" work?Thanks! Edited January 6, 2015 by iAreku (see edit history) Link to comment Share on other sites More sharing options...
sersbjutien Posted February 23, 2015 Share Posted February 23, 2015 I've tried the same thing in Prestashop 1.6.0.6. I've removed the following tabs that I don't use. By adding // in front of each tab name in controllers/admin AdminProductsController.php Suppliers. Features Attachments Combinations Shipping I don't use any of these tabs in my store or any of their content, If you don't use the content of any of these tabs on any product in your store it should be safe to remove/hide, although it's not recommended. I could not remove the "Customization" tab since I could not save the products due to "link rewrite" error. So I recommend keeping that tab even if you don't use it. Did a basic test of product creations, copy, sale, front and back office and I see no problems. // @since 1.5 : translations for tabs $this->available_tabs_lang = array( 'Informations' => $this->l('Information'), 'Pack' => $this->l('Pack'), 'VirtualProduct' => $this->l('Virtual Product'), 'Prices' => $this->l('Prices'), 'Seo' => $this->l('SEO'), 'Images' => $this->l('Images'), 'Associations' => $this->l('Associations'), // 'Shipping' => $this->l('Shipping'), // 'Combinations' => $this->l('Combinations'), // 'Features' => $this->l('Features'), 'Customization' => $this->l('Customization'), // 'Attachments' => $this->l('Attachments'), 'Quantities' => $this->l('Quantities'), // 'Suppliers' => $this->l('Suppliers'), 'Warehouses' => $this->l('Warehouses'), ); $this->available_tabs = array('Quantities' => 6, 'Warehouses' => 14); if ($this->context->shop->getContext() != Shop::CONTEXT_GROUP) $this->available_tabs = array_merge($this->available_tabs, array( 'Informations' => 0, 'Pack' => 7, 'VirtualProduct' => 8, 'Prices' => 1, 'Seo' => 2, 'Associations' => 3, 'Images' => 9, //'Shipping' => 4, //'Combinations' => 5, //'Features' => 10, 'Customization' => 11, //'Attachments' => 12, //'Suppliers' => 13, )); Link to comment Share on other sites More sharing options...
iAreku Posted February 24, 2015 Share Posted February 24, 2015 I'll doublecheck leaving customizations enabled then... thanks! Link to comment Share on other sites More sharing options...
roberto1982 Posted February 25, 2015 Share Posted February 25, 2015 I've also made this change, but I always appears blank page ... from what may depend? sorry for my english Link to comment Share on other sites More sharing options...
mpouliot34 Posted July 27, 2016 Share Posted July 27, 2016 hello in controllers / AdminProductsController.php near line ~97 you've got: $this->available_tabs = array('Quantities' => 6, 'Warehouses' => 14); if ($this->context->shop->getContext() != Shop::CONTEXT_GROUP) $this->available_tabs = array_merge($this->available_tabs, array( 'Informations' => 0, 'Pack' => 7, 'VirtualProduct' => 8, 'Prices' => 1, 'Seo' => 2, 'Associations' => 3, 'Images' => 9, 'Shipping' => 4, 'Combinations' => 5, 'Features' => 10, 'Customization' => 11, 'Attachments' => 12, 'Suppliers' => 13, )); try to manage the array elements, you will see how it works I LOVE YOU GUYS!!! It worked for me as well with commenting out thx =-) Link to comment Share on other sites More sharing options...
cyberespia Posted August 10, 2016 Share Posted August 10, 2016 Worked for me correctly, thank you very much! Link to comment Share on other sites More sharing options...
Calatravo Posted August 23, 2016 Share Posted August 23, 2016 What about hidding assocciations tab? I know it is necessary but it takes 15-30 seconds to load every time i save the product. For example if i want to add an specific price i have to wait to associations tab to load. What i want to do is to disable the associations function and create a custom product to category associations script apart from product edition. When creating a product it will be assigned to a custom/hidden category and then i will move it to the correct one. I have about 10k categories and i know this is the main problem but while we create another category tree and assign our more than 250k products to them i think the commented above could be a solution. What do you think? Thanks Link to comment Share on other sites More sharing options...
[email protected] Posted September 6, 2016 Share Posted September 6, 2016 Hi, Is it possible to hide a tab for a dedicated admin users? for example show SEO tab only for super admin and translators only. thanks for answers Link to comment Share on other sites More sharing options...
sathish_kumar Posted November 23, 2017 Share Posted November 23, 2017 Hi, We have purchase prestashop 1.7.1.2 Now the problem is i want to add new tab in the product edit page of backend. So i checked the package product edit page code present in src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig What is the right way to override this file? Kindly suggest us. 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