We are experiencing some issues related to shopping cart and checkout.
There is an incompatibility between your plugin and Country Restrictions for WooCommerce. If both plugins are active together, we are unable to add products to the shopping cart. Within the product or store page if I add a product everything looks fine, but when I go to my cart the cart is empty.
We then disabled the Country Restrictions for WooCommerce plugin (even though it is necessary for us) and the cart and checkout started working again, but in my error log I keep getting this error related to your plugin. Can you give us support on what is causing this error? Because maybe it is the same problem that causes the Cart and Checkout to break when active together with the other plugin.
Also, we had to disable your plugin because it was generating a MySQL error that prevented the import of products via REST API from one woocommerce site to another.
Please this is a major problem for us.
[26-Jun-2024 08:05:03 UTC] PHP Fatal error: Uncaught Error: Call to a member function meta_exists() on null in /public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:1360
Stack trace:
#0 /public_html/wp-content/plugins/eu-vat-for-woocommerce/includes/class-alg-wc-eu-vat-core.php(1132): WC_Checkout->get_value('billing_company')
#1 /public_html/wp-content/plugins/eu-vat-for-woocommerce/includes/class-alg-wc-eu-vat-core.php(204): Alg_WC_EU_VAT_Core->get_field_data()
#2 /public_html/wp-includes/class-wp-hook.php(324): Alg_WC_EU_VAT_Core->register_additional_checkout_block_field('')
#3 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#4 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(800): do_action('woocommerce_ini...')
#6 /public_html/wp-includes/class-wp-hook.php(324): WooCommerce->init('')
#7 in /public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php on line 1360
]]>When we add products to the cart, it remains empty.
I searched on the internet how to fix this problem and even after changing the theme and deactivating all the plugins the problem persists…
Can you help me resolve this issue please ?
Kind regards,
Marine
]]>When adding something to the cart it appears as “1 item” and the price is visable.
But when continu shopping to another product, the cart suddenly appears empty (hough it is not). Then when adding another product, suddenly both appear in the cart, even though it showed empty before.
My use case is: Numbered art prints, so variable products. It was set to empty after 20 minutes, i tried changing that to see if it would help. I’ve done the wordpress update recenly and wondering if that’s what’s broken it.
deactivated the plugin and the problem goes away, tried deactivating other plugins with this one still on and it remains, so it does appear at first glance to be this plugin having the issue but i’m no techie. Had to deactivate it now but really hope it can be fixed as it’s a brilliant plugin
]]>This is the function:
add_action('wp_loaded', 'woocommerce_empty_cart_action', 20);
function woocommerce_empty_cart_action() {
if (isset($_GET['empty_cart']) && 'yes' === esc_html($_GET['empty_cart'])) {
WC()->cart->empty_cart();
$referer = wp_get_referer() ? esc_url(remove_query_arg('empty_cart')) : wc_get_cart_url();
wp_safe_redirect($referer);
}
}
]]>How can I translate “No product in cart.” display in sidebar cart ?
Already test with translate function and Loco, but no effect…
Thank you for help
]]>