• Resolved hemasusi

    (@hemasusi)


    Hi,

    Woo Commerce seems to duplicate products on my shop page. After clicking load more options, i can see the same products at down.. I am working in local. So unable to share the page link but i will attach the screenshots..

    Here is the screenshots of the issue,
    1. Showing 4 products first – https://prnt.sc/20xc60u
    2. After clicking load more for the first time(here two products from above repeated) – https://prnt.sc/20xc6in
    3. Second load more (its correct showing remaining 2 products) – https://prnt.sc/20xc71k

    Here is the screenshot of the coding,

    1. Loadmore.js file ajax – https://prnt.sc/20xc7oj
    2. custom coding – https://prnt.sc/20xc85w

    I think the problem is with the query_posts($args); along with offset..
    When offset is set to 4 for the first load more, this query returns the 2 duplicate products.

    Page, posts per page, offset variables passing correctly for the every page, but the query only returns the duplicate products. Instead of this, I have used get_posts($args), this will also cause the same issue.

    So kindly help me to solve this issue.. Please..

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.
    
    I can also recommend <a href="https://developer.woocommerce.com/" rel="noopener" target="_blank">the WooCommerce Developer Resources Portal</a> for resources on developing for WooCommerce.
    
    You can also visit the <a href="https://www.facebook.com/groups/advanced.woocommerce/" rel="noopener" target="_blank">WooCommerce Facebook group</a> or the <code>#developers</code> channel of the <a href="https://woocommerce.com/community-slack/" rel="noopener" target="_blank">WooCommerce Community Slack</a>. We're lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
    Thread Starter hemasusi

    (@hemasusi)

    Anyone pls check this & give the solution.

    Mirko P.

    (@rainfallnixfig)

    Hi @hemasusi,

    Thanks for getting back to us.

    For development-oriented questions like yours, the channels mentioned above by my colleague are the right ones to get in touch with developers who are best placed to help you find a solution. I’ll share the channels here again for your convenience.

    Kindly note that this forum is mostly focused on resolving issues with core configuration and its intended functionality, that does not require extra code to function.

    That said, I’ll leave this thread open for a little longer in case a developer wants to step in to help you out.

    Thanks.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution and the above resources for developers were helpful. If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shop Page – Pagination showing duplicated products’ is closed to new replies.