Inserting Product Tab With New Addon

Hello,

I am creating new product tab with my addon but when inserting a Tab name value is(are) null in ?_product_tabs_descriptions. (for all languages)



My code is after tab check ;

$tab_data = array(“tab_type” => “T”, “template” => “addons/weblen_xxx/blocks/product_tabs/ixxxxs.tpl”, “addon” => “weblen_xxx”, “position” => 1, “status” => “A”, “company_id” => 1, “lang_code” => “en”,“name” => “Product Tabx”);

Tygh\BlockManager\ProductTabs::instance()->update($tab_data);



Waiting advises,

Regards.

Try the following:


  1. Create the file



    design/themes/THEME/templates/addons/weblen_xxx/blocks/product_tabs/ixxxxs.tpl


  2. The first line should be



{** block-description:ixxxxs_title **}




3. Add the “ixxxxs_title” language variable



4. Re-install the add-on



The corresponding block should be added automatically

Hello eComLabs,

This way is very easy and fast. I don't need productTabs::instance now.



Thanks for your reply.

[quote name='bluexpres' timestamp='1413454698' post='194343']

Hello eComLabs,

This way is very easy and fast. I don't need productTabs::instance now.



Thanks for your reply.

[/quote]



You are welcome! We are glad to help you.