alins Designer از کشور Turkey عضو از آوریل 2019 alins 15 ژوئیهٔ 2024 16:35 Did you have a solution to limit discount codes on Customer Group Prices?
tim Founder از کشور Sweden عضو از مهٔ 2013 tim 15 ژوئیهٔ 2024 19:20 No sorry, it's hard for multiple discount addons to coexist. Can you describe better what you mean by limiting?
alins Designer از کشور Turkey عضو از آوریل 2019 alins 15 ژوئیهٔ 2024 22:07 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 از کشور Sweden عضو از مهٔ 2013 tim 16 ژوئیهٔ 2024 01:21 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.