Cart empty only inside Index
-
We’ll update the theme, but we can’t do it today. So you’ll take a look or not? 😕
We see a lot of customizations in our theme code file made by you. Could you please remove them to be sure that this problem is not caused by your code? Or if you want we can remove it for you.
Ahahahaha, all customizations is made by YOU 🙂 I’m not a developer. So every time I asked to you.
No, we didn’t add that code! We never added any code to your functions.php file in the parent theme.
You was right. I solved with removing this code. Many thanks 😕 Our server support suggested to insert it to speed up our index. LOL?
/** Disable Ajax Call from WooCommerce */
add_action( 'wp_enqueue_scripts', 'dequeue_woocommerce_cart_fragments', 11);
function dequeue_woocommerce_cart_fragments() { if (is_front_page()) wp_dequeue_script('wc-cart-fragments'); }
Finally 🙂 Of course, if you disable JS files it will work faster, but not better.
I’m really sorry, I supposed that you meaning CSS Global editing, not function.php
Anyway, we are glad that this issue is solved.