Pagination not working for filtered attributes

This topic has 15 replies, 4 voices, and was last updated 6 years, 9 months ago ago by Olga Barlow

  • Avatar: thisisbolo
    thisisbolo
    Participant
    February 20, 2018 at 18:22

    After the recent update, the pagination for filtered attributes doesn’t work anymore. Go to store, select an attribute, i.e. filter by brand, use the pagination menu, it returns 404

    Please, contact administrator
    for this information.
    14 Answers
    Avatar: thisisbolo
    thisisbolo
    Participant
    February 21, 2018 at 03:49

    It’s seems like ‘?et_ppp=12’ at the end of the URL is causing the 404. How do we fix this?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 21, 2018 at 12:44

    Hello,

    We’ll fix it in next theme update that will be released tomorrow. If you provide me FTP access we’ll be able to fix it for your before the update.

    Regards

    Avatar: nymphbyte
    nymphbyte
    Participant
    February 21, 2018 at 17:34

    Hello!

    Can you please send me the code (or point on what to replace) so I can change it before the tomorrows update?

    Avatar: identidade
    Santhatela
    Participant
    February 21, 2018 at 17:55

    Same here Olga.

    I have tested woo 3.3.2 and all miniatures were square on xstore (i use rectangles) so I reverted to 3.3.1 and expected the theme update 🙂

    Please send-me fix for pagination, to prevent customers from having problems.

    Thanks

    Rudimar

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 22, 2018 at 11:12

    Hello,

    To fix the pagination you need to change code in xstore/framework/woo.php
    Like on the screenshot
    https://prnt.sc/ii6utj

    Regards

    Avatar: thisisbolo
    thisisbolo
    Participant
    February 22, 2018 at 15:42

    Thanks Olga. Another issue I’ve encountered on the shop page is when you choose sorting order I.e. price high to low, and then move to the next page in the pagination, it doesn’t save your sort order and reverts back to default. Can this be fixed in the upcoming theme update?

    Avatar: nymphbyte
    nymphbyte
    Participant
    February 22, 2018 at 20:35

    Olga, now the main product catalog page doesn’t work. Filtered category pagination is fixed, and main product catalogue page has the same issue filtered category product page had?

    The theme is 4.20, and woocommerce 3.33

    Avatar: thisisbolo
    thisisbolo
    Participant
    February 22, 2018 at 21:58

    Did you save a backup of your previous theme?

    Avatar: nymphbyte
    nymphbyte
    Participant
    February 22, 2018 at 22:24

    No, but i modified your code to make it to work.

    Your condition is not correct – it has to be 2 not 0, because ( count($_GET) is not returning 0 in any case.

    if( count($_GET) > 2 ) {
    $selected_val = ‘&et_per_page=’.$selected_val;
    }
    else {
    $selected_val = ‘?et_per_page=’.$selected_val;
    }

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 23, 2018 at 10:27

    Hello, @nymphbyte

    If set 2 then you’ll get the problem with the Plain permalinks type. Also, every permalinks type (except Plain) is returning 0 before you use pagination.
    We don’t have problems with the default shop page. So, can you, please, provide us with admin panel and FTP access to the site where you have it?

    Regards

    Avatar: nymphbyte
    nymphbyte
    Participant
    February 23, 2018 at 11:18

    Hello Olga,

    I am sending you the site/FTP credentials. I have the issue on two sites with different licences.

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 23, 2018 at 12:43

    Hello,

    FTP access is incorrect
    Response: 530 Login authentication failed

    Also, describe your steps to reproduce the error step by step because I don’t have any 404 page if use pagination.

    Regards

    Avatar: nymphbyte
    nymphbyte
    Participant
    February 23, 2018 at 12:53

    Sorry Olga, the username is incorrect because i pointed the first account to a different folder.
    You are not getting any error because i set the condition to 2 instead of zero in woo.php file.

    If you revert to your original code you will be getting 404 on product page.

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 26, 2018 at 10:02

    Hello, @nymphbyte

    Your problem is caused by Super Store Finder plugin. This plugin adds 2 empty values of the parameters http://prntscr.com/ijttqy It’s wrong.

    Contact plugin author and tell them that better use variable to avoid problem for example
    http://prntscr.com/ijtx54 where green – old code, red – the new one.

    Regards

  • Viewing 15 results - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.