I would like to hide some of the Product tabs within Admin. I am setting up a downloadable media store and it makes no sense to have a Quantity Discount tabs. I found this is tabsbox.tbl:
to turn off the “[color=#282828][font=arial, verdana, tahoma, sans-serif]Quantity Discount[/font][/color]” and [color=#282828][font=arial, verdana, tahoma, sans-serif]“Shipping Properties” [/font][/color]tabs [color=#282828][font=arial, verdana, tahoma, sans-serif] in “Editing product”[/font][/color].
Also in the file “design/backend/templates/views/products/update.tpl” replace line:
```php
```
with:
```php
```
NOTE: After that don't forget to clean up the template cache.
NOTE: After this fix major part of tabs will disappear (e.g. "Options" or "Shipping Properties" ), however some other tabs might stay (mainly it is about tabs added by modules, e.g. "Attachments" - these tabs are added in POST controllers, e.g. "app/addons/attachments/controllers/backend/products.post.php").
For hiding other tabs you should find and modify all these POST controllers.
If you need our assistance in it, please don't hesitate to [url="http://hd.webshopaddons.com/open.php"]contact us[/url].
Hello, this thread was very helpful. I did everything and had success in hiding all the tabs when editing a product, but when I add a new product the tabs appear again. It seems this only works when updating or after creation.
Is there a way to hide the tabs on creation of the product?
I would like to hide tabs like SEO, Product Discounts and more...which still appear when I add a new product, but are hidden after creation.
Hello, this thread was very helpful. I did everything and had success in hiding all the tabs when editing a product, but when I add a new product the tabs appear again. It seems this only works when updating or after creation.
Is there a way to hide the tabs on creation of the product?
I would like to hide tabs like SEO, Product Discounts and more...which still appear when I add a new product, but are hidden after creation.
Hello, this thread was very helpful. I did everything and had success in hiding all the tabs when editing a product, but when I add a new product the tabs appear again. It seems this only works when updating or after creation.
Is there a way to hide the tabs on creation of the product?
I would like to hide tabs like SEO, Product Discounts and more...which still appear when I add a new product, but are hidden after creation.
For adding products another part of code is used in the same file:
Modified the copied file, cleared the cache , but cart is not picking up the changes. To be sure I purposely put a syntax error to find out which file cart is picking up and it is picking up original file at app/controllers/backend/products.php
Any ideas on how to force cart to use new copied file?
Modified the copied file, cleared the cache , but cart is not picking up the changes. To be sure I purposely put a syntax error to find out which file cart is picking up and it is picking up original file at app/controllers/backend/products.php
Any ideas on how to force cart to use new copied file?
Hello!
You shouldn't copy the file, just create app/addon/my_changes/controllers/backend/products.post.php with the following code:
use Tygh\Registry;
if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’) {
return array(CONTROLLER_STATUS_OK);
}
Thank you for your response, did you mean products.php? or products.post.php?
products.post.php is under app/controller/common
products.php is under app/controller/backend
No, you need to remove your app/addon/my_changes/controllers/backend/products.php file and create app/addon/my_changes/controllers/backend/products.post.php file with the code I mentioned.
No, you need to remove your app/addon/my_changes/controllers/backend/products.php file and create app/addon/my_changes/controllers/backend/products.post.php file with the code I mentioned.
Thank you again for the response, I copied exact code in the backend directory with same file name, cleared the cache, but it is still showing qty_discount tab on edit and add product screens.
Thank you again for the response, I copied exact code in the backend directory with same file name, cleared the cache, but it is still showing qty_discount tab on edit and add product screens.
There is a condition for vendors in my code above. So now the tab is removed only for vendors. If you want to remove it for all admins, remove the
Thank you again for the response, I copied exact code in the backend directory with same file name, cleared the cache, but it is still showing qty_discount tab on edit and add product screens.
Did you check it in the vendor area, not in the admin panel?