Title: Conditional Logic for checkout
Last modified: February 23, 2022

---

# Conditional Logic for checkout

 *  [shabbyrose](https://wordpress.org/support/users/shabbyrose/)
 * (@shabbyrose)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/conditional-logic-for-checkout/)
 * Hi wordpressers!
 * I have this on as a variable product with the different prices per kilo. However
   to get the deal price they must add the minimum amount to their cart. At the 
   moment, there is nothing stopping someone from adding just one kilo at any price.
   Is there some kind of code I can put for the cart that says “you haven’t added
   enough of these to qualify for that price” or some other way from getting to 
   the checkout with not enough in their cart?
    -  This topic was modified 4 years, 2 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic

Viewing 1 replies (of 1 total)

 *  [Vijay Hardaha](https://wordpress.org/support/users/vijayhardaha/)
 * (@vijayhardaha)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/conditional-logic-for-checkout/#post-15394926)
 * There are some plugins available for minimum cart amount, here are some
    [https://woocommerce.com/products/cart-notices/](https://woocommerce.com/products/cart-notices/)
   [https://wordpress.org/plugins/minimum-purchase-amount-for-woo-cart/](https://wordpress.org/plugins/minimum-purchase-amount-for-woo-cart/)
 * Here is a blog for custom code
    [https://www.sitepoint.com/minimum-checkout-requirements-in-woocommerce/](https://www.sitepoint.com/minimum-checkout-requirements-in-woocommerce/)

Viewing 1 replies (of 1 total)

The topic ‘Conditional Logic for checkout’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Vijay Hardaha](https://wordpress.org/support/users/vijayhardaha/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/conditional-logic-for-checkout/#post-15394926)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
