• Resolved eros7841682

    (@eros7841682)


    When I used the paginate code on homepage, the entire homepage refreshed.How can i solve this essue?Here is my shortcode.

    [products limit=”4″
    columns=”4″
    paginate=”true”
    tag=”BestSell”
    orderby=”rating” ]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey there, @eros7841682! Thanks for contacting us. I’m happy to help you.

    Do you mind clarifying what exactly happened when you added the pagination?

    You mentioned the homepage refreshed, do you mean it change the products that it showed before? Or something else?

    Do you mind sharing the URL of your website so we can take a look?

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter eros7841682

    (@eros7841682)

    Here is my URL of my website”https://www.erosdoll.com”.I inserted the code under the BEST-EVALUATED heading.But when I click on the next button or 2,3 page numbers, the page automatically jumps to the header section.(My site may have some adult content, sorry if that offends!)

    • This reply was modified 11 months, 2 weeks ago by eros7841682.

    Hello @eros7841682,

    Thanks for sharing more details with us.

    I was able to visit your page ‘BEST-EVALUATED’ and the pagination links worked just fine and the link was also generated correctly (…product-category/popular/page/2/).

    Could you try the same with a private/incognito tab to confirm if the issue persists?

    Looking forward to your reply.

    Thread Starter eros7841682

    (@eros7841682)

    I’m sorry, maybe I didn’t phrase it correctly.Yes, the pagination code and links work fine.I mean when I click on the next button is that he will only run in that block (the block where I added the pagination code), not that it will jump to the beginning of the whole page:))

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @eros784168,

    This is expected behavior as the product shortcode, by default, doesn’t support Ajax pagination. However, to achieve your goal, you need to use a custom code with JavaScript or a plugin that supports Ajax loading, such as the Ajax Pagination & Infinite Scroll.

    However, please note that custom coding is beyond our scope of support. If you still need assistance, we recommend asking development questions on the #developers channel of the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question. You can also seek help from the following:

    I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.

    Thread Starter eros7841682

    (@eros7841682)

    Yep,I got it .Thanks a lot.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @eros7841682,

    I’m glad we were able to help! Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘paginate code’ is closed to new replies.