Verified badge if vendor has listings

Hey,

I’m looking for a code snippet that automatically adds the verified badge to a vendor if he currently has active listings and visca versa if he doesn’t have active listings at the moment he shouldn’t be verified.

Can you help me out with this?

Sorry, this requires some research but if you’re familiar with code customizations I recommend using the hivepress/v1/models/listing/update hook, this way you can get the vendor object and trigger its verified status dependin on the calculated listing count.

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