minimum price to work this coupon

  • Posts: 168
  • Thank you received: 7
11 months 2 weeks ago #351419

hi
i need to a minimum price field to use coupon.
for example if user purchase more than 10$ he can use coupon or discount code. if it is need create plugin for that please advise:
1-how to add field to coupon config and how to read that?
2-what event trigger must use?

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

  • Posts: 81504
  • Thank you received: 13062
  • MODERATOR
11 months 2 weeks ago #351420

Bonjour,

It's already possible with the settings in HikaShop:
www.hikashop.com/support/documentation/i...scount-form.html#adv
Note that these are only available with HikaShop Essential and Business.

Adding this by developing a plugin is possible. You need to implement the onDiscountBlocksDisplay(&$discount, $html) event to add your HTML to the discount edit form (by adding your HTML in the $html array), and the onAfterCouponCheck( &$coupon, &$total, &$zones, &$products, &$display_error, &$error_message, &$do ) event ( www.hikashop.com/support/documentation/6...entation.html#coupon ) to add the check.

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

  • Posts: 168
  • Thank you received: 7
11 months 2 weeks ago #351439

thank you and excuse me for silly question... :)
there is in coupon setting

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

Time to create page: 0.063 seconds
Powered by Kunena Forum