Skip Navigation

[Resolved] Displaying WooCommerce Category descriptions

This support ticket is created 6 years, 6 months ago. 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.

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

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 3 voices.

Last updated by taih 6 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#916792

I am having a bit of trouble with displaying the woo commerce category description. I have created a layout and a view within that to display the category description.

It seems to work on some pages: hidden link
But not on others, this page shows a parent description (from /womens_clothing/), not of the current category:
hidden link

the view settings are:
Content Selection: Taxonomy>Product Categories
Display:1
Query Filter: Taxonomy term filter
Taxonomy is set by the current post
Loop: [wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-taxonomy-description]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"][/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

I am stumped, any direction would be welcomed. Thanks a bunch.

#916911

All Product Category Descriptions, if added the single terms, do display properly in a Toolset Taxonomy View for that taxonomy, when I test this locally.

It must be something with Descriptions not saved properly, or, with some values that may break the output.

As well, the View, if inserted to a Page, should have a Query like:
"Set by the page where this View is inserted"
(this will take the ID of the Post that acts as "container" for this View.)

If this View instead is within another View or any loop, then you use "Set by the current post".

In any case this worked fine locally.
I suggest, to test this after re-saving the problematic Terms, and as well trying with some new terms (it may be that some are corrupt and need to be recreated).

Especially since you point to singe terms not working fine, I think those have either corrupt or wrong/none values saved for the Term's Descriptions.

If that does not help, please can you let us have a look on the site or could you elaborate the exact steps you took to get to the issue?

#918498

This problem is still happening. I rebuilt the view and am now thinking that something has happened recently to corrupt the display or layout somehow. I am unsure of when it happened, maybe during an update but it was working previously.

The categories do indeed have the content, just the view is not showing the right one.

For example: hidden link displays not the archery category text, but the text of a subcategory: archery gloves.

Should be displayed for the archery category description:
---- this is just a piece for reference---------
<h1>As archery enthusiasts ourselves, we enjoy having archery gear that looks spectacular with performance to match.</h1>
<h2>We don't just sell quivers to hold your arrows or bow, or archer gloves that just look "nice". We design and build them to hold up to heavy use and look EPIC.</h2>
-----------------------------
Furthermore I have notice that one of my layouts may be corrupted in the same way. The homepage layout doesnt display the "content" of the home page, but shows a different content completely unrelated. (I have removed the "page content" block from the home layout and just added a wysiwyg with the content I wanted to show. (just for now). I'll add the content block back if you want to see.

Do you have any ideas what would cause this or any suggestions? I have built several sites with toolsets and its been a dream, but I don't have an inkling of an idea what to check.

#918600

Hello,

The problem you mentioned above is abnormal, please check these:
1) Deactivate other plugins and switch to wordpress default theme 2017, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below "private detail box", I need to duplicate same problem and debug it in my localhost, thanks.

#919117

Thanks for the details, I am downloading the files, will feedback if there is anything found

#919118

OK, Thanks. Let me know if you need anything else from me.

#919153
archery.JPG
cell.JPG
we-are.JPG

Q1) the homepage for reference:hidden link
The text block "We are tailors..." is a temporary wysiwyg box that has the content that should be displayed.

I have tested it in my localhost, it does display a text block "We are tailors...", and it is displaying in your website too, see screesnhot we-are.JPG

And the home page is a wordpress page, it is not a woocommerce category archive page, is it related with the original question of this thread?

If you are going to display the post content, you will need to edit the layout "Homepage", replace the visual editor cell (cell.JPG) or row 7 with a post content cell:
https://toolset.com/documentation/user-guides/the-content-cell/

And I don't find the text "When going out on.." in the home page, same as your website:
hidden link

Q2) product categories,
hidden link

There isn't similar problem in my localhost, it does output text "As archery enthusiasts ourselves, we enjoy having archery gear that looks spectacular with performance to match.", see screenshot archery.JPG

So it should be a compatibility problem of your website, if you still need assistance for it, please provide a test site with the same problem, I need a live website to test and debug

#919417

I recreated all layouts, page, view, and category. Now its fixed. anyhoo thanks for the help.