• Resolved ggerbz

    (@ggerbz)


    I have a vendor with 3 visible products and 18 products with Catalog visibility=Hidden. On the vendor profile page, it shows “21 Products Found” and it shows that there are 2 pages of products even though only the visible products (2) are showing. The 3rd visible product is on page 2!

    Tested in default storefront theme as well.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter ggerbz

    (@ggerbz)

    Steps to reproduce:
    1) Create a vendor
    2) create a product with default visibility
    3) create a product with hidden visibility
    4) store page will show 1 product, but will say “2 Products Found”
    5) add 24 more hidden products
    6) store page will show 0 products, but will say “26 products Found” and pagination will appear showing a second page where the 1 visible product will appear

    Hello,

    It’s true. When a vendor adds hidden products, pagination doesn’t work correctly

    Hello @fesaponet,

    Do you happen to have a screenshot handy that further illustrates what you are seeing?

    You can use https://snag.gy for easily sharing screenshots. You’ll just need to follow the instructions on the page, then paste the URL into this chat window. It works with Chrome, Firefox and IE

    I will look forward to your response.

    Thanks.

    Thread Starter ggerbz

    (@ggerbz)

    • /store/seller_name/ page is set to display 12 products on each page.
    • currently this store sells 3 visible products and 18 hidden products
    • /store/seller_name/ is displaying 2 products
    • /store/seller_name/page/2/ is displaying 1 product
    • Also see in screenshot that theme says “21 Products found”
    • Once fixed, this should say “3 Products found” and only have one page displaying 3 products

    Store Profile (Pagination Page 1)
    https://snag.gy/UcGZj3.jpg

    Store Profile (Pagination Page 2)
    https://snag.gy/6sg5hk.jpg

    Hello @ggerbz,

    The store page of Dokan does not show the number of the product by default. So I am a bit confused about why the store page is showing the number of the product.

    Also, I have checked in my local server there was no such issue as the number is not showing. I will suggest you check the theme and plugin conflict. Deactivate all third-party plugin except for Dokan and WooCommerce and use a default WordPress theme. Check if the issue remains. In case it does please contact here.

    Thanks ??

    Thread Starter ggerbz

    (@ggerbz)

    The number is displayed by my theme, the number is simply evidence that the Dokan calculation for products in the store is incorrectly including hidden products.

    This incorrect calculation is also the cause of the incorrect pagination.

    Since you have a local version setup, follow the steps to reproduce I described above to understand the issue better.

    Hello @ggerbz,

    Dokan does not have the option to show the number of the product by default. As the option is coming from the theme you are using, the theme may not be able to figure out the visibility restriction. So you need to contact the theme provider to make just to verify the issue. I am sure they will be helpful to you on the matter.

    You can check our demo be sure that the issue is not from the plugin Dokan.

    Thanks ??

    Thread Starter ggerbz

    (@ggerbz)

    @roshni07 I just re-created the bug in your demo:
    https://dokandemo.wedevs.com/store/demo/

    The demo user already had 2 products in there store, so I added 11 more hidden products. Now you see that the store page has pagination and only shows 1 product on each page.

    Hello @ggerbz,

    I have figured out the issue and created the issue. We hope to get the issue resolved within the next release. You can keep an eye on the link to get an update on the issue.

    Thank you so much ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Incorrect product count on vendor page when Catalog Visibility=hidden’ is closed to new replies.