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

#   Give discount based on previous purchase

##

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

Less More

- Posts: 32
- Thank you received: 2
-
-

11 years 5 months ago [\#203929](#203929) by [GeoffM](/forum/user/4909-geoffm "View GeoffM's Profile")  *[Give discount based on previous purchase](/forum/46-discount-coupon/877357-give-discount-based-on-previous-purchase#203929 "-- HikaShop version -- : 2.3.1 business -- Joomla version -- : 2.5.18  I want to give a discount to customers who buy product Y when they previously purchased product X (a fixed £ discount on a 1:1 link). I'm struggling to find anything similar in the forum or instructions. There are several hundred customers that are eligible for the fixed discount. Ideally I'd like the discount to be automatic but a coupon/voucher code would work - if the coupon/voucher code is common to everybody then the system has to restrict it to those who are eligible for the discount only.  (I did try to update to 2.3.2 before posting this but keep getting &quot;Invalid extension update&quot;)  Thanks for any help.")* was created by *[GeoffM](/forum/user/4909-geoffm "View GeoffM's Profile")*

-- HikaShop version -- : 2.3.1 business
-- Joomla version -- : 2.5.18

I want to give a discount to customers who buy product Y when they previously purchased product X (a fixed £ discount on a 1:1 link). I'm struggling to find anything similar in the forum or instructions. There are several hundred customers that are eligible for the fixed discount. Ideally I'd like the discount to be automatic but a coupon/voucher code would work - if the coupon/voucher code is common to everybody then the system has to restrict it to those who are eligible for the discount only.

(I did try to update to 2.3.2 before posting this but keep getting "Invalid extension update")

Thanks for any help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzczNTctZ2l2ZS1kaXNjb3VudC1iYXNlZC1vbi1wcmV2aW91cy1wdXJjaGFzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 5 months ago [\#203942](#203942) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Give discount based on previous purchase](/forum/46-discount-coupon/877357-give-discount-based-on-previous-purchase#203942 "-- HikaShop version -- : 2.3.1 business -- Joomla version -- : 2.5.18  I want to give a discount to customers who buy product Y when they previously purchased product X (a fixed £ discount on a 1:1 link). I'm struggling to find anything similar in the forum or instructions. There are several hundred customers that are eligible for the fixed discount. Ideally I'd like the discount to be automatic but a coupon/voucher code would work - if the coupon/voucher code is common to everybody then the system has to restrict it to those who are eligible for the discount only.  (I did try to update to 2.3.2 before posting this but keep getting &quot;Invalid extension update&quot;)  Thanks for any help.")*

Hi,

For your update issue ; you might try to install by FTP ; it is maybe an upload limitation problem.
[ www.hikashop.com/support/support/documen...-install.html#errors](http://www.hikashop.com/support/support/documentation/59-hikashop-how-to-install.html#errors)
Please note that the current stable release is 2.4.0 (but a new release will be made soon).

About your discount question ; I don't know if you will have several discounts/products or few ones.
But using the ACL and the plugin "group after purchase" you can use restrictions on the discounts.
So the customer can have a discount (and not an auto-loaded coupon ; but you should work too..) if he is in the right group.
By buying the product X, he will receive the special group which will unlock him the discount for product Y.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzczNTctZ2l2ZS1kaXNjb3VudC1iYXNlZC1vbi1wcmV2aW91cy1wdXJjaGFzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 32
- Thank you received: 2
-
-

11 years 5 months ago [\#204251](#204251) by [GeoffM](/forum/user/4909-geoffm "View GeoffM's Profile")  Replied by *[GeoffM](/forum/user/4909-geoffm "View GeoffM's Profile")* on topic *[Give discount based on previous purchase](/forum/46-discount-coupon/877357-give-discount-based-on-previous-purchase#204251 "-- HikaShop version -- : 2.3.1 business -- Joomla version -- : 2.5.18  I want to give a discount to customers who buy product Y when they previously purchased product X (a fixed £ discount on a 1:1 link). I'm struggling to find anything similar in the forum or instructions. There are several hundred customers that are eligible for the fixed discount. Ideally I'd like the discount to be automatic but a coupon/voucher code would work - if the coupon/voucher code is common to everybody then the system has to restrict it to those who are eligible for the discount only.  (I did try to update to 2.3.2 before posting this but keep getting &quot;Invalid extension update&quot;)  Thanks for any help.")*

Thanks. As I say it's a 1:1 link - one product bought some time ago, and one new product which will be offered for sale in a few days. However, how does the user get assigned to this special group if the original purchase was in the past?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzczNTctZ2l2ZS1kaXNjb3VudC1iYXNlZC1vbi1wcmV2aW91cy1wdXJjaGFzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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: 86587
- Thank you received: 14326
-
-

11 years 5 months ago [\#204278](#204278) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Give discount based on previous purchase](/forum/46-discount-coupon/877357-give-discount-based-on-previous-purchase#204278 "-- HikaShop version -- : 2.3.1 business -- Joomla version -- : 2.5.18  I want to give a discount to customers who buy product Y when they previously purchased product X (a fixed £ discount on a 1:1 link). I'm struggling to find anything similar in the forum or instructions. There are several hundred customers that are eligible for the fixed discount. Ideally I'd like the discount to be automatic but a coupon/voucher code would work - if the coupon/voucher code is common to everybody then the system has to restrict it to those who are eligible for the discount only.  (I did try to update to 2.3.2 before posting this but keep getting &quot;Invalid extension update&quot;)  Thanks for any help.")*

Hi,

You can go in the menu System&gt;Mass actions and create a new mass action like that:
[ take.ms/CyR83](http://take.ms/CyR83)
It will allow you to add the user group to the users who purchased a specific product.
Make sure you do a backup before using mass actions. They are powerful, and thus dangerous ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzczNTctZ2l2ZS1kaXNjb3VudC1iYXNlZC1vbi1wcmV2aW91cy1wdXJjaGFzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 32
- Thank you received: 2
-
-

11 years 5 months ago -  11 years 5 months ago [\#204521](#204521) by [GeoffM](/forum/user/4909-geoffm "View GeoffM's Profile")  Replied by *[GeoffM](/forum/user/4909-geoffm "View GeoffM's Profile")* on topic *[Give discount based on previous purchase](/forum/46-discount-coupon/877357-give-discount-based-on-previous-purchase#204521 "-- HikaShop version -- : 2.3.1 business -- Joomla version -- : 2.5.18  I want to give a discount to customers who buy product Y when they previously purchased product X (a fixed £ discount on a 1:1 link). I'm struggling to find anything similar in the forum or instructions. There are several hundred customers that are eligible for the fixed discount. Ideally I'd like the discount to be automatic but a coupon/voucher code would work - if the coupon/voucher code is common to everybody then the system has to restrict it to those who are eligible for the discount only.  (I did try to update to 2.3.2 before posting this but keep getting &quot;Invalid extension update&quot;)  Thanks for any help.")*

Aha, got it to work, many thanks!

For anybody else reading this, one can use the Mass Actions facility to process immediately (no filter required), and you can also preview the results by exporting to CSV/Excel. I did this to check that there were about the right number of results - after remembering to add "order confirmed", not just "product ID" :pinch: !

I was then able to restrict a discount to a specific product, and access to a specific user group (ie the one added in the mass action).

Last edit: 11 years 5 months ago by [GeoffM](/forum/user/4909-geoffm "View GeoffM's Profile").

The following user(s) said Thank You: [hunt2013](/forum/user/37568-hunt2013 "View hunt2013's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzczNTctZ2l2ZS1kaXNjb3VudC1iYXNlZC1vbi1wcmV2aW91cy1wdXJjaGFzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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?

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

Time to create page: 0.071 seconds

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