Jump to content

PS 1.6 Multishop Module Problems


drunkenmyno

Recommended Posts

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 by drunkenmyno (see edit history)
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...