- Posts: 11
- Thank you received: 0
Product restrictions within a category
11 years 10 months ago #181816
by Impress51
Product restrictions within a category was created by Impress51
-- 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
-- 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.
11 years 10 months ago #181830
by Xavier
Replied by Xavier on topic Product restrictions within a category
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
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.122 seconds