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

#   You can purchase product X if you purchased product Y

##

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

Less More

- Posts: 79
- Thank you received: 3
-
-

2 years 11 months ago [\#357440](#357440) by [studiocurci](/forum/user/67327-studiocurci "View studiocurci's Profile")  *[You can purchase product X if you purchased product Y](/forum/35-orders-management/907431-you-can-purchase-product-x-if-you-purchased-product-y#357440 "-- HikaShop version -- : 4.7.5 &#91;2308101603&#93; -- Joomla version -- : 4.2.9 -- PHP version -- : 8  Hi, is it possible to condition the purchase of a product only if a user has already purchased another specific product? By the way, on the site, users can put a product in their cart without being logged in. To complete the purchase they must be logged in.  Thank you Francesco")* was created by *[studiocurci](/forum/user/67327-studiocurci "View studiocurci's Profile")*

-- HikaShop version -- : 4.7.5 [2308101603]
-- Joomla version -- : 4.2.9
-- PHP version -- : 8

Hi,
is it possible to condition the purchase of a product only if a user has already purchased another specific product?
By the way, on the site, users can put a product in their cart without being logged in. To complete the purchase they must be logged in.

Thank you
Francesco

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNzQzMS15b3UtY2FuLXB1cmNoYXNlLXByb2R1Y3QteC1pZi15b3UtcHVyY2hhc2VkLXByb2R1Y3QteT90bXBsPW1hcmtkb3du) 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: 86583
- Thank you received: 14324
-
-

2 years 11 months ago [\#357444](#357444) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[You can purchase product X if you purchased product Y](/forum/35-orders-management/907431-you-can-purchase-product-x-if-you-purchased-product-y#357444 "-- HikaShop version -- : 4.7.5 &#91;2308101603&#93; -- Joomla version -- : 4.2.9 -- PHP version -- : 8  Hi, is it possible to condition the purchase of a product only if a user has already purchased another specific product? By the way, on the site, users can put a product in their cart without being logged in. To complete the purchase they must be logged in.  Thank you Francesco")*

Hi,

What you can do is this:
- create a new joomla user group named "has bought product Y" (or something else) via the Joomla user groups manager
- edit the product Y, and in its "user group after purchase" setting, select the user group you just created
- edit the product X, and in its "access level" setting, select the user group you just created
That way, product X will only be accessible if the current user is logged in with a user account linked to the "has bought product Y" user group, and this user group will be added automatically to the user account when he purchases the product Y.

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

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

Less More

- Posts: 79
- Thank you received: 3
-
-

2 years 11 months ago [\#357454](#357454) by [studiocurci](/forum/user/67327-studiocurci "View studiocurci's Profile")  Replied by *[studiocurci](/forum/user/67327-studiocurci "View studiocurci's Profile")* on topic *[You can purchase product X if you purchased product Y](/forum/35-orders-management/907431-you-can-purchase-product-x-if-you-purchased-product-y#357454 "-- HikaShop version -- : 4.7.5 &#91;2308101603&#93; -- Joomla version -- : 4.2.9 -- PHP version -- : 8  Hi, is it possible to condition the purchase of a product only if a user has already purchased another specific product? By the way, on the site, users can put a product in their cart without being logged in. To complete the purchase they must be logged in.  Thank you Francesco")*

Thank you,

> nicolas wrote: Hi,
> That way, product X will only be **accessible** if the current user is logged in with a user account...

Please, does this mean that if a user bought the product Y one month ago, but today he is not logged in, he cannot see the product X?

Thank you.
Regards
Francesco

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNzQzMS15b3UtY2FuLXB1cmNoYXNlLXByb2R1Y3QteC1pZi15b3UtcHVyY2hhc2VkLXByb2R1Y3QteT90bXBsPW1hcmtkb3du) 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: 86583
- Thank you received: 14324
-
-

2 years 11 months ago [\#357455](#357455) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[You can purchase product X if you purchased product Y](/forum/35-orders-management/907431-you-can-purchase-product-x-if-you-purchased-product-y#357455 "-- HikaShop version -- : 4.7.5 &#91;2308101603&#93; -- Joomla version -- : 4.2.9 -- PHP version -- : 8  Hi, is it possible to condition the purchase of a product only if a user has already purchased another specific product? By the way, on the site, users can put a product in their cart without being logged in. To complete the purchase they must be logged in.  Thank you Francesco")*

Hi,

That's correct.
Now, instead of using the "access level" setting of the product, you could instead use the "access level" setting of the price of the product and turn off the "display add to cart button for free products". In that case, the users who didn't purchase product Y would still be able to access the product X page but they wouldn't see the add to cart button and wouldn't be able to purchase it.

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

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

Less More

- Posts: 79
- Thank you received: 3
-
-

2 years 11 months ago [\#357465](#357465) by [studiocurci](/forum/user/67327-studiocurci "View studiocurci's Profile")  Replied by *[studiocurci](/forum/user/67327-studiocurci "View studiocurci's Profile")* on topic *[You can purchase product X if you purchased product Y](/forum/35-orders-management/907431-you-can-purchase-product-x-if-you-purchased-product-y#357465 "-- HikaShop version -- : 4.7.5 &#91;2308101603&#93; -- Joomla version -- : 4.2.9 -- PHP version -- : 8  Hi, is it possible to condition the purchase of a product only if a user has already purchased another specific product? By the way, on the site, users can put a product in their cart without being logged in. To complete the purchase they must be logged in.  Thank you Francesco")*

Really great solution!

Thank you
Regards

Francesco

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNzQzMS15b3UtY2FuLXB1cmNoYXNlLXByb2R1Y3QteC1pZi15b3UtcHVyY2hhc2VkLXByb2R1Y3QteT90bXBsPW1hcmtkb3du) 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.070 seconds

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