Product restrictions within a category

  • Posts: 11
  • Thank you received: 0
  • Hikashop Business
10 years 5 months ago #181816

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5

Hi, I'm trying to create a shop in which these restrictions need to be configured and I'm unsure about how to configure them:

Within Category A, a user cannot complete checkout with items from this category unless they have at least one Product X in their cart.

Within Category B, a user cannot complete checkout with items from this category unless they have at least one Product Y in their cart.

Within other categories there are no restrictions.


Regards

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

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #181830

Hi,

By default we can't set this kind of restrictions in HikaShop, but thanks to a plugin this can be possible.
So you will have to do a little plugin based on the function "onPaymentDisplay()", in that function do your checks about the products presents in the cart, and if all conditions are met, return true, else empty the methods and display a system message.

It require good PHP knowledges, here is the documentation for that:
www.hikashop.com/support/support/documen...tml#onPaymentDisplay

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

Time to create page: 0.063 seconds
Powered by Kunena Forum