drunkenmyno Posted March 16, 2015 Share Posted March 16, 2015 (edited) Hello Community, i'm using PS 1.6.0.14 and i've created a Module which runs perfectly on the main Shop. After i enable multishop system and add one multishop my modul still works but i cant access any products it says Product not found , if i uninstall my addon all works fine in multishop i changed only Category.php for more columns to read in and CategoryController for my category.tpl which extending the original. Any Ideas ? Edit: i found the override class which makes me problems with multishop it was Product.php i overriding with this: class Product extends ProductCore { public $active_kml = 0; public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null) { self::$definition['fields']['active_kml'] = array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true); parent::__construct($id_product, $id_lang, $id_shop); } } if i remove this override my module works in all multishops ... hmm what is the problem ? wrong construction ? Edit 2: Solved and fixed parent::__construct($id_product, $full, $id_lang, $id_shop); is the correct one Edited March 17, 2015 by drunkenmyno (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted March 17, 2015 Share Posted March 17, 2015 You're missing the $full parameter from your parent function call. Try changing: parent::__construct($id_product, $id_lang, $id_shop); to: parent::__construct($id_product, $full, $id_lang, $id_shop, $context); 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