Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
This repository was 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

@wpchannel

Description

@wpchannel

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions