I’m trying to apply layouts based on product tags.
My logic was that if I created a WC Single Layout in the Pro theme, that Layout would only be applied to Product pages, not Product Category Pages or other ecommerce pages, such as Cart, Checkout or Account.
However, when I created two Layouts for WC Single products – one that was applied to products with a particular tag and the other applied to products without that tag – the layout was also being applied to all Product Category level pages that contained a product either with or without that tag.
I also noticed that the Layout was being applied to other ecommerce pages, such as Cart or Checkout.
The only other Layout I have created is a WC Archive Layout applied when Taxonomy equals Product Category.
Please let me know the proper conditional logic to apply the templates to the appropriate pages as described above.
I’ve been able to create a workaround by adding in logic so that those Layouts don’t apply to the Cart, Checkout and Account pages, but I’m confused as to why I should have to do that when the type of Layouts I’m created are of the type WC Single and WC Archive (why are these types of Layouts being applied to pages outside their page type).
Site link: https://bestbudseedbank.com


