We are doing some custom changes to our WooCommerce.
We are calling successfully:
WC()->cart->add_to_cart($PRODUCT_ID)
The product appears in the cart when we click on the cart icon.
However, what I cannot figure out is how to trigger automatically on the front-end the small mini-cart widget that appears when you use the regular 'Add to Cart' button on regular product pages.
What other calls do I need to make to have the same front-end behavior that occurs when you add a regular item to the cart.
Basically, I want to just show the user that the item was successfully added to the cart. It should display the message that the item was added to the cart and update the cart total in the top right corner.
Any help greatly appreciated.
Thank you.