V
V
Valery232019-05-04 13:20:30
PHP
Valery23, 2019-05-04 13:20:30

How to display full product content in woocommerce category?

By default in WordPress, the woocommerce plugin displays products on category pages with the following content: thumbnail, title, price (and sometimes an "Add to Cart" button). The task is such that the categories would display products with content completely taken from content-single-product.php. I managed to correctly display (completely all content) through the shortcode:
[product_page id="1664"]
[product_page id="1665"]
but this is on a separate page, not on a category, and this is very inconvenient, since there will be a lot of products . Can you please tell me how to implement this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pychev Anatoly, 2019-05-04
@pton

Edit the template or replace the output of a specific value with hooks
Which hook to use - you need to look in the product output template on the archive page.
This file is \plugins\woocommerce\templates\content-product.php
Or here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question