On Product Category pages, when only showing the available subcategories (not products and subcategories), the pagination at the bottom is incorrect. For instance in the attached screen shot, there are 7 subcategories set to show on this product category page. The pagination at the bottom shows as if the product category page is set to shows both product and subcategories.
Note: Please see TICKET #1940216 as it has the current WordPress access credentials (sorry I forgot the Password and I don't want to change it as it will mess up that ticket). Also, this site is blocked to only known IP addresses. If you can not access it, let me know and I will add your current IP address to the White List.
Did our adding that cause this problem to happen? If so, you have my apologies for wasting your time! You are correct, for most clients that line is not needed. We added the pagination "pagination include" because this client wanted the pagination to appear at the top of the page, in addition to just the bottom of the page. They believe is is a usability issue. Our modification appears to work with product subcategory archive pages like:
I have removed our modified version of archive-product.php in the child theme for now and will talk to the client and see if I can talk them out of wanting to show the pagination at the top of the page. They are pretty strong willed, but it is our issue, not yours.
Again, I apologize for taking your time to look at this when our modification caused the issue.
This is awesome! It is a much better approach, cleaner, no issues and easier when we need to sync updates for newer theme versions from you guys. Thank you VERY MUCH. This is great!
On Product Category pages, when only showing the available subcategories (not products and subcategories), the pagination at the bottom is incorrect. For instance in the attached screen shot, there are 7 subcategories set to show on this product category page. The pagination at the bottom shows as if the product category page is set to shows both product and subcategories.
Note: Please see TICKET #1940216 as it has the current WordPress access credentials (sorry I forgot the Password and I don't want to change it as it will mess up that ticket). Also, this site is blocked to only known IP addresses. If you can not access it, let me know and I will add your current IP address to the White List.
THANKS!!!
Don
Hi Don,
I saw that you have overridden archive-product.php of WooCommerce and manually added this code:
(view large image)
May I know for what reason have you added this code? This is not necessary because Aurum will automatically add the pagination on each product page.
What this means is you are forcing the pagination to show.
Hi Arlind,
Did our adding that cause this problem to happen? If so, you have my apologies for wasting your time! You are correct, for most clients that line is not needed. We added the pagination "pagination include" because this client wanted the pagination to appear at the top of the page, in addition to just the bottom of the page. They believe is is a usability issue. Our modification appears to work with product subcategory archive pages like:
https://www.personalizedandprinted.com/shop-type-of-gift/wall-clocks/
but not with the main product category archive pages like
https://www.personalizedandprinted.com/shop-type-of-gift/
I have removed our modified version of archive-product.php in the child theme for now and will talk to the client and see if I can talk them out of wanting to show the pagination at the top of the page. They are pretty strong willed, but it is our issue, not yours.
Again, I apologize for taking your time to look at this when our modification caused the issue.
Regards,
Don
Hi Don,
No worries mate, you have absolutely right to ask for directions here so you don't waste our time, I love to help our clients.
So here is my solution to your problem, added this code to functions.php of child theme:
So now you have pagination on top of products on subcategory page:
https://www.personalizedandprinted.com/shop-type-of-gift/wall-clocks/
(view large image)
And here no pagination is shown:
https://www.personalizedandprinted.com/shop-type-of-gift/
(view large image)
So as you can see the solution to that is more "WordPress friendly" and doesn't have any "side effect".
I hope you like it.
Hi Arlind,
This is awesome! It is a much better approach, cleaner, no issues and easier when we need to sync updates for newer theme versions from you guys. Thank you VERY MUCH. This is great!
Regards,
I'm very happy to hear that
I wish you a great day!
Will mark this ticket as solved from here.