Add the Woocommerce notices(without reload) when using add to cart with ajax.

I want to add the Woocommerce notices(without reload) in the woocommerce mini-cart when using add to cart with ajax. See my sample code below.


* @snippet WooCommerce Max 1 Product @ Cart


add_filter( 'woocommerce_add_to_cart_validation', 'bbloomer_only_one_in_cart', 9999, 2 );

function bbloomer_only_one_in_cart( $passed, $added_product_id ) {


$error_message = 'You cannot add another to your cart.';

// add your notice

wc_add_notice( $error_message, 'error' );

return $passed;


The above code works only on page load. I need this notice to be displayed in the mini-cart.

Навыки: PHP, WordPress, WooCommerce, JavaScript, AJAX

Показать больше: magento add cart ajax, add cart ajax script, pinnacle cart ajax add cart, asp net add cart ajax, magento add shopping cart ajax, magento sample add cart ajax, virtuemart featured add cart ajax, zen cart ajax add cart, add shopping cart ajax script, woocommerce add product cart ajax, woocommerce add cart ajax fix, woocommerce add to cart ajax not working, woocommerce add to cart ajax, woocommerce add to cart ajax plugin, woocommerce add to cart ajax hook

О работодателе:
( 5 отзыв(-а, -ов) ) Lagos, Nigeria

ID проекта: #29837749



Hello there, parth mangukiya wordpress expert !! I will help you to display wocommerce notice without reloading a page. I already do same job in past so I definitely help you.. let's discuss and finish the stuf....

$20 USD за 1 день
(9 отзывов(-а))

6 фрилансеров(-а) готовы выполнить эту работу в среднем за $27


Greetings, I am expert in WP woocommerce and i can fix the notification message without reload the page. I have more than 6 yrs. of experience in wordprss. Please come to chat for more discussion. Thanks

$30 USD за 1 день
(176 отзывов(-а))

Hi There, I Have gone through your initial project requirement and I have the exact match with the Skills you are looking for a current project. >>>I will display the notice with ajax. I am ready to work on this pro Больше

$30 USD за 1 день
(67 отзывов(-а))

Hi! I am available right now! I am an expert WordPress Developer and I use Website Design with skills including WooCommerce, AJAX, JavaScript, PHP and WordPress. I have read the description of your project and that yo Больше

$30 USD за 1 день
(14 отзывов(-а))

Hello sir, I can do this job with good perfection i am ready to start work now please message me so we can discuss Thanks Pooja

$30 USD за 1 день
(35 отзывов(-а))

I'm a professional web designer & developer with 7 years of experience working with international clients &agencies. I’ve been designing and developing WordPress websites for more than 7 years with 500+ Больше

$20 USD за 7 дней(-я)
(9 отзывов(-а))