Coupon valid only for new costumers

  • Posts: 6
  • Thank you received: 0
2 years 2 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: 81378
  • Thank you received: 13037
  • MODERATOR
2 years 2 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
2 years 2 months ago #338541

ok, thanks

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

  • Posts: 6
  • Thank you received: 0
2 years 1 month 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: 4491
  • Thank you received: 609
  • MODERATOR
2 years 1 month 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 1 month ago by Philip.

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

  • Posts: 6
  • Thank you received: 0
2 years 1 month ago #339164

it works, thanks!

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

Time to create page: 0.061 seconds
Powered by Kunena Forum