Skip Navigation

[Resolved] Display Woocommerce product select by taxonomy custom on a WordPress page

This thread is resolved. Here is a description of the problem and solution.

Problem:
I'd like to use those pages to manage content and display the products.
The same as a catalog page but with text and content before the products.
How can I do that ?

Solution:
I have created 3 pages, changed Taxonomy Filter in the View and displayed products of related country on each of these:
https://www.hotsauce.ch/en/product-country-usa/
https://www.hotsauce.ch/en/product-country-germany/
https://www.hotsauce.ch/en/product-country-mexico/

I have used one same View to handle all these pages, you can create separate Views for each of these if you like to do.

Shortcode I have added inside each of these pages are like this, respectively:

For USA: [wpv-view name="product-country-usa" wpvcountry="united-states"]
For Germany: [wpv-view name="product-country-usa" wpvcountry="germany"]
For Mexico: [wpv-view name="product-country-usa" wpvcountry="mexico"]

Below is the screenshot for Product Country USA page for example.
https://cdn.toolset.com/wp-content/uploads/2017/09/567994-Product_Country_USA.png?x41285

This support ticket is created 7 years, 3 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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 19 replies, has 2 voices.

Last updated by fabioB 7 years, 2 months ago.

Assisted by: Noman.

Author
Posts
#567111

Hi,

I use Woocommerce to sell products.

I've install Type to create custom taxonomy.

For Example :

Taxonomy : Country
Term-1 : Germany
Term-2 : USA
Term-3 : Italy

I have pages for each terms

Page-1 : Germany
Page-2 : USA
Page-3 : Italy

I'd like to use those pages to manage content and display the products.
The same as a catalog page but with text and content before the products.

How can I do that ?

#567121

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

View and filter.png

Hi Fabio,

Thank you for contacting Toolset support.

1. Create a View for Products and add Query Filter >> Taxonomy filter. See attached screenshot.

2. Then insert the above view in your pages with the correct product category attribute, like this:

[wpv-view name="product-by-terms" wpvproductcat="term_slug"] 

Please make sure to change the View name and category slug/name in above shortcode.

Thank you

#567126
screen.png

I do not have the "Edit view" menu on my Toolset under-menu.

See the picture.

#567165

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

To create a View, please first install and activate Toolset Views plugin in your site, looks like you have only installed Types plugin so far. You can download and install Views plugin from your Toolset account: https://toolset.com/download/toolset-views/

After that you will see Views section in the menu to create a new View like I have done. Please check this video for more help on How to create a View:
hidden link

Thank you

#567189
screen2.png

I do not have the "Templates for this view" section in the "Edit View" section.

See screenshot.

I tried without this but on frontend I have the message "No items found"

#567256

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

1. Loop Wizard button.png
2. Use Content Template for the loop.png

1. You need to click on "Loop Wizard" button -- screenshot attached.
2. Then it shows you a checkbox to enable "Content Template" for this View -- screenshot attached.

This all is shown and explained in the Youtube video I have sent above. Please try to follow the video completely step by step while creating your View, so you can understand which parts belongs to a View and how to use them.

For more info you can read in this doc too: https://toolset.com/documentation/user-guides/digging-into-view-outputs/

Thanks

#567442

OK... it's complicated but it looks possible.

- I didn't find how to display the product title.

- And when I activate the Views plugin and the Woocommerce Views plugin I have huge graphic bug on my website. I can't see the product anymore on frontend.
I tried with my actual theme (Atelier) and also with my next one (ShopIsle PRO), but the bug is still there.

#567462

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello,

1. To display product title, you need to insert “Post title with link” field in your content template, as I have shown in my last response. (Screenshot: 2. Use Content Template for the loop.png)

2. This is not a bug but there is mistake in your WooCommerce Views settings. Please follow this doc to understand how WooCommerce Views work:
https://toolset.com/documentation/user-guides/getting-started-woocommerce-views/

Thank you

#567488

OK, I set the Woocomerce Views as it's shown on your tutorial.

So now:

- I still have graphic bug on my products.
All my pages are listed between the end of the product page and the footer.

- I don't know how to remove the magnifying glass that come with the product image.

- I don't know how put a link to the product on the image.

- I don't know how to show the turning page at the end of the page (to show more than 10 products)

#567499

- You can add that my products still doesn't appear with my new theme (ShopIsle PRO), even after I set the Woocommerce Views plugin.

#567575

In fact the products are not visible with my old theme too. I though there were but no.

Here is my actuals problems :

- I still have graphic bug on my products when the Woocommerce Views is active.

- I don't know how to remove the magnifying glass that come with the product image.

- I don't know how put a link to the product on the image.

- I don't know how to show the turning page at the end of the page (to show more than 10 products)

It seems that there are a lot of bugs in your plugin.
You send me a lot of tutorial but they didn't help me.

#567579

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello,

1. I don't know how to remove the magnifying glass that come with the product image.
>> Its different issue, please create separate ticket for it.

2. I don't know how put a link to the product on the image.
>> You can manually link the image like this:
https://toolset.com/forums/topic/woocommerce-product-image-link/#post-438110

3. I don't know how to show the turning page at the end of the page (to show more than 10 products)
>> You can add pagination in the View, please follow this doc:
https://toolset.com/documentation/user-guides/views-pagination/

4. My products still doesn't appear with my new theme (ShopIsle PRO), even after I set the Woocommerce Views plugin.
>> Please kindly open a new separate ticket for each separate question. This will help other users with similar problems to find solutions when searching the forum, I am not allowed to handle multiple issues in the same ticket as per support policy. https://toolset.com/toolset-support-policy/

I highly recommend you to please go through our step by step WooCommerce Views tutorials, so you can understand how to do all these things: https://toolset.com/learn/create-an-ecommerce-wordpress-site/

Thanks

#567597

OK so keep focus on my first question. "How can I do that ?"

Actually you still not help me.

You send me a lot of tutorial. I reed them, but it still didn't work. So focus on my question Noman, "How can I do that ?"

#567668

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

To debug this further, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and check the issue.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

✙ Please add the Links to the [View, Page] Edit Screen.

I will just setup the first question you had and the instructions I provided in my very first reply and see if it works or not. Rest questions you can ask in separate tickets afterwards.

Thank you

#567949

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for providing login info and more details. I am working on it and will update you with the results soon.

Thanks