Hi !
1) I would to add a code (or other solution) to make customer to add a minimum cost order before be able to process to payment.
The one I’ve found doesn’t work :
add_action('woocommerce_before_checkout_process','mgris_minimum_order');
function mgris_minimum_order() {
global $woocommerce;
// Modifier la variable $minorder par votre montant minimum.
$minorder = 15.00;
$panier = $woocommerce->cart->subtotal;
if($panier<$minorder) {
$woocommerce->add_error( sprintf(__('Désolé, pour pouvoir réaliser une commande en ligne, le montant de ton panier doit être supérieur à <strong>' . $minorder . '</strong> €. <br /><a href="%s">Retour à la boutique →</a><br />', 'textdomain'), get_permalink( woocommerce_get_page_id('shop') ) ) );
}}
2) I would like to add a pluggin or sth to let customer choose shipping time (hour: betwenn X and Y) > here is an exemple.
Please can you help me ?
TKS
Eli