Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Reverting to classic cart block prevent removing last item in cart table #11889

Closed
wpchannel opened this issue Nov 22, 2023 · 1 comment · Fixed by #11919
Closed

Reverting to classic cart block prevent removing last item in cart table #11889

wpchannel opened this issue Nov 22, 2023 · 1 comment · Fixed by #11919
Assignees
Labels
block: cart Issues related to the cart block. type: bug The issue/PR concerns a confirmed bug. type: community contribution
Milestone

Comments

@wpchannel
Copy link

Describe the bug

Issue with reverting to classic cart feature.

To reproduce

Steps to reproduce the behavior:

Use cart block in page editor, switch block to classic cart block using the new CTA to do. This CTA appears in a notice if a plugin is not compatible with blocks. The cart page on front is working fine except that removing last item is not working. Ajax requests are correctly done but the table is not updating.

Removing HTML comments in page and adding back the shortcode [woocommerce_cart] solve this issue.

Capture d’écran 2023-11-22 à 15 16 17 Capture d’écran 2023-11-22 à 15 16 25

Expected behavior

The classic cart should work like shortcode.

Environment

WordPress (please complete the following information):

  • WordPress version: 6.4.1
  • Gutenberg version (if installed): [e.g. 12.0.0]
  • WooCommerce version: 8.3.1
  • WooCommerce Blocks version: [e.g. 7.0.0]
  • Site language: english, french
  • Any other plugins installed: none

Additional context

Test locally and on a stagging environment. No plugins installed, Storefront default theme.

@wpchannel wpchannel added the type: bug The issue/PR concerns a confirmed bug. label Nov 22, 2023
@roykho roykho added the block: cart Issues related to the cart block. label Nov 22, 2023
@mikejolley mikejolley self-assigned this Nov 23, 2023
@mikejolley
Copy link
Member

Thanks for the report. There is a missing woocommerce classname that the scripts use to update the cart page. This is fixed here: #11919

This will be part of the 11.6.1 fix release as well.

@wavvves wavvves added this to the 11.6.1 milestone Nov 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: cart Issues related to the cart block. type: bug The issue/PR concerns a confirmed bug. type: community contribution
Projects
None yet
4 participants