Home Forums WoodMart support forum MINIMUM ORDER AMOUNT

MINIMUM ORDER AMOUNT

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #486487

    patcart.vincenzo
    Participant

    Hi, I put some code in functions.php file in themes->woodmart-child
    to set a minimum purchase amount excluding shipping, but it doesn’t work.

    //Aggiunto minimo ordine di euro 60 + spedizione
    add_action( ‘woocommerce_checkout_process’, ‘wpspecial_imposta_ordine_minimo_importo’ );
    add_action( ‘woocommerce_before_cart’ , ‘wpspecial_imposta_ordine_minimo_importo’ );
    add_action( ‘woocommerce_before_checkout_form’, ‘wpspecial_imposta_ordine_minimo_importo’ );
    function wpspecial_imposta_ordine_minimo_importo() {
    // Specifica l’importo minimo per l’acquisto
    $minimo_acquisto = 60;

    if ( WC()->cart->subtotal < $minimo_acquisto ) {

    if( is_cart() ) {

    wc_print_notice(
    sprintf( ‘Devi effettuare un acquisto minimo di %s per completare un ordine, attualmente il tuo ordine è di %s.’ ,
    wc_price( $minimo_acquisto ),
    wc_price( WC()->cart->subtotal )
    ), ‘error’
    );

    } else {

    wc_add_notice(
    sprintf( ‘Devi effettuare un acquisto minimo di %s per completare un ordine, attualmente il tuo ordine è di %s.’ ,
    wc_price( $minimo_acquisto ),
    wc_price( WC()->cart->subtotal )
    ), ‘error’
    );

    }
    }
    }

    Can you give me a hand?

    Thank you

    Greetings

    #486574

    Hello,

    Sorry to say but right now there is no option in Theme Settings available for that. It requires Customization and this is beyond our limitations and support policy scope.

    Please check this Manual:
    https://woocommerce.com/document/minimum-order-amount/

    Best Regards.

    #486584

    patcart.vincenzo
    Participant

    I already did what woocommerce says, but it doesn’t work in your theme so I think the problem is with you.

    Please help me

    Thank you

    #486702

    Hello,

    Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?

    If you found the issue with woodmart theme then deactivate the third party plugins on your site and share the wp logins details of your site i will check and give you a possible solution.

    Best Regards.

    #486705

    patcart.vincenzo
    Participant

    Thanks, but I fixed it with the plugin: Order Minimum/Maximum Amount for WooCommerce

    Greetings

    #486707

    Sounds Great! that your issue has been solved.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘MINIMUM ORDER AMOUNT’ is closed to new replies.