WooCommerce only showing 12 products of 26 in a category page

Hi

A client site that uses ThemeX and WooCommerce. On a sub category page only 12 out of the 26 products are seen. There is no pagination on the bottom of the page.

How do I get either the page to show all the products on the same page or have pagination show up so the user can click to go to the next page?

Edit 1:
I have resaved the permalinks. (No effect)
Changed Settings -> Reading Show amount of posts. (No effect)

System rapport:
`

WordPress Environment

Home URL: https://lillemegdesign.com
Site URL: https://lillemegdesign.com
WC Version: 3.1.0
Log Directory Writable: :heavy_check_mark:
WP Version: 4.8
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: :heavy_check_mark:
Language: en_US

Server Environment

Server Info: Apache
PHP Version: 7.0.19
PHP Post Max Size: 8 MB
PHP Time Limit: 90
PHP Max Input Vars: 9000
cURL Version: 7.53.1
OpenSSL/1.0.1e

SUHOSIN Installed: –
Max Upload Size: 8 MB
Default Timezone is UTC: :heavy_check_mark:
fsockopen/cURL: :heavy_check_mark:
SoapClient: :heavy_check_mark:
DOMDocument: :heavy_check_mark:
GZip: :heavy_check_mark:
Multibyte String: :heavy_check_mark:
Remote Post: :heavy_check_mark:
Remote Get: :heavy_check_mark:

Database

WC Database Version: 3.1.0
WC Database Prefix: wph7_
woocommerce_sessions: :heavy_check_mark:
woocommerce_api_keys: :heavy_check_mark:
woocommerce_attribute_taxonomies: :heavy_check_mark:
woocommerce_downloadable_product_permissions: :heavy_check_mark:
woocommerce_order_items: :heavy_check_mark:
woocommerce_order_itemmeta: :heavy_check_mark:
woocommerce_tax_rates: :heavy_check_mark:
woocommerce_tax_rate_locations: :heavy_check_mark:
woocommerce_shipping_zones: :heavy_check_mark:
woocommerce_shipping_zone_locations: :heavy_check_mark:
woocommerce_shipping_zone_methods: :heavy_check_mark:
woocommerce_payment_tokens: :heavy_check_mark:
woocommerce_payment_tokenmeta: :heavy_check_mark:
MaxMind GeoIP Database: :heavy_check_mark:

Security

Secure connection (HTTPS): :heavy_check_mark:
Hide errors from visitors: :heavy_check_mark:

Active Plugins (15)

ManageWP - Worker: by ManageWP – 4.2.19
Akismet Anti-Spam: by Automattic – 3.3.2
All In One SEO Pack Pro: by Michael Torbert – 2.4.13.2
Better Search Replace: by Delicious Brains – 1.3
Contact Form 7: by Takayuki Miyoshi – 4.8
Cornerstone: by Themeco – 2.0.5
Orbisius Quick Nav: by Svetoslav Marinov (Slavi) – 1.0.8
Really Simple SSL: by Rogier Lankhorst – 2.5.19
Slider Revolution: by ThemePunch – 5.4.5.1
WooCommerce Stripe Gateway: by WooCommerce – 3.2.1
WooCommerce: by Automattic – 3.1.0
Wordfence Security: by Wordfence – 6.3.12
WP Rocket: by WP Media – 2.10.5
WP Smush Pro: by WPMU DEV – 2.7.3
WPMU DEV Dashboard: by WPMU DEV – 4.3.1

Settings

API Enabled: :heavy_check_mark:
Force SSL: :heavy_check_mark:
Currency: NOK (kr)
Currency Position: left_space
Thousand Separator: .
Decimal Separator: ,
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)

WC Pages

Shop base: #18 - /shop/
Cart: #19 - /cart/
Checkout: #20 - /checkout/
My account: #21 - /my-account/

Theme

Name: X – Child Theme
Version: 1.0.0
Author URL:theme.co
Child Theme: :heavy_check_mark:
Parent Theme Name: X
Parent Theme Version: 5.1.0
Parent Theme Author URL:theme.co
WooCommerce Support: :heavy_check_mark:

Templates

Archive Template: Your theme has a woocommerce.php file
you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.

Overrides: x/woocommerce/cart/cart-empty.php version 2.0.0 is out of date. The core version is 3.1.0
x/woocommerce/cart/cross-sells.php
x/woocommerce/loop/loop-end.php
x/woocommerce/loop/loop-start.php
x/woocommerce/loop/pagination.php
x/woocommerce/notices/error.php
x/woocommerce/notices/notice.php
x/woocommerce/notices/success.php
x/woocommerce/single-product/related.php
x/woocommerce/single-product/tabs/tabs.php
x/woocommerce/single-product/up-sells.php
x/woocommerce/single-product-reviews.php

Outdated Templates: :x:Learn how to update
`
Edit 2:
I have also tried adding filters to the child theme functions file with no effect.
I also added the plugin: woocommerce-products-per-page but it looks like that is not making any change either.

Thank you!

Hello There,

Thanks for writing in and the very detailed post information. Hello There,

​To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

Thank you.

Hi RueNel

Here it is…

Btw I forgot to mention that it is this product that only shows 12 out of the 26:
https://lillemegdesign.com/shop/plakat-30x40/

Hello There,

Thanks for updating in! It turns out that you are using a shortcode. Please keep in mind that by default, only 12 items will display. If you want more, please make use of this shortcode instead:

[product_category category="plakat-30x40cm" number=26]

For more details about the WooCommerce shortcodes, please check it out here: https://docs.woocommerce.com/document/woocommerce-shortcodes/

Hope this helps.

Hi

I clicked to edit the raw content but the only content I see is:
[product_category category=“plakat-30x40cm”] so I added the number=27 to it.

I find it weird that I do not see the full content. Here is should show the preview but it only shows code inside the Raw Content area.

I save the page and I see no difference on the frontend.

Hi there,

I made a sample here https://lillemegdesign.com/2017/06/12/plakat-30x40/

It works :slight_smile:

Cheers!

Hi

I checked the post you created with:
[product_category category=“plakat-30x40cm” number=“27”]
and notice only 12 products out of the 27 listed.

Thanks for helping figuring this out!

ps
I also posted this support thread on the WooCommerce plugin support forum:

Hi @paal,

Happy to hear that it is okay already.

We’ll surely check your thread soon.

Thanks. :slight_smile:

Hi

It is not ok. I am now experimenting with WooCommerce shortcodes to get this working correctly.

Adding
[product_category category=“plakat-30x40cm” number=“27”]
Shows a lot of Raw Content on the right. Using a child theme for X theme.
(See screenshot above from earlier reply.)

Here is an example using the theme Twenty Seventeen (that shows raw content as a real preview):

The shortcode is also wrong and shows only 12 products. As I mentioned I am now experiementing with shortcodes to get it to work.

What I need is the following:

  • To see a real life preview of the Plakat 30x40 page as can be done with Twenty Seventeen but not with a child theme of X theme.
  • I also need to see more then 12 products on the category page of plakat-30x40cm. As there are 27 products on the page and all of these need to be viewed.

Hi There,

Please try using text element instead and then we have to add per_page parameter. 12 is default so we have to adjust it. I tried it on sample page just for checking. See this: https://screencast-o-matic.com/watch/cbiXfFlqVY
[product_category category="plakat-30x40cm" number="26" per_page="26"]

Hope this helps.

Thank you so much Lely!
You were able to find the solutions that I needed.

Thank you so very much!

You’re always welcome!

Cheers!

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