Jump to content

Základní skupina


Recommended Posts

Zdravím, udělal jsem si svojí novou skupinu a teď jí potřebuju nastavit jako základní, v administraci by to problém nebyl, ale potřeboval bych jí nastavit napevno v PHP souborech.

V souboru classes/customer.php jsem zkusil tohle:

/** @var integer Gender ID */
public $id_gender = 4;

to bohužel nefunguje.

Neví někdo co s tím?

Link to comment
Share on other sites

Zkuste tohle

 

V classes/Customer.php ve funkci add zakomentujte toto

if ($this->id_default_group == Configuration::get('PS_CUSTOMER_GROUP'))
	if ($this->is_guest)
		$this->id_default_group = (int)Configuration::get('PS_GUEST_GROUP');
	else
		$this->id_default_group = (int)Configuration::get('PS_CUSTOMER_GROUP');

tento kód zakomentujte a hoďte tam jen toto:

$this->id_default_group = 4;

Kód je pro verzi 1.6.0.6, u nižších se může lišit, princip zůstává stejný.

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...