minimum price to work this coupon

  • Posts: 180
  • Thank you received: 7
1 year 1 month 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: 81852
  • Thank you received: 13140
  • MODERATOR
1 year 1 month 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: 180
  • Thank you received: 7
1 year 1 month 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.055 seconds
Powered by Kunena Forum