Jump to content

AdminProducts -> displayAdminProductsExtra -> Tab-Name Problem


Chrims

Recommended Posts

Hello,

 

iam working on a module, that addes an extra tab to the BO Productnavigation. When you click on the tab, you can add text to an additional textfield which is showing on the FO Productpage.

 

Everything works fine.

 

Except the shown name of the Tab. Its always "Module Additionalproducttextfield"

 

post-622896-0-71228100-1439129841_thumb.jpg

 

Here the module's constructor:

...
class AdditionalProductTextfield extends Module
    {
        public $modulname;

        public function __construct()
        {
            $this->name = 'additionalproducttextfield';
            $this->tab = 'front_office_features';
            $this->version = '1.0.0';
            $this->author = 'FoxyBytes';
            $this->need_instance = 0;

            $this->bootstrap = true;
            $this->module_key = '';
            $this->modulname = $this->name; // for the icon
            
            parent::__construct();
            $this->displayName = $this->l('Extra Textfield');
            $this->description = $this->l('Add serveral additional textfields to your product-page with this module.');
            
        }
...

Can anybody help me?

 

Thanks

 

 

Link to comment
Share on other sites

Hello,

 

iam working on a module, that addes an extra tab to the BO Productnavigation. When you click on the tab, you can add text to an additional textfield which is showing on the FO Productpage.

 

Everything works fine.

 

Except the shown name of the Tab. Its always "Module Additionalproducttextfield"

 

attachicon.gifpsimg.jpg

 

Here the module's constructor:

...
class AdditionalProductTextfield extends Module
    {
        public $modulname;

        public function __construct()
        {
            $this->name = 'additionalproducttextfield';
            $this->tab = 'front_office_features';
            $this->version = '1.0.0';
            $this->author = 'FoxyBytes';
            $this->need_instance = 0;

            $this->bootstrap = true;
            $this->module_key = '';
            $this->modulname = $this->name; // for the icon
            
            parent::__construct();
            $this->displayName = $this->l('Extra Textfield');
            $this->description = $this->l('Add serveral additional textfields to your product-page with this module.');
            
        }
...

Can anybody help me?

 

Thanks

Hi...

 

read this topic.i  hope you can help

 

http://nemops.com/prestashop-products-new-tabs-fields/#.Vcgqd3Gqqko

Link to comment
Share on other sites

  • 2 years later...

Just create config.xml at root module directory. 

displayName will be used for tab name.

Ex: 

<?xml version="1.0" encoding="UTF-8" ?>
<module>
    <name>productstate</name>
    <displayName><![CDATA[Statut du produit (promo, solde, etc...)]]></displayName>
    <version><![CDATA[1.0.0]]></version>
    <description><![CDATA[Affiche une information sur le statut du produit ex : en solde, promo, spécial noël]]></description>
    <author><![CDATA[Louis]]></author>
    <tab><![CDATA[front_office_features]]></tab>
    <is_configurable>0</is_configurable>
    <need_instance>0</need_instance>
    <limited_countries></limited_countries>
</module>

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...