Possible to require specific products in order to be able to checkout?

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
7 years 3 months ago #275318

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.4
-- PHP version -- : 5.6.31

Got a odd request to require a minimum of 4 specific, different products in any given order.

I see I can set a minimum of just 4 products (of any kind) per order via shipping methods.

But I see no way to require specific products in an order.

Is there a way that I'm missing or would this require a custom plugin or changes to a particular view?

Last edit: 7 years 3 months ago by jazzmang.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 3 months ago #275319

Hello,

Due to the specificity of the "restriction", it would require a custom plugin.
Best would be to use "onBeforeOrderCreate" trigger ; check the cart content and authorize or not the rest of the workflow thanks to the " $do " variable in the trigger.
www.hikashop.com/support/documentation/6...#onBeforeOrderCreate

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum