This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
If a user has modified the Mini Cart template part and the theme introduces a custom one, in the frontend the theme template takes precedence #8929
Labels
block: mini-cart
Issues related to the Mini-Cart block.
type: bug
The issue/PR concerns a confirmed bug.
To reproduce
mini-cart.html
file in theparts
subfolder of your theme.Expected behavior
I would expect the template part I see in the frontend to be the same I see in the editor. Currently, it might happen that the editor and the frontend show different template parts, which is super-confusing and makes it impossible to introduce changes to the template part.
Regarding which template part should take preference, IMO it should be the user modified one. This seems to be how other WC template work. That means that, in the editor, we are displaying the correct template part, but in the frontend we aren't.
Screenshots
The text was updated successfully, but these errors were encountered: