I'm building a custom header, which
displays number of items in the cart as well as the sub-total, everything works
fine so far. The only thing I can’t figure out is how to update both
items and total without reloading the page.
I did read the woo commerce documentation
as well as this guide: https://iconicwp.com/blog/update-custom-cart-count-html-ajax-add-cart-woocommerce/ on
how to do this. But I can’t get it to work.
I also looked into "cart-ribbon.php" in the oxygen source file, found
this variable: $cart_counter_ajax = get_data('shop_cart_counter_ajax');
Tried to use it in the same way you do
in the cart-ribbon file.
I'm afraid that this is a customization question and support doesn't offer customization services as we wrote on our support homepage and on this area.
If you're looking for professional help in this matter, there's always someone available for such tasks on the WP Kraken or Envato Studio. Pricing and timeline are always straightforward there and that's the main reason for recommending those services.
Hi,
First of all, thanks for a great theme.
I'm building a custom header, which displays number of items in the cart as well as the sub-total, everything works fine so far. The only thing I can’t figure out is how to update both items and total without reloading the page.
I did read the woo commerce documentation as well as this guide: https://iconicwp.com/blog/update-custom-cart-count-html-ajax-add-cart-woocommerce/ on how to do this. But I can’t get it to work. I also looked into "cart-ribbon.php" in the oxygen source file, found this variable: $cart_counter_ajax = get_data('shop_cart_counter_ajax');
Tried to use it in the same way you do in the cart-ribbon file.
But still no luck.
Any pointers?
Best Regards
Linus
Hi Linus,
Thanks for your kind words.
I'm afraid that this is a customization question and support doesn't offer customization services as we wrote on our support homepage and on this area.
If you're looking for professional help in this matter, there's always someone available for such tasks on the WP Kraken or Envato Studio. Pricing and timeline are always straightforward there and that's the main reason for recommending those services.
Thanks for your understanding.
Have a great weekend!