PRO - WooCommerce [sale_products] isn't showing all of my items on sale, limited to 12 items

Hi friends,
We’re having a store-wide, 50% off memorial day sale at smartechproduct.com. However, when I use the shortcode [sale_products] on the DEALS page, only 12 items appear. How can I make it so that all of my items appear?
With thanks,
Andy

Hey Andy,

I checked your deals page and saw that there are more than 12 items. Looks like you have solved the issue. Also, you just might have missed something in the shortcode setup. Please review the WooCommerce Shortcodes Documentation.

Thanks.

Dear @christian_y ,
Thanks for checking. I’m using [products] as a catch-all shortcode for this sale. Ideally, we’d use [sale_products], but the 12 item limit is imposing.
With thanks,
Andy

Hi again,

Default number of products to display is 12 if you don’t set the limit attribute in the shortcode, please use -1 to show all for example:

[sale_products limit="-1"]

For other attributes, please see https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-7

Hope this helps!

1 Like

[sale_products limit="-1"] only shows 13 products of 22. I replaced it with [products] for now.

Hi again,

Yes [products] shortcode will do the trick as it replaces the need for other shortcodes.

Cheers!

Again, this is not ideal. I will have to change the shortcode after the sale ends.

Hi @taotaoli

I’m wondering how many products it will display if you used the limit parameter set to a high number, something like:
[sale_products limit="50"]

Also, is this issue reproducible on the default WordPress theme or not? I understand that you don’t want to activate the default WordPress theme on a live website even for a second, so I suggest installing “Health Check” plugin and enable “Troubleshooting mode”. By doing so you will have the default WordPress theme activated and all other plugins disabled (you should be able to activate WooCommerce plugin after that). The good thing about “Heath Check” plugin is that it’s developed by WordPress team and it only affects your logged in session so that other visitors won’t be affected.

Following this method will identify the source of the problem if it’s originating from our themes or WooCommerce plugin.

Thanks.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.