Answer the question
In order to leave comments, you need to log in
How to solve 404 error when changing product quantity per WooCommerce page?
The output of products is divided into 3 pages - 1 product per page (3 products in total). At the bottom there is a drop-down list where you can select the number of products on each page. The problem is this:
Answer the question
In order to leave comments, you need to log in
If there, when choosing the number of records per page, the ?prod-count=5 parameter is simply added to the current URL and the browser is sent to this new URL, then the easiest way is to hang the handler for this get request somewhere on template_redirect. See if there is a prod-count GET parameter, if so, look at which page you are on, how many results WC_Product_Query has in total, how many prod-count asks to display. You think, and if it turns out that page X will not exist for you, redirect to the one you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question