Skip Navigation

[Resuelto] filter onsale products

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

The customer wanted to use views to create a view to display only the Woocommerce products that were on sale.

Solution:

You are actually able to add a query filter for this.

Just go to your view and go to the query filter section and add a new filter.

The filter should be a custom field filter called "Product on Sale Status"

Then you should set it to a constant of 1.
This should then allow your view to display only the products that are on sale.

This support ticket is created hace 7 años, 11 meses. 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)

Etiquetado: 

This topic contains 3 respuestas, has 2 mensajes.

Last updated by christerA hace 7 años, 11 meses.

Assisted by: Shane.

Autor
Mensajes
#401899

Hi.
I want to filter a View and only show WooCommerce products that are "On Sale".
Like the WooCommerce shortcode [sale_products per_page="12"]
In "Query Fliter" i have chosen "Product On Sale Status", but then i don't know. I feel i have tried every combination of the other settings.
What settings are correct?

#401930

Shane
Supporter

Languages: Inglés (English )

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

Screen Shot 2016-05-26 at 8.50.50 AM.png

Hi Christer,

Thank you for contacting our support forum.

You should be able to achieve this by adding a query filter to your view similar to the one in my screenshot.

Please let me know if this helps.
Thanks,
Shane

#402071

Hi.
I discovered something.
If i use Toolset WooCommerce Views 2.6.2 the normal Woocommerce shortcodes stops working, like:
[sale_products per_page="12" columns="4" orderby="menu_order" order="ASC"]
The thumbnail and Title links don't work, no links at all.
Add to Cart link is still working.

When i go back to 2.6.1 it works again.

#402198

Hi.
When i reinstalled WooCoommerce Views and rescanned the filter database it worked.
And concerning WooCommerce shortcodes, i'm not using them in this site, so we can close this ticket now.
Thanks.

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