Hello,
the restriction of products to specific shopper groups only seems to work for (main) products, but not for variants.
I was going to add a variant of a product that should only be visible for a specified shoppergroup, but the variant is shown in the dropdown for all customers.
Is there a way (other than create a new product for this shoppergroup) to achieve this?
Thanks
Petra
J.3.4.5 / VM 3.0.12
You mean a MV or GV? It should work with children.
Hi Milbo,
we're using standard variants, but I've also tried with Multivariants. Doesn't work either for me...
Works perfectly with main products. Maybe I'm missing some setting?
Petra
What are standard variants? I have to update the german wording. it is horrible, yeh.
Standard variants are for me done without children.
Then there are the generic child variants
and the Multivariants.
Hi Max,
I'm talking about Generic Child Variants and Multivariants.
-- Petra
the child has the same groups as the parent as long not overriden. Be aware that shoppergroups can remove the standard group or keep it.
That's exactly what I'm trying to do: override the shopper group of the parent product:
In my tests the child has a different shopper group than the parent (which is not restricted to a specific shopper group), but it shown nevertheless to all shopper groups.
So, obviously it doesn't work as expected.
So can you confirm that this is a bug and if so is there a workaround/fix?
No, I cannot confirm.
Did you check this? "Be aware that shoppergroups can remove the standard group or keep it.
Modify message"
I have 4 shopper groups - none of them is defined as "additional shopper group" (if that's what you mean by 'can remove the standard group or keep it').
One product variant is restricted to exactly one of these shopper groups (in our case 'wholesale') and yet all other shopper groups (e.g. guests) also see this variant.
If needed I can provide some screenshots.
Thank you. I was not lazy and can confirm it.
Please check line 254 in sublayouts/customfield.php. Just remove the second parameter of
$productChild = $productModel->getProduct((int)$child,false);
or set the second parameter to true.
Thanks for looking into this Max! Your fix solves the problem in that the variant itself is no longer listed in the drop-down for the other shopper groups now.
But for some reason a price with (0,00 €) is displayed in its place. I'm sure this can be removed easily (probably in the same file), but I couldn't find it....
and the price setting? which price should be shown?
As the variant shouldn't be shown (and isn't after applying your fix), the price shouldn't be shown either.
It appears to be a leftover from the variant that is not shown any longer. See attached image - the 0,00€
in the first line.