[Skip to main content](#vessel-content)

#   link coupon / discount to a user

##

- **[orchideelab](/forum/user/14295-orchideelab "View orchideelab's Profile")**
- [![orchideelab's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14295-orchideelab "View orchideelab's Profile") Topic Author
- [ Offline](/forum/user/14295-orchideelab)

Less More

- Posts: 25
- Thank you received: 0
-
-

7 years 4 months ago [\#308285](#308285) by [orchideelab](/forum/user/14295-orchideelab "View orchideelab's Profile")  *[link coupon / discount to a user](/forum/15-general-talk-about-hikaserial/897802-link-coupon-discount-to-a-user#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")* was created by *[orchideelab](/forum/user/14295-orchideelab "View orchideelab's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg5NzgwMi1saW5rLWNvdXBvbi1kaXNjb3VudC10by1hLXVzZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

7 years 4 months ago [\#308290](#308290) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[link coupon / discount to a user](/forum/15-general-talk-about-hikaserial/897802-link-coupon-discount-to-a-user#308290 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg5NzgwMi1saW5rLWNvdXBvbi1kaXNjb3VudC10by1hLXVzZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[orchideelab](/forum/user/14295-orchideelab "View orchideelab's Profile")**
- [![orchideelab's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14295-orchideelab "View orchideelab's Profile") Topic Author
- [ Offline](/forum/user/14295-orchideelab)

Less More

- Posts: 25
- Thank you received: 0
-
-

7 years 3 months ago [\#308316](#308316) by [orchideelab](/forum/user/14295-orchideelab "View orchideelab's Profile")  Replied by *[orchideelab](/forum/user/14295-orchideelab "View orchideelab's Profile")* on topic *[link coupon / discount to a user](/forum/15-general-talk-about-hikaserial/897802-link-coupon-discount-to-a-user#308316 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg5NzgwMi1saW5rLWNvdXBvbi1kaXNjb3VudC10by1hLXVzZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

7 years 3 months ago [\#308317](#308317) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[link coupon / discount to a user](/forum/15-general-talk-about-hikaserial/897802-link-coupon-discount-to-a-user#308317 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg5NzgwMi1saW5rLWNvdXBvbi1kaXNjb3VudC10by1hLXVzZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
