Coupon valid only for new costumers

  • Posts: 6
  • Thank you received: 0
  • Hikashop Business
2 years 10 months ago #338518

-- HikaShop version -- : 4.4.5 business
-- Joomla version -- : 3.10.4
-- PHP version -- : 7.4
-- Browser(s) name and version -- : all

Is it possible to set the coupon to be valid only for new customers?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 10 months ago #338521

Hi,

It's possible but a bit cumbersome.
You need to create a user group configured the same way as the "registered" user group.
Then, you need to create a mass action on the "order" data with a trigger "after an order is confirmed" and an action "change the user group" with the mode "replace" and the new user group you created.
That way, when users from the "registered" user group purchase something, they will be moved to the new user group instead of the "registered" user group.
Then, in your coupon, you can use the "access level" setting to restrict it to the "registered" user group.
Now this also means that guest users won't be able to use the coupon even if they can place an order as a guest, without creating a user account.

However, a simpler solution would be to just set the "quota per user" to 1 in the coupon. That way, a user will only be able to use the coupon once and this will also apply to guest checkouts (based on the email address entered). But that means that users with already an order on your website will be able to use that coupon once.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
  • Hikashop Business
2 years 10 months ago #338541

ok, thanks

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
  • Hikashop Business
2 years 9 months ago #339139

I have problem to create a mass action on the "order" data with a trigger "after an order is confirmed" and an action "change the user group" with the mode "replace" and the new user group you created.
Where do i make these settings?

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
2 years 9 months ago #339144

Hello,

Try to reproduce my setting screenshot, and take good care about the red bordered settings :



This will allow to update customer when an order is updated and if the order status is "confirmed".
Hope this will fit your needs.

Regards

Last edit: 2 years 9 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
  • Hikashop Business
2 years 9 months ago #339164

it works, thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.045 seconds
Powered by Kunena Forum