Hi
I need to create a new group so I end up with this code :
$new_group = new Group();
$new_group->name = ''.$name.'';
$new_group->price_display_method = 1; //0 - Doesn't display price 1 - Display price
$new_group->add();
But I'm getting this error :
The property Group->name is empty
If I print_r $new_group before trying to add it, I can see the name property is set
Group Object
(
[id] =>
[name] => fdhgfdhgdfhgdfh
[reduction] =>
[price_display_method] => 1
[show_prices] => 1
[date_add] =>
[date_upd] =>
........
Any help ? 😅