Hi threre,
We need your urgent help, I am afraid:
Upon having updated all plugins and Pro Theme, we are experiencing awkward behavior:
-
) The Mini Cart no longer links to the Cart page (page id properly selected in WC), but references the current page (hence none)
-
) On the Cart Page itself (/warenkorb), users cannot delete a product using the “x” button, entering zero and clicking update works however, so does the “X” button inside the Mini Cart.
3.) The Dropdown with our Mini Cart is blank on the homepage, not even showing an empty cart message. Weird enough, the cart counter displays a wrong number of items. This figure is correct on all the other pages though.
4.) When forwarding to cart is enabled, adding a product to the cart on Product Single results in the product page (same URL) turning totally blank. (forwarding currently disabled).
We tried disabling all plugins except for WC, purged W3TC cache, browser cache, and Cornerstone cache. We installed previous versions of WC and Pro theme.
Data is still stored as shortcodes, not html. Could that be the culprit with WooCommerce 10.5? Save to migrate?
When a standard WP theme is activated, items get correctly removed from the cart. So, there seems to be something wrong in the interaction between WC and Pro. We enabled debugging but couldn’t find anything other than depracation warnings for WPML and similar stuff, no show stoppers.
We also tried things like the following:
/**
* Fix X Pro Mini Cart "View Cart" linking to current page
*/
add_filter( 'woocommerce_widget_cart_page_id', 'force_cart_page_id' );
function force_cart_page_id() {
return get_option( 'woocommerce_cart_page_id' ); // Force correct cart page ID
}
// Ensure mini-cart buttons always link correctly
add_filter( 'woocommerce_add_to_cart_fragments', function( $fragments ) {
$cart_page_id = get_option( 'woocommerce_cart_page_id' );
if ( $cart_page_id ) {
$fragments['a.cart-contents'] = '<a class="cart-contents" href="' . esc_url( wc_get_cart_url() ) . '" title="' . esc_attr__( 'View your shopping cart' ) . '">';
}
return $fragments;
} );
… to no avail.
As this is a live webshop which must remain operational no matter what, we made the Mini Cart invisible and replaced the dropdown toggle with a similar button that links to /warenkorb.
What do you think we might do? Can you please have a look at it?
Cheers,
Jens