• Trying to remove the last item in the side cart does not remove the item from the side cart panel, it remains visible, but is it actually removed from woocommerce cart (ie. if you navigate to /cart/, it is empty).

    There are no console errors (only the ‘updated’ console.log message)

    The ajax response for removing the last item returns fragments: null
    /?wc-ajax=xoo_wsc_update_item_quantity

    {"fragments":null,"cart_hash":""}

    ..however removing other items before this (ie. not the last one) does return a full response (included below).

    We’re on WP 5.8.3 & WC 5.8.0.

    Any ideas what may cause this issue?

    Thanks!

    
    <code>{&quot;fragments&quot;:{&quot;div.widget_shopping_cart_content&quot;:&quot;<div class=\&quot;widget_shopping_cart_content\&quot;>\n\n\t<ul class=\&quot;woocommerce-mini-cart cart_list product_list_widget \&quot;>\n\t\t\t\t\t\t<li class=\&quot;woocommerce-mini-cart-item mini_cart_item\&quot;>\n\t\t\t\t\t<a data-gtm4wp_product_id=\&quot;OEU-ABI\&quot; data-gtm4wp_product_name=\&quot;Olea europaea - Ancient\&quot; data-gtm4wp_product_price=\&quot;207.5\&quot; data-gtm4wp_product_cat=\&quot;Olive trees\&quot; data-gtm4wp_product_url=\&quot;https:\/\/site.co.uk\/\&quot; data-gtm4wp_product_variant=\&quot;oeu-abi\&quot; data-gtm4wp_product_stocklevel=\&quot;73\&quot; data-gtm4wp_product_brand=\&quot;\&quot; href=\&quot;https:\/\/palmcentre.co.uk\/basket\/?remove_item=4835db5b6c0f063607500fb7b36f8d15&_wpnonce=65b9909b09\&quot; class=\&quot;remove remove_from_cart_button\&quot; aria-label=\&quot;Remove this item\&quot; data-product_id=\&quot;15052\&quot; data-cart_item_key=\&quot;4835db5b6c0f063607500fb7b36f8d15\&quot; data-product_sku=\&quot;OEU-ABI\&quot;>&times;<\/a>\t\t\t\t\t\t\t\t\t\t\t<a href=\&quot;https:\/\/site.co.uk\/products\/outdoor-plants\/olive-trees\/olea-europaea-ancient\/?attribute_pa_size=oeu-abi\&quot;>\n\t\t\t\t\t\t\t<img src=\&quot;https:\/\/cdnx.palmcentre.co.uk\/w300\/OEU-ABI.jpg\&quot; width=\&quot;150\&quot; height=\&quot;150\&quot; \ />Olea europaea - Ancient - OEU-ABI<br \/><div class=\&quot;description\&quot;>Gnarled, 70Ltr pot, 150\/175cm tall<\/div>\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\&quot;quantity\&quot;>1 &times; <span class=\&quot;woocommerce-Price-amount amount\&quot;><bdi><span class=\&quot;woocommerce-Price-currencySymbol\&quot;>&pound;<\/span>207.50<\/bdi><\/span><\/span>\t\t\t\t<\/li>\n\t\t\t\t\t<\/ul>\n\n\t<p class=\&quot;woocommerce-mini-cart__total total\&quot;>\n\t\t<strong>Subtotal:<\/strong> <span class=\&quot;woocommerce-Price-amount amount\&quot;><bdi><span class=\&quot;woocommerce-Price-currencySymbol\&quot;>&pound;<\/span>207.50<\/bdi><\/span>\t<\/p>\n\n\t\n\t<p class=\&quot;woocommerce-mini-cart__buttons buttons\&quot;><a href=\&quot;https:\/\/site.co.uk\/basket\/\&quot; class=\&quot;button wc-forward\&quot;>View cart<\/a><a href=\&quot;https:\/\/site.co.uk\/checkout\/\&quot; class=\&quot;button checkout wc-forward\&quot;>Checkout<\/a><\/p>\n\n\t\n\n<\/div>&quot;,&quot;div.xoo-wsc-container&quot;:&quot;\r\n<div class=\&quot;xoo-wsc-container\&quot;>\r\n\r\n\t<div class=\&quot;xoo-wsc-basket\&quot;>\r\n\r\n\t\t\t\t\t<span class=\&quot;xoo-wsc-items-count\&quot;>1<\/span>\r\n\t\t\r\n\t\t<span class=\&quot;xoo-wsc-bki xoo-wsc-icon-basket1\&quot;><\/span>\r\n\r\n\t\t\r\n\t<\/div>\r\n\r\n\t<div class=\&quot;xoo-wsc-header\&quot;>\r\n\r\n\t\t\r\n\t\t\r\n<div class=\&quot;xoo-wsch-top\&quot;>\r\n\r\n\t\t\t<div class=\&quot;xoo-wsc-notice-container\&quot; data-section=\&quot;cart\&quot;><ul class=\&quot;xoo-wsc-notices\&quot;><\/ul><\/div>\t\r\n\t\r\n\t\t\t<span class=\&quot;xoo-wsch-text\&quot;>Your Basket<\/span>\r\n\t\r\n\t\t\t<span class=\&quot;xoo-wsch-close xoo-wsc-icon-cross\&quot;><\/span>\r\n\t\r\n<\/div>\r\n\t\t\r\n\t<\/div>\r\n\r\n\r\n\t<div class=\&quot;xoo-wsc-body\&quot;>\r\n\r\n\t\t\r\n\t\t\r\n\r\n\r\n<div class=\&quot;xoo-wsc-products\&quot;>\r\n\r\n\t\r\n<div data-key=\&quot;4835db5b6c0f063607500fb7b36f8d15\&quot; class=\&quot;xoo-wsc-product\&quot;>\r\n\r\n\t\r\n\t\r\n\t\t<div class=\&quot;xoo-wsc-img-col\&quot;>\r\n\r\n\t\t\t<a href=\&quot;https:\/\/site.co.uk\/products\/outdoor-plants\/olive-trees\/olea-europaea-ancient\/?attribute_pa_size=oeu-abi\&quot;><img src=\&quot;https:\/\/cdnx.site.co.uk\/w300\/OEU-ABI.jpg\&quot; width=\&quot;150\&quot; height=\&quot;150\&quot; \ /><\/a>\r\n\t\t\t\r\n\t\t<\/div>\r\n\r\n\t\r\n\t<div class=\&quot;xoo-wsc-sum-col\&quot;>\r\n\r\n\t\t\r\n\t\t<div class=\&quot;xoo-wsc-sm-info\&quot;>\r\n\r\n\t\t\t<div class=\&quot;xoo-wsc-sm-left\&quot;>\r\n\r\n\t\t\t\t\t\t\t\t\t<span class=\&quot;xoo-wsc-pname\&quot;><a href=\&quot;https:\/\/site.co.uk\/products\/outdoor-plants\/olive-trees\/olea-europaea-ancient\/?attribute_pa_size=oeu-abi\&quot;>Olea europaea - Ancient - OEU-ABI<br\/><div class=\&quot;description\&quot;>Gnarled, 70Ltr pot, 150\/175cm tall<\/div><\/a><\/span>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t<!-- Quantity -->\r\n\r\n\t\t\t\t<div class=\&quot;xoo-wsc-qty-price\&quot;>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<span>1<\/span> X <span><span class=\&quot;woocommerce-Price-amount amount\&quot;><bdi><span class=\&quot;woocommerce-Price-currencySymbol\&quot;>&pound;<\/span>207.50<\/bdi><\/span><\/span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span> = <span class=\&quot;woocommerce-Price-amount amount\&quot;><bdi><span class=\&quot;woocommerce-Price-currencySymbol\&quot;>&pound;<\/span>207.50<\/bdi><\/span><\/span>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t<\/div>\r\n\r\n\t\t\t<!-- End Quantity -->\r\n\r\n\t\t\r\n\r\n\t\t\t<div class=\&quot;xoo-wsc-sm-right\&quot;>\r\n\r\n\t\t\t\t\t\t\t\t\t<span class=\&quot;xoo-wsc-smr-del xoo-wsc-icon-trash\&quot;><\/span>\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t<\/div>\r\n\r\n\t\t<\/div>\r\n\r\n\t\t\r\n\t<\/div>\r\n\r\n\t\r\n<\/div>\r\n<\/div>\r\n\r\n\t\r\n\t\t\r\n\t<\/div>\r\n\r\n\t<div class=\&quot;xoo-wsc-footer\&quot;>\r\n\r\n\t\t\r\n\t\t\r\n\r\n\r\n\r\n<div class=\&quot;xoo-wsc-ft-totals\&quot;>\r\n\t\t\t<div class=\&quot;xoo-wsc-ft-amt xoo-wsc-ft-amt-subtotal \&quot;>\r\n\t\t\t<span class=\&quot;xoo-wsc-ft-amt-label\&quot;>Subtotal<\/span>\r\n\t\t\t<span class=\&quot;xoo-wsc-ft-amt-value\&quot;><span class=\&quot;woocommerce-Price-amount amount\&quot;><bdi><span class=\&quot;woocommerce-Price-currencySymbol\&quot;>&pound;<\/span>207.50<\/bdi><\/span><\/span>\r\n\t\t<\/div>\r\n\t\r\n\t<div class=\&quot;text-center text-xs text-subtext\&quot;>excluding delivery<\/div>\r\n<\/div>\r\n<div class=\&quot;xoo-wsc-ft-buttons-cont\&quot;>\r\n\r\n\t<a href=\&quot;https:\/\/site.co.uk\/checkout\/\&quot; class=\&quot;xoo-wsc-ft-btn button btn xoo-wsc-ft-btn-checkout\&quot;>Checkout<\/a><a href=\&quot;https:\/\/site.co.uk\/basket\/\&quot; class=\&quot;xoo-wsc-ft-btn button btn xoo-wsc-ft-btn-cart\&quot;>View Basket<\/a><a href=\&quot;#\&quot; class=\&quot;xoo-wsc-ft-btn button btn xoo-wsc-cart-close xoo-wsc-ft-btn-continue\&quot;>Continue Shopping<\/a>\r\n<\/div>\r\n\r\n\r\n\t\t\r\n\t<\/div>\r\n\r\n\t<span class=\&quot;xoo-wsc-loader\&quot;><\/span>\r\n\r\n<\/div>&quot;,&quot;div.xoo-wsc-slider&quot;:&quot;&quot;,&quot;#cart-count&quot;:&quot;<span id=\&quot;cart-count\&quot; class=\&quot;active\&quot;>1<\/span>&quot;},&quot;cart_hash&quot;:&quot;bfb44e24b5cf5e8a0c7d052c3e32cfbb&quot;}</code> 
  • The topic ‘Can’t remove last item,’ is closed to new replies.