The following module(s) could not be installed properly: pbc : Unable to install override: The method initContent in the class ProductController is already overridden by the module stoverride version 1.2.0 at 2015-11-17 07:24:20 . ----> hi there iam getting this msg, module stoverride is part of PANDA theme from sunnytoo.com
problem with override of productController and initContent function
#2
Posted 15 September 2021 - 07:08 AM
Hello,
module "price by country" that gives possibility to increase / decrease prices by country has an override of "ProductController".
The message you mentioned means that your shop already uses a module that installed override of "ProductController" with its "initContent" class.
Module "price by country" also uses the same override, so this is why prestashop can't install another module that tries to install override that already exists.
This is not a bug of the "price by country" module nor the bug of "stoverride" addon you already have in your shop. This is the way of how prestashop works currently.
there are at least two solutions depending on your requirements.
- You do not want to use "stoverride" addon
if you do not want to use this plugin it is enough to just uninstall it.
Then you will be able to install "price by country" without any problem.
Please note that once you will install "price by country" and if in the future you will want to install "stoverride" - you will not have possibility to install it becuase of the same problem.
- You want to use both modules
In this case it will be necessary to manually merge two overrides from: "stoverride" and "price by country"- /overrides/controllers/front/ProductController.php
- /modules/pbc/overrides/controllers/front/ProductController.php
Steps to follow:
- merge two files into one and move merged file to /overrides/controllers/front/ProductController.php
- remove file /modules/pbc/overrides/controllers/front/ProductController.php
- install "price by country" module in shop back office
so, it requires some php knowledge to merge two php files into one.
if you are not tech-savvy i offer my full support, i can do it directly in your shop if you are interested in this kind of support.
please do not provide any access credentials here.
if you expect to get direct support please send private message or create support ticket.
Also tagged with one or more of these keywords: overrides
Modules discussion →
Module Minimal product quantity →
Minimal product quantity uses overrides?Started by thom , 15 Sep 2021 overrides |
|
|
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users