-
Notifications
You must be signed in to change notification settings - Fork 219
Fix overriding archive-product
when saving a fallback template
#7975
Conversation
The release ZIP for this PR is accessible via:
|
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the |
Size Change: 0 B Total Size: 1.01 MB ℹ️ View Unchanged
|
TypeScript Errors ReportFiles with errors: 431 🎉 🎉 This PR does not introduce new TS errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, confirming it fixes the issue. Thanks @albarin!
By the way, I found another issue while following the testing steps of this PR: https://github.com/woocommerce/woocommerce-blocks/issues/7976. I don't think it's blocking because it's reproducible in trunk
as well, but will you be able to take a look?
I found a bug happening when saving a template in the editor that was using the
archive-product
from the DB as a fallback. I was causing to override thearchive-product
row on the DB, thus losing it as a fallback for the other templates using it also as a fallback.Testing
User Facing Testing
Site Editor
(/wp-admin/site-editor.php?postType=wp_template
), make sure you have no customizations on any template.Product Catalog
template, add some customization and save./shop
and make sure you see the customization you just did.product-category/clothing/
,/product-tag/music
,color/red
, depending on your store configuration).Product Catalog
template, meaning you see exactly the same customization you did on theProduct Catalog
.Site Editor
, click on one of the templates using the Catalog fallback (eitherProducts by Category
,Products by Tag
, orProducts by Attribute
).Site Editor
and make sureProduct Catalog
still has its original customization.Product Catalog
./shop
and make sure you see theProduct Catalog
customization.WooCommerce Visibility
Changelog