Home › Forums › WoodMart support forum › MINIMUM ORDER AMOUNT
MINIMUM ORDER AMOUNT
- This topic has 5 replies, 2 voices, and was last updated 1 year, 8 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
August 4, 2023 at 1:54 pm #486487
patcart.vincenzoParticipantHi, 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
August 4, 2023 at 4:23 pm #486574
Aizaz Imtiaz AwanKeymasterHello,
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.
August 4, 2023 at 4:29 pm #486584
patcart.vincenzoParticipantI 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
August 5, 2023 at 10:38 am #486702
Aizaz Imtiaz AwanKeymasterHello,
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.
August 5, 2023 at 11:09 am #486705
patcart.vincenzoParticipantThanks, but I fixed it with the plugin: Order Minimum/Maximum Amount for WooCommerce
Greetings
August 5, 2023 at 11:20 am #486707
Aizaz Imtiaz AwanKeymasterSounds 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. -
AuthorPosts
The topic ‘MINIMUM ORDER AMOUNT’ is closed to new replies.
- You must be logged in to create new topics. Login / Register