link coupon / discount to a user

  • Posts: 25
  • Thank you received: 0
  • Hikashop Business
4 years 9 months ago #308285

Hello,
I have to implement an ecommerce platform that has the following coupon / discount management.

- Generate / import hundreds of codes
- The codes do not expire, but once used by a user, they can only be reused by that user.
- I don't want to manually associate coupons with users;

Is management like this possible with hikashop + hikaserial?
Thanks

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

  • Posts: 81504
  • Thank you received: 13063
  • MODERATOR
4 years 9 months ago #308290

Hi,

HikaSerial can be used to generate coupon codes upon the purchase of products.
So I don't think you need HikaSerial to do what you want.

I think you can do it just with HikaShop.
To import coupon codes to HikaShop, you can use the CSV export/import features of your phpmyadmin on the hikashop_discount table.
Create one or two coupons via the HikaShop coupon interface and then export the hikashop_discount table once to look at it with Excel or LibreOffice Calc. In there, you can then add your rows or additional coupons in the same format than the coupons already listing in the CSV. Note that you'll need to enter the user id from the hikashop_user table for each coupon in the discount_user_id column so that each coupon match with the corresponding user account. Then, when you import back the CSV, you'll get all the coupons in HikaShop.
If you don't mind the format of the coupon codes, then you could get an export of the hikashop_user table to automatically fill the discount_column with the user_id and/or a piece of the user_email table so you would be able easily generate all the coupon codes in Excel without having to manually associate each one.

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

  • Posts: 25
  • Thank you received: 0
  • Hikashop Business
4 years 9 months ago #308316

Hi Nicolas,
thank you for your suggestion about hikashop and import coupon by CSV;
relative to the user / coupon association, I would need another thing.
The codes are found by users in product packages (so randomly). When the user uses the code for the first time, this is permanently bound to the user.
Is this possible?

Thanks

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

  • Posts: 81504
  • Thank you received: 13063
  • MODERATOR
4 years 9 months ago #308317

Hi,

No. In that case, that would require the development of a custom plugin to associate a coupon code with a user account upon purchase. I don't think it would be too complex to develop for a PHP developer.

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

Moderators: Obsidev
Time to create page: 0.044 seconds
Powered by Kunena Forum