[Skip to main content](#vessel-content)

#   minimum price to work this coupon

##

- **[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")**
- [![sadaf3d's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46256-sadaf3d "View sadaf3d's Profile") Topic Author
- [ Offline](/forum/user/46256-sadaf3d)

Less More

- Posts: 221
- Thank you received: 8
-

3 years 6 months ago [\#351419](#351419) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  *[minimum price to work this coupon](/forum/46-discount-coupon/906336-minimum-price-to-work-this-coupon#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?")* was created by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi85MDYzMzYtbWluaW11bS1wcmljZS10by13b3JrLXRoaXMtY291cG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

3 years 6 months ago [\#351420](#351420) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[minimum price to work this coupon](/forum/46-discount-coupon/906336-minimum-price-to-work-this-coupon#351420 "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?")*

Bonjour,

It's already possible with the settings in HikaShop:
[ www.hikashop.com/support/documentation/i...scount-form.html#adv](https://www.hikashop.com/support/documentation/integrated-documentation/10-hikashop/27-hikashop-discount-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(&amp;$discount, $html) event to add your HTML to the discount edit form (by adding your HTML in the $html array), and the onAfterCouponCheck( &amp;$coupon, &amp;$total, &amp;$zones, &amp;$products, &amp;$display_error, &amp;$error_message, &amp;$do ) event ( [ www.hikashop.com/support/documentation/6...entation.html#coupon](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#coupon) ) to add the check.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi85MDYzMzYtbWluaW11bS1wcmljZS10by13b3JrLXRoaXMtY291cG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")**
- [![sadaf3d's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46256-sadaf3d "View sadaf3d's Profile") Topic Author
- [ Offline](/forum/user/46256-sadaf3d)

Less More

- Posts: 221
- Thank you received: 8
-

3 years 6 months ago [\#351439](#351439) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  Replied by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")* on topic *[minimum price to work this coupon](/forum/46-discount-coupon/906336-minimum-price-to-work-this-coupon#351439 "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?")*

thank you and excuse me for silly question... ![:)](/media/kunena/emoticons/3.png ":)")
there is in coupon setting

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi85MDYzMzYtbWluaW11bS1wcmljZS10by13b3JrLXRoaXMtY291cG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.040 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
