This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Store Editing Templates: Currently using the incorrect slug for WooCommerce #5423
Labels
focus: FSE
Work related to prepare WooCommerce for FSE.
focus: template
Related to API powering block template functionality in the Site Editor
type: bug
The issue/PR concerns a confirmed bug.
Describe the bug
Amongst the code for the WooCommerce Store Editing Templates we are using the id/slug
woocommerce
orWooCommerce
for our block templates. We've recently discovered the correct value should possibly bewoocommerce/woocommerce
and have noticed a number of issues because of this:/wp-json/wp/v2/plugins/WooCommerce
and getting a 404 response, when the should be going to/wp-json/wp/v2/plugins/woocommerce/woocommerce
.wp_terms
we're saving this incorrect slug aswoocommerce
(undername
andslug
columns) when it should bewoocommerce/woocommerce
(name) andwoocommerce-woocommerce
(slug).As a result of this, if we were to simply make some code amendments and update our usages to use the correct value, this means that users who have already modified their WooCommerce templates would no longer see them listed in the Templates list view, and they would also not be found when fetching them to render on the frontend because we'd be looking for the new value (
woocommerce/woocommerce
) when searching the DB for templates saved against the old value (woocommerce
)Related #5420
Related #5412
Related #5375
Related #5327
The text was updated successfully, but these errors were encountered: