Woocommerce – Limit cart shipping - by Elimy

This topic has 2 replies, 2 voices, and was last updated 8 years, 4 months ago ago by Eva Kemp

  • Avatar: Elimy
    Elimy
    Participant
    December 11, 2015 at 13:55

    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

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    December 11, 2015 at 16:47

    Hello,

    We’re sorry, but our theme doesn’t have such features, and they are related to Woocommerce options, not to the theme. You may ask on their support or find some plugins.

    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.