Skip Navigation

[Gelöst] WooCommerce Views: Missing functionality in Product Archive Template File

This support ticket is created vor 5 Jahren, 9 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Christian Cox vor 5 Jahren, 9 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#1210069
toolset-missing-product-archive-flatsome-selections.png

In WooCommerce Views > Product Template File > i can SELECT PHP template of my theme Flatsome which will be used for WooCommerce single-product pages

!!!
In WooCommerce Views > Product Archive Template File > i CAN NOT(!) SELECT PHP template of my theme Flatsome which will be used for WooCommerce product archive pages

#1210252

I believe that additional theme templates are not supported here, but let me ask my 2nd tier support team for some more information about this. I was under the impression that you can choose the WC Views template if you want to style the shop page using WC Views, or you can choose the other default option if you want to use your theme's design with a fallback to the default WC design. If you want to affect the PHP template and also use WC Views, then you could copy the theme's archive-product.php file into your child theme's woocommerce directory and make your modifications there. I'll let you know if I get some additional information.

#1210412

Hello Christian,
WooCommerce product archive pages is not a Flatsome PHP-Theme Template, it is a Woocommerce Template! And why Toolset offer this for the product-detail page and not for the listing-page (WooCommerce product archive pages)?! Flatsome Theme ist the most sell theme in Themeforest (over 86.000 sells) so it would brings you a lot more new clients?!

#1210567

I was incorrect - third-party theme template files are supported here. I asked for some information about how to set up a theme archive template file so it can be selected, because there is currently no documentation about that on our site. I was told that since Flatsome's archive-product.php file does not call 'have_posts()' or 'the_post()' or 'loop()', you can add this code to your child theme's archive-product.php file so it will appear in the list of options:

// - loop - this comment will force the archive template to show up in woocommerce views

In my local testing, I added this comment just after the line

get_header( 'shop' );