Customer Group Prices

Designer
Från Turkey
Medlem sedan apr. 2019

Did you have a solution to limit discount codes on Customer Group Prices?

tim
Founder
Från Sweden
Medlem sedan maj 2013
tim

No sorry, it's hard for multiple discount addons to coexist. Can you describe better what you mean by limiting?

Designer
Från Turkey
Medlem sedan apr. 2019

Since customer group prices are special cases, I want to keep the discount code outside of these groups. For example, dealers who shop wholesale. In short, it would be good to be able to set the discount code active / passive for customer groups.
if ($customer['group_id'] == 2) return;
I don't know if it's possible with a solution like this. I haven't had a chance to examine it yet.

tim
Founder
Från Sweden
Medlem sedan maj 2013
tim

Yeah you could use that. Put it in ot_discount_code and om_discount_code.
If group id is not propagated, use reference::customer($customer['id'])->group_id.

Designer
Från Turkey
Medlem sedan apr. 2019

İts propagated. Thank you

Du
Denna webbplats använder inga kakor och ingen spårningsteknik från tredje part . Vi tror att vi kan göra det bättre än andra och tänker verkligen på din integritet.