I am working on WooCommerce theme implementation I’ve designed mini cart sidepanel using jquery problem is when user clicks on add to cart on shop page its shows product is added, page is not loading & in minicart added items are not showing I need to refresh the page to see the added items. Please help into this.
I am designer I worked on WordPress theme implementation WooCommerce theme implementation is new to me. So please provide me the solution.
2
Answers
Firstly, you can create the shortcode on function.php
After then, call the shortcode anywhere in pages or custom template pages.
Like this,
Now, you can get your layout according to your requirement as mentioned in this.
Also, you can add this function anywhere in pages,
Good Luck !
You can use:
In your on click add to cart function.
If using ajax add to cart, use it like this:
Or inside PHP script after add to cart: