You can purchase product X if you purchased product Y

  • Posts: 72
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
1 year 2 weeks ago #357440

-- 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 or Create an account to join the conversation.

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
1 year 2 weeks ago #357444

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 or Create an account to join the conversation.

  • Posts: 72
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
1 year 2 weeks ago #357454

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 or Create an account to join the conversation.

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
1 year 2 weeks ago #357455

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 or Create an account to join the conversation.

  • Posts: 72
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
1 year 2 weeks ago #357465

Really great solution!

Thank you
Regards

Francesco

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

Time to create page: 0.055 seconds
Powered by Kunena Forum