Conditional access to a menu after paying for a product

  • Posts: 20
  • Thank you received: 0
2 weeks 4 hours ago #360327

-- HikaShop version -- : 5.0.4
-- Joomla version -- : 5.2

Hi
We have a menu that the user must pay an amount to access this menu. To pay the amount, we created a product in Hikashop. Now, how to give it conditional access to the payment of this product so that the user can access the desired link after paying for the product?

thanks you.

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

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
2 weeks 56 minutes ago #360329

Hi,

I would recommend doing it through a user group:
- create a user group in Joomla
- configure your menu's access so that only users of this user group can access it
- in your HikaShop product, select this user group in the "user group after purchase" setting
That way, after the purchase of the product, the user group will be added to the user account, and the user will be able to access the menu with your restricted content.

While this method is nice, it has several inconvenients:
- your checkout needs to offer login/registration as guest users can't have user groups.
- after the purchase, the user will be logged out of the website so that he can log back in to get his new access due to the caching of the user group accesses by Joomla.
- it requires HikaShop Business.

Another more lightweight method is to use content tags:
www.hikashop.com/forum/install-update/90...tag-not-working.html
This allows you to add tags in your Joomla articles to provide access to part of the article based on whether the user bought a specific product or not.
And it can also be used in other contents on the website, not only Joomla articles.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum