Back to Reports

WooCommerce Legacy Assets Not Enqueued on Custom Single Product Template

open Sep 19, 2025 PluginWoocommerce

Summary:

This bug report describes a compatibility issue between Gutenberg 27.1 RC and WooCommerce. The core problem is that legacy JavaScript assets, specifically the Flexslider library used for the Product Image Gallery, are not being enqueued when a user creates and activates a custom Single Product template.

The issue is caused by the Template Activation PR in Gutenberg, which appears to change how template assets are loaded, breaking the dependency chain for these legacy scripts on duplicated templates. This results in a broken user experience, as the product image gallery is non-functional and displays incorrectly on the frontend.

The impact is that merchants using the new template system cannot create custom Single Product templates without breaking a core feature of their store, potentially affecting sales and customer experience.

How to Replicate:

  1. Ensure Gutenberg 27.1 RC is enabled.
  2. Navigate to Editor > Templates > WooCommerce and verify the default Single Product template is active.
  3. Visit a product page on the frontend and confirm the Product Image Gallery displays correctly.
  4. Return to the editor, duplicate the Single Product template, and activate the new custom template.
  5. Visit the product page on the frontend again to observe that the Product Image Gallery is now broken.