Jump to content

Create a new default customer group


Recommended Posts

Hi, i just create a new customer group, now i have the 3 prestashop have and one more i created.

My question is that when i add a new product or category the 3 prestahop default groups have a checkbox but the new one dont, so this way, on a future product i will forgett to check my new group...

Is there a way of my new group also become checked automatically like the others 3? Thanks

Link to comment
Share on other sites

in file: Controllerts/admin/AdminController.php

 

you've got there code:
 

$preselected = array(Configuration::get('PS_UNIDENTIFIED_GROUP'), Configuration::get('PS_GUEST_GROUP'), Configuration::get('PS_CUSTOMER_GROUP'));

add there id of your customer group, then it will be preselected

 

example:

$preselected = array(4,8,9,Configuration::get('PS_UNIDENTIFIED_GROUP'), Configuration::get('PS_GUEST_GROUP'), Configuration::get('PS_CUSTOMER_GROUP'));
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...