I had the same problem but on a custom archive-product.php page which contains a custom query to get my products with only 10 results per page.
I had 404 pages on shop page and categories page with the second page of pagination.
After analysis, I found that the main query of WooCommerce asks for 16 results but I had only 12 products in my database. So the main query returns nothing.
To change that, I need to do in admin : Appearance > Customize > WooCommerce > Product Catalog and change the value to 1 for Products per row and Rows per page.
With that the main query returns always 1 result and I had no more 404 pages.
I hope that will help you or another.
Source : https://docs.woocommerce.com/document/change-number-of-products-displayed-per-page/
Related Posts:
- Display All Products by Category with WooCommerce
- How to get permalinks with category base working with sub-categories
- Woocommerce get category image full size
- 404 Error On Category and Tags Pages
- Programmatically create product category and add thumbnail in woocommerce
- Reflect nested categories in appearance > menus
- Create product category and keyword search form in woocommerce? [closed]
- How do I edit pre_get_post for the category the user is currently in?
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- How to select product category while adding new product in woocommerce? [closed]
- Hide uncategorized products from the shop page
- New categories are now going to 404s
- Add Product categories to WordPress menu without losing hierarchy
- Custom Category/Subcategory structure
- Remove Parent Category from Child Category URL
- Display “add to cart” button on every listing in product category page?
- Categories not working – 404 Not found error
- Getting categories id for all products in cart
- Get woocommerce catogry
- Woocommerce category show subcategories only/omit posts for specific category
- products nested by subcategories in a current category archive
- WordPress subcategories return 404 in custom template
- WC 3.x Get categories from variable product of the cart
- need to add custom field in more products
- How to redefine the sorting of product categories by menu_order?
- Pagination not visible on woocommerce’s category page
- Best way of getting WooCommerce category path
- Get parrent category name
- Sorting category products not working
- Change thumbnail image depending product category
- Unwanted Duplicate Product Categories in WooCommerce
- Woocommerce custom category pages
- Customize WordPress widget – Product Category
- Same base for category and post
- Categories are not listing their respective products
- Display single category name in woocommerce loop
- Building Menu from Woocommerce Product Categories
- Include WooCommerce product to all child categories
- woocommerce related products by specific categories [closed]
- List just subcategory and products of active category page in Woocommerce
- Display all product tags associated with a specific product category
- Category url generate 404 error
- Custom Permalink with child categories creating 404
- Custom tax_query filter not working for Woocommerce product categories
- Custom page category taxonomy 404
- How do order product categories – on a parent category page – in Woocommerce?
- Adding custom ID field to the categories
- Remove any product that is featured from regular display loop [WooCommerce]
- How to display product with two condition, category and brand taxonomy
- Category page returns 404 error
- Template for product-category page [closed]
- Need help with major category and permalink re-organization
- displaying the last product comment in the woocommerce category
- Woocommerce only display child category when parent is checked (on add new product page)
- category description not showing in my woocommerce
- Conditional label Woocommerce archive [unsolved]
- Show audio player only in specific post type category
- How to make product image inherit from category image
- How to set acf color field as background color to product category
- How to target all woocommerce categories that don’t have any subcategories in them?
- In if…else condition, the else statement shows even if if statement is correct
- How can I display all products from all categories on one page with woocommerce?
- How to add all subcategories as submenu in WordPress menu
- How to edit woocommerce sub-category page
- in post content shortcode works, but hardcoded in same page template doesn’t?
- WordPress category title not update in navigation menu
- selecting categories that have products with tag/category
- Restrict retrieved terms by category?
- How to display custom fields as table in Woocommerce
- How do I merge WooCommerce categories with the same name?
- Woocommerce Category Sort Dropdown
- Woocommerce: all products of all categories instead products of one category
- How to delete WooCommerce categories in bulk that only have one product
- Product Category page showing all products
- How to load terms of a custom taxonomy of a product in woocommerce cart page
- Subcategory Page 404ing
- product_cat image url from database
- How to get WooCommerce Product Categories and its children’s children?
- Woocommerce change tag_id to name
- WooCommerce – Get products from category right before deleting category
- Categories and Tags Conflict after Woocommerce Installation
- Dynamically creating content on custom URL without getting 404
- 404 error when i try to search by category or by tag
- Category menu that filters out empty categories
- htaccess redirect for all categories converted to tags now showing 404
- Taxonomy for custom post type not found
- WordPress category gives 404 after moving to a different domain
- Custom Woocommerce Category view
- Displaying categories and subcategories without link
- WooCommerce category display in custom page
- Sorting Woocommerce products by category and attributes
- Woocommerce custom taxonomy order
- Update wordpress menu with woocommerce products
- How to get Woocomerce categories count
- Woocommerce – Display product category of product in Orders page
- Changing Woocommerce categories programatically
- Get all categories
- Categories and products woocommerce wordpress
- Function to reference post meta in place of category Woocommerce
- Restricted category in Woocommerce [closed]