- Posts: 79
- Thank you received: 3
You can purchase product X if you purchased product Y
- studiocurci
-
Topic Author
- Offline
Less
More
2 years 11 months ago #357440
by studiocurci
You can purchase product X if you purchased product Y was created by studiocurci
-- 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
-- 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.
2 years 11 months ago #357444
by nicolas
Replied by nicolas on topic You can purchase product X if you purchased product Y
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.
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.
- studiocurci
-
Topic Author
- Offline
Less
More
- Posts: 79
- Thank you received: 3
2 years 11 months ago #357454
by studiocurci
Replied by studiocurci on topic You can purchase product X if you purchased product Y
Thank you,
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
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.
2 years 11 months ago #357455
by nicolas
Replied by nicolas on topic You can purchase product X if you purchased product Y
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.
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.
- studiocurci
-
Topic Author
- Offline
Less
More
- Posts: 79
- Thank you received: 3
2 years 11 months ago #357465
by studiocurci
Replied by studiocurci on topic You can purchase product X if you purchased product Y
Really great solution!
Thank you
Regards
Francesco
Thank you
Regards
Francesco
Please Log in or Create an account to join the conversation.
Time to create page: 0.047 seconds