Can't assign woocommerce archive layout

Hi there,

I’m trying to assign an individual woocommerce archive layout for each product category.
It’s working for 3 out of 4 categories but the last one isn’t working although it contains products.
Also checked priorities with no success.

Hi @ArtOfSpring,

It seems that you have assigned the Shop and Category page layout separately with the same Priority. I went ahead and set the Priority of the Category layout to -1 and it works.

Thanks

Hi @tristup thanks a lot!

Hi @ArtOfSpring,

You are most welcome.

Sorry I tried to do the same for the english version but it doesn’t work. Why is the priority interfering anyway when each layout is assigned to a single category archive?

Hi @ArtOfSpring,

I would suggest you go through the following article on the Condition and Assignment.

Hope it helps.
Thanks

Hi @tristup I did that, it’s stated there: “The Priority comes into play if you have two assets that might potentially overlap in some instances.”

But I don’t see the overlapping. How can the shop layout overlap the product category layout?

Hi @ArtOfSpring,

The Layout assigned to Shop will be assigned to other WooCommerce archive pages like categories and tags. You need to specify the priority if any different layout you need to assign for Archive pages.

Thanks

Ok, so now I have the same priority in the english version (shop layout priority 5, product category priority -1) but still in the english version the shop layout is assigned the product category archive.

Hi @ArtOfSpring,

If you have set the Lesser priority to any Layout that will be used over the Higher priority layouts. I have checked and found that the Shop page of the English version is using the English version Shop page Layout i.e. not the Category layout.

If you click into the Edit Layout option from the Shop page it will open the respective version of the Shop page layout.

Thanks

Hi @tristup, yes it’s working for the shop in both languages but not for the product category.
The English product category “Special Edition” is still using the shop layout although the priority settings are the same as for the German version (where it works).

Hi @ArtOfSpring,

While clicking in the Edit Layout option from the Special Edition page it opens the Special Edition layout, which shows that the Special Edition layout is assigned to the page.
I have checked the Layout you mentioned in the secure note, and found the issue you described. There might be some different reasons behind your issue, I would like to suggest troubleshoot the following common issue to help us to recognize the reason.

1.Plugin Conflict
2.Theme Update related issue
3.Child Theme Related issue
4.CSS/JS Customization

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If that doesn’t help, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access in the secure note including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi there,

  1. tested
  2. tested
  3. tested
  4. tested
    …already with no success.

This is already a staging server and I already gave you full access.

So still two things are bothering:

  1. Can’t edit english version of layout 1051 (Kimono Dress)
  2. In the English translations the four product category layouts are not assigned correctly in the frontend (although they have the same settings and priorities like in the base German version).

https://test.lemanja.de/en/product-category/kaftan-dress-en/

  • uses the “shop” layout instead of “kaftan dress” which is assigned

https://test.lemanja.de/en/product-category/kimono-dress-en/

  • uses the “kaftan dress” layout instead of “kimono dress” which is assigned

https://test.lemanja.de/en/product-category/cape-dress-en/

  • here it works

https://test.lemanja.de/en/product-category/special-edition-en/

  • uses the “shop” layout instead of “special edition” which is assigned

Hi Philipp,

Layouts are assigned properly now in both languages, the caching is heavily involved in the issue so I needed to clear the Kinsta cache consistently.

The layout for Kimono Dress (English) seems to be corrupted, so I needed to duplicate (Kimono Dress (bck)) that layout and re-assign.

Hope it helps,
Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.