Thread Starter
theo93
(@theo93)
Also, how can i display only the products with discount >20% ?
Best regards
Hi @theo93,
With WooCommerce 3.2 the shortcodes were streamlined and many of them rolled into one called [products]
.
You could set up a shortcode like this:
[products on_sale="true" limit="-1" paginate="true"]
That one should shot all sale products in a paginated list. You can learn more about this shortcode at https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-6
To make it show all sales with a greater than 20% discount, you could add a tag called “discount” to all products that have that large of a sale and then filter the shortcode like this:
[products on_sale="true" limit="-1" paginate="true" tag="discount"]
Now the list would only show on-sale products that have that tag.
Thread Starter
theo93
(@theo93)
Hello @3sonsdevelopment,
I used this shortcode, but still it doesn’t display the pagination.
Best regards
Hi @theo93,
If you don’t see pagination that would typically be the result of not having enough products or pagination being overridden by something on your site (plugin or theme code).
Double check that you have enough on-sale products for pagination to happen. If you do and it still doesn’t paginate, then temporarily disable all plugins except for WooCommerce and switch to one of the default themes, like Twenty Nineteen.
Then check on the pagination again. If it works, then turn everything back on, checking after each one until it stops. At that point, you’ll know where the trouble is coming from.
Cheers,
Hey @theo93,
It’s been a while since we last heard from you so I’m going to close this thread. If you’re still having trouble, please open up a new one.
Thanks
Thread Starter
theo93
(@theo93)
Hi @theo93,
I would suggest reaching out to the theme author and see if they can update the theme so that it doesn’t remove those.