Vico_b Posted February 6, 2019 Share Posted February 6, 2019 Hello, I'm following the module creation doc from prestashop guide ( this one ) I've done the first step (adding the very basic content of the main class) But when the guide say "you know can see it in the module page in your back office", it doesn't show up in the list. Here's my class <?php if (!defined('_PS_VERSION_')) { exit; } class infinitescroll extends Module { public function __construct() { $this->name = 'infinitescroll'; $this->tab = 'front_office_features'; $this->version = '1.0.0'; $this->author = 'Vico motor'; $this->need_instance = 0; $this->ps_versions_compliancy = ['min' => '1.5' , 'max' => '1.8']; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Infinite Scroll'); $this->description = $this->l('random words'); $this->confirmUninstall = $this->l('delete?'); if(!Configuration::get('INFINITESCROLL_NAME')) { $this->warning = $this->l('no name'); } } Link to comment Share on other sites More sharing options...
JBW Posted February 7, 2019 Share Posted February 7, 2019 Try to zip if and upload it this way. Enable debug mode in case any errors come up. Link to comment Share on other sites More sharing options...
Vico_b Posted February 7, 2019 Author Share Posted February 7, 2019 (edited) I only get this error Translation not found. [▼ "id" => "Administration" "domain" => "AdminModulesFeature" "locale" => "fr-FR" ] and Matched route "admin_module_manage". [▼ "route" => "admin_module_manage" "route_parameters" => [▼ "category" => null "keyword" => null "_controller" => "PrestaShopBundle\Controller\Admin\Improve\ModuleController::manageAction" "_legacy_controller" => "AdminModulesManage" "_legacy_link" => [▼ "AdminModulesManage" "AdminModulesSf" ] "_route" => "admin_module_manage" ] "request_uri" => "my_url/admin/index.php/improve/modules/manage?_token=95Eszc01qKnjQDD01tOw0bCrB_471mL8-201r-PkPSI" "method" => "GET" ] This one is not an error, it says "Infos" Edited February 7, 2019 by Vico_b (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted February 7, 2019 Share Posted February 7, 2019 And does the module appear in your list after zip upload? If not there should be a red error box coming up in top right corner during upload processing. Link to comment Share on other sites More sharing options...
Vico_b Posted February 7, 2019 Author Share Posted February 7, 2019 No, that says the file doesn't look like a module in a pop-in box and no other error than the one I told you about (about the translation) Link to comment Share on other sites More sharing options...
Vico_b Posted February 7, 2019 Author Share Posted February 7, 2019 Link to comment Share on other sites More sharing options...
JBW Posted February 7, 2019 Share Posted February 7, 2019 Is your php file named infinitescroll.php and the zip file infinitescroll.zip? 1 Link to comment Share on other sites More sharing options...
Vico_b Posted February 7, 2019 Author Share Posted February 7, 2019 Yes Link to comment Share on other sites More sharing options...
Vico_b Posted February 7, 2019 Author Share Posted February 7, 2019 Here is the file infinitescroll.php Link to comment Share on other sites More sharing options...
JBW Posted February 7, 2019 Share Posted February 7, 2019 Works for me infinitescroll.zip Link to comment Share on other sites More sharing options...
Vico_b Posted February 7, 2019 Author Share Posted February 7, 2019 What the hell?! I don't understand... With your .zip it works, but not with mine and they have the very same stucture (infinitescroll.zip/infinitescroll/infinitescroll.php) Can you explain that? lol Link to comment Share on other sites More sharing options...
Vico_b Posted February 7, 2019 Author Share Posted February 7, 2019 Ok nevermind, shame on me my folder was named ifinitescroll.... I was so focus I didn't noticed. Thank you JBW for your time. Link to comment Share on other sites More sharing options...
regatonseb Posted May 7, 2019 Share Posted May 7, 2019 I add a response now but I had the same pb... And the solution is to use another soft to zip your folder. I used 7-zip but it's much better with winrar ! Sebastien. Link to comment Share on other sites More sharing options...
abkuza Posted May 7, 2019 Share Posted May 7, 2019 When i started i made a similar mistake, now i perfected these steps and its works fine. Abbey. _____________________________________________________________________________________ is bluestacks legit Link to comment Share on other sites More sharing options...
ionut71 Posted July 12, 2019 Share Posted July 12, 2019 (edited) In your infinitescroll.php file you set the tab attribute - section that shall contain the module in PrestaShop’s back office modules list: $this->tab = 'front_office_features'; but your module appears in Other category. I also build my custom module (a payment module) and I want it to appear in Payment category but despite my settings $this->tab = 'payments_gateways'; the module is listed also in Other category. In fact it doesn't matter what you put on tab attribute, the module is always listed in Other category. Why? Edited July 12, 2019 by ionut71 (see edit history) 1 Link to comment Share on other sites More sharing options...
0-Sony Posted April 9, 2020 Share Posted April 9, 2020 You don't need to zip your module in order to install it. Just go to module catalog instead of Modules Manager, and you will find your custom modules. 1 Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted May 30, 2020 Share Posted May 30, 2020 On 4/9/2020 at 7:18 AM, 0-Sony said: You don't need to zip your module in order to install it. Just go to module catalog instead of Modules Manager, and you will find your custom modules. This works for me 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