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

Provide a way to easily switch to the blockified Single Product Template #8208

Closed
Tracked by #8054
gigitux opened this issue Jan 16, 2023 · 1 comment · Fixed by #8324
Closed
Tracked by #8054

Provide a way to easily switch to the blockified Single Product Template #8208

gigitux opened this issue Jan 16, 2023 · 1 comment · Fixed by #8324
Labels
focus: FSE Work related to prepare WooCommerce for FSE.

Comments

@gigitux
Copy link
Contributor

gigitux commented Jan 16, 2023

We have to provide an easy way for the merchant to switch to the blockified Single Product Template. As it is suggested in #8066, we can use the button on the current Classic Product block:

image

@gigitux gigitux added the focus: FSE Work related to prepare WooCommerce for FSE. label Jan 16, 2023
@kmanijak
Copy link
Contributor

Part of the job has been done within #8248. While working on the blockifying Product Archive template, there's already established mechanism for the conversion of the classic template to blocked version.

In scope of this task is to work on the function in assets/js/blocks/classic-template/single-product.ts file, while preserving the interface. You can base the work on assets/js/blocks/classic-template/archive-product.ts file.

(Keep in mind those are links to the PR in review, so it's still a subject to change, but the overall strategy should be preserved)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
focus: FSE Work related to prepare WooCommerce for FSE.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants