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.

Taidot: PHP, WordPress, WooCommerce, JavaScript, AJAX

Näytä lisää: 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

Tietoa työnantajasta:
( 5 arvostelua ) Lagos, Nigeria

Projektin tunnus: #29837749

Myönnetty käyttäjälle:


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 päivässä
(9 Arvostelua)

6 freelanceria on tarjonnut keskimäärin $27 tähän työhön


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 päivässä
(176 arvostelua)

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 Lisää

$30 USD 1 päivässä
(67 arvostelua)

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 Lisää

$30 USD 1 päivässä
(14 arvostelua)

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 päivässä
(35 arvostelua)

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+ Lisää

$20 USD 7 päivässä
(9 arvostelua)