WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Product Category Pagination (7 posts)

  1. penncoremedia
    Member
    Posted 10 months ago #

    Hello,

    I am setting up a basic wordpress/woocommerce website using the theme Mystile. I am running into a problem with pagination.

    The pagination works fine if you view my products from the Shop (/shop) page, but when you are in a product category page (/shop/category) the pagination no longer works. The pagination appears, but you go to the next page you get a 404 page not found. The pagination seems to be directing to the correct link (shop/category/page/2/), but it is still coming up with a 404 error.

    Again this works fine under the /shop page when directed to /shop/page/2, but under product categories it does not.

    I have not edited any of the core php files, any ideas?

    Thanks

    http://wordpress.org/plugins/woocommerce/

  2. penncoremedia
    Member
    Posted 10 months ago #

    Hi just wanted to follow up for anyone who ever may search and come across this thread that I have found a solution to this problem by inserting this code at: http://pastie.org/pastes/5170528/text into the functions.php.

  3. penncoremedia
    Member
    Posted 10 months ago #

    I take it back, this did not work. I was accidentally looking at just my /shop page.

    Does anyone have any solutions?

  4. jennybeaumont
    Member
    Posted 2 months ago #

    Heya - did you ever get this sorted? am running into the same thingā€¦

    thnx,
    -jennyb

  5. penncoremedia
    Member
    Posted 2 months ago #

    Hi Jenny,

    The problem with me at least was that I was using the wrong link to display my product categories.

    For example in my submenu, I had a link to the Candy section, going to /shop/candy and pagination was not working. What I should have had, and fixed it to was, /product-category/candy.

    Hope that helps.

  6. jennybeaumont
    Member
    Posted 2 months ago #

    Same! Took me a while, but I finally just changed the settings to display sub-categories, and that's where I saw that I had been trying to force the shop base on category pages. Silly me! Though I do wish that were possibleā€¦*dreams on*

    thanks for writing back!
    best,
    -jennyb

  7. jberg1
    Member
    Posted 1 month ago #

    Eureka!
    Changing
    /shop/category-name
    to
    /product-category/category-name

    works like a charm.
    Thank you!

Reply

You must log in to post.

About this Plugin

About this Topic