Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automated tests to verify specific product templates are rendered correctly #44354

Closed
Aljullu opened this issue Feb 5, 2024 · 0 comments · Fixed by #44363
Closed

Add automated tests to verify specific product templates are rendered correctly #44354

Aljullu opened this issue Feb 5, 2024 · 0 comments · Fixed by #44363
Assignees
Labels
focus: template Issue related to WooCommerce templates. team: Kirigami & Origami

Comments

@Aljullu
Copy link
Contributor

Aljullu commented Feb 5, 2024

Currently, there are two ways a store might have a different template for specific products:

  • The user can go to Appearance > Editor > Templates > Add New Template > Single Item: Product and create a specific template for a specific product.
  • The theme can have a template in the form of single-product-<product_slug>.html (related code).

We should add some automated tests to make sure this works and we don't introduce regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: template Issue related to WooCommerce templates. team: Kirigami & Origami
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant