Skip Navigation

[Résolu] Product Archive Template File sets to plugin folder not child theme

This support ticket is created Il y a 4 années et 9 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Marqué : 

This topic contains 7 réponses, has 2 voix.

Last updated by Shane Il y a 4 années et 9 mois.

Assisted by: Shane.

Auteur
Publications
#1293043

I am trying to:
Set the Product Archive Template File back to my child theme file. But instead, it reverts back to Woocommerce plugin template.

I expected to see:
Woocommerce templates using child theme overrides.
/home/website/public_html/wp-content/themes/childtheme/woocommerce/archive-product.php

Instead, I got:
Set to /home/website/public_html/wp-content/plugins/woocommerce/templates/archive-product.php

#1293091

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Paul,

Thank you for contacting our support forum.

Could you try structuring the directory name as how woocommerce have it ? You're missing the templates folder.

Try this and let me know.

Thanks,
Shane

#1296533

Sorry Shame that is not the way woocommerce works.

Woocommerce overrides inside a child theme follow this structure. Moving files into a /template/ folder makes everything not work. Per WooCommerce documentation.

My issue still stands.

Thank you

#1297761

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Paul,

Are you trying to set this in out Woocommerce view plugin ?

Will you be modifying the template file itself in the child theme ?

Please let me know so that I can better advise on this one.

Thanks,
Shane

#1297941
Screen Shot 2019-07-22 at 9.05.32 AM.png

Toolset plugin is forcing me to edit directly to the woocommerce plugin files. This is wrong. I should be able to override WooCommerce templates via child theme. Toolset is not allowing this.

#1299949

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Paul,

You are actually not overwriting the template file itself.

All you're doing is selecting a woocommerce template that views will hook into. This won't make any changes to the template file itself.

Is it that you're worried about losing changes when woocommerce updates?

Please let me know.

Thanks,
Shane

#1301821

I want child theme overrides to work as intended. Please help me fix this. Do you need login details?

#1302967

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Paul,

Before I go into further details with this.

Is it that you are going to make edits to the archive-product.php file itself ?

Please let me know.

Thanks,
Shane

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.