Incorrect number of listings on vendor view block footer

Hi

On the listing Details page, in the vendor view block where in the footer it shows the number of listings the vendor has I get an incorrect number. Instead of number of listing, which the vendor acutally has, i get the number of all the listings.


This is that part from your rental demo
The caching plugin is disabled and all other 3rd party plugins also but it’s still the incorrect number.

You can check the listing here

Hi,

Most likely, your vendors have the same user, namely the administrator, so the same number of listings are displayed. We recommend creating a different user for each vendor.

​I hope this is helpful to you.

The vendors do not have the same user.
I use different users for testing, and i’ve checked the database, the post_author has different user id, all beloging to users i registered for testing, not the admin user.

Can you please give me the php filename where the number of listings in the vendor block footer is calculated, i will debug the code myself.

I noticed that as soon as i click to view the listing of another vendor the database updates the hp_listing_count to maximum listings

image

So all the users will eventually have maximum listing.
Where in the code does this updates occur?

Hi,

I see. Yes, this is a small bug and has already been added to our backlog, we will try to fix it as soon as possible. As a workaround, you can disable caching, but please note that this will affect the performance of the site, or we can provide a CSS snippet to hide this count (if you use other attributes in the primary area).

Hi,

Can you please tell me in which file does the bug occur?
I have some coding experience I will try to look until you fix it.

Also, the caching is disabled (third party and hivepress) and it’s still calculating this
define( ‘HP_CACHE’, false );

Hi,

Sure, please check this screenshot: Awesome Screenshot

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.