Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Show Features Tab When Creating New Product? Rate Topic   - - - - -

 
  • Karstedt
  • Member
  • Members
  • Join Date: 09-Dec 15
  • 40 posts

Posted 03 September 2017 - 06:17 AM #1

When creating new products, many of the tabs do not appear, including the 'features' tab. It only appears after the item is created.

 

Is there a way to include this (and potentially other) tabs when adding a new product?



 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3367 posts

Posted 03 September 2017 - 05:34 PM #2

When creating new products, many of the tabs do not appear, including the 'features' tab. It only appears after the item is created.

 

Is there a way to include this (and potentially other) tabs when adding a new product?

 

Hello!

 

Please find the "add" mode in the app/controllers/backend/products.php file. You can add tabs to this array:

Registry::set('navigation.tabs', array (
    'detailed' => array (
        'title' => __('general'),
        'js' => true
    ),
    'images' => array (
        'title' => __('images'),
        'js' => true
    ),
    'seo' => array(
        'title' => __('seo'),
        'js' => true
    ),
    'qty_discounts' => array (
        'title' => __('qty_discounts'),
        'js' => true
    ),
    'addons' => array (
        'title' => __('addons'),
        'js' => true
    ),
));

Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Google Analytics Enhanced Ecommerce - get advanced ecommerce analytics


 
  • Karstedt
  • Member
  • Members
  • Join Date: 09-Dec 15
  • 40 posts

Posted 03 September 2017 - 11:48 PM #3

Cheers! Exactly what I was looking for.



 
  • technoob
  • Senior Member
  • Trial users
  • Join Date: 08-Jun 15
  • 309 posts

Posted 04 September 2017 - 07:17 PM #4

Dont think adding this to the above code since Features are category dependent. Once the product is created with a category feature associated with that category only are shown in the tab.

        'shippings' => array (
            'title' => __('shipping_properties'),
            'js' => true
        ),

Dont think adding this to the above code will work , since Features are category dependent. Once the product is created with a category feature associated with that category only are shown in the tab.



 
  • Karstedt
  • Member
  • Members
  • Join Date: 09-Dec 15
  • 40 posts

Posted 05 September 2017 - 05:24 AM #5


Dont think adding this to the above code will work , since Features are category dependent. Once the product is created with a category feature associated with that category only are shown in the tab.

 

Depends on what you mean by 'work'. It definitely works to show the tab... which is what I was asking about. The tab is empty however, as I think you are suggesting.

 

So part 2 would be getting the fields to show up so that a product can be created with features in one swoop.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19794 posts

Posted 05 September 2017 - 07:44 AM #6

So part 2 would be getting the fields to show up so that a product can be created with features in one swoop.

 

Please try

    list($product_features, $features_search) = fn_get_paginated_product_features(
        array('product_id' => $product_data['product_id']),
        $auth, $product_data,
        DESCR_SL
    );

    Tygh::$app['view']->assign('product_features', $product_features);
    Tygh::$app['view']->assign('features_search', $features_search);

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.