Disable unnecessary backend more tabs dropdown

Hi all,

The trick will disable backend more tabs dropdown for all the pages where is created, product update, category update, editing layout …



After i start working with cs-cart 4 i have found this very annoying, in my oppinio is better that all the tabs to be visible even if they on product update can be on two lines.







#for this you need modify js/tygh/tabs.js:



after:```php


function _checkSize(tabs_elm)

{

add:```php
<br />
   //add by Valentin, part of hungryweb.net<br />
   return  true;<br />

```<br />
<br />
I hope this will help you.<br />
<br />
---<br />
Valentin<br />
[color=#808080][size=2]part of hungryweb.net[/size][/color]

I agree with you, nice one!



Fotis



:)

Thanks, I needed this badly.

Also works in 4.2.1



Any clues on how to manipulate the sorting order of the tabs on the product edit page?

I want to move “features” up.

Vali,



Good idea!

[quote name='Paul John' timestamp='1408390884' post='189880']

Any clues on how to manipulate the sorting order of the tabs on the product edit page?

I want to move “features” up.

[/quote]



You should edit the app/controllers/backend/products.php file to do it



For example, if you want to put it after the Images tab, replace



// [Page sections]
$tabs = array (
'detailed' => array (
'title' => __('general'),
'js' => true
),
'images' => array (
'title' => __('images'),
'js' => true
),
'seo' => array(
'title' => __('seo'),
'js' => true
),
'options' => array (
'title' => __('options'),
'js' => true
),
'shippings' => array (
'title' => __('shipping_properties'),
'js' => true
),
'qty_discounts' => array (
'title' => __('qty_discounts'),
'js' => true
),
'files' => array (
'title' => __('files'),
'js' => true
),
'subscribers' => array (
'title' => __('subscribers'),
'js' => true
),
);
$tabs['addons'] = array (
'title' => __('addons'),
'js' => true
);
// If we have some additional product fields, lets add a tab for them
if (!empty($product_data['product_features'])) {
$tabs['features'] = array(
'title' => __('features'),
'js' => true
);
}




with



$tabs = array (
'detailed' => array (
'title' => __('general'),
'js' => true
),
'images' => array (
'title' => __('images'),
'js' => true
),
'features' => array(
'title' => __('features'),
'js' => true
),
'seo' => array(
'title' => __('seo'),
'js' => true
),
'options' => array (
'title' => __('options'),
'js' => true
),
'shippings' => array (
'title' => __('shipping_properties'),
'js' => true
),
'qty_discounts' => array (
'title' => __('qty_discounts'),
'js' => true
),
'files' => array (
'title' => __('files'),
'js' => true
),
'subscribers' => array (
'title' => __('subscribers'),
'js' => true
),
);
$tabs['addons'] = array (
'title' => __('addons'),
'js' => true
);




Thanks

Master!

[quote name=‘Paul John’ timestamp=‘1408564244’ post=‘190119’]

Master!

[/quote]



You are welcome! :)

Great feature :D



[url=“Pills Instead of Tabs in the Admin Panel | eCommerce Blog on Running an Online Marketplace”]http://blog.cs-cart.com/2015/03/23/pills-instead-of-tabs-in-the-admin-panel/[/url]







[color=#282828][font=arial, verdana, tahoma, sans-serif]Keep on smiling,[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]—[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]Valentin[/font][/color]

[color=#808080][font=arial, verdana, tahoma, sans-serif][size=2]part of hungryweb.net[/size][/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif] [/font][/color]

Yes Vali



it ws about time, this was one of major setbacks in admin screen.



Fotis