Plugin Author
vark
(@vark)
Hi,
Thanks for your query and the info update. Never tested the plugin with stripe. Please contact me on my support channel and we’ll set up a skype session to figure this out… I’m on the road for the next 24 hrs tho…
http://www.varktech.com/support/
Best,
Vark
Thread Starter
Keryn
(@b-summers)
According to WooCommerce who made the Stripe plugin, Stripe Checkout and your plugin are not compatible. So if anyone else has this issue in the future this is what I did:
//FORCE USERS TO ORDER A MINIMUM OF $18 OF FOOD, OR 2 ITEMS BEFORE CHECKOUT
add_action( 'woocommerce_check_cart_items', 'wc_minimum_order_amount' );
function wc_minimum_order_amount() {
// Set this variable to specify a minimum order value
$minAmount = 18;
$minQty = 2;
if ( WC()->cart->subtotal < $minAmount) {
WC()->add_error( sprintf( 'You must have an order with a minimum of %s to place your order, your current order total is %s.' ,
woocommerce_price( $minAmount ),
woocommerce_price( WC()->cart->subtotal )
) );
}
if ( WC()->cart->cart_contents_count < $minQty) {
WC()->add_error( sprintf( 'You must order a minimum of ' . $minQty . ' food items to place an order.') );
}
}
Modified from this post here:
https://gist.github.com/ChromeOrange/33af495f6afdd5d7a397
Plugin Author
vark
(@vark)
Hi,
Thanks very much for clearing this up….
Best,
Vark