Chrims Posted August 9, 2015 Share Posted August 9, 2015 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" 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 More sharing options...
Nishith Nesdiya Posted August 10, 2015 Share Posted August 10, 2015 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" psimg.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 More sharing options...
loulouklm Posted March 6, 2018 Share Posted March 6, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now