Allow Sellers to Purchase Featured Listing While Listing Is Pending Approval

We’re trying to allow sellers to buy a featured listing even when their listing is still pending approval.

As we noticed, HivePress uses this URL to trigger the featured listing checkout:
/account/listings/{listing-id}/feature/

This works well for approved listings. However, when the listing is in a pending state, accessing this URL redirects the user to the homepage, preventing the purchase.

Is there a recommended way to enable featured listing purchases while a listing is still pending?

Thank You

Hi,

Unfortunately, it is not possible to overwrite this with an external PHP snippet, but you can directly change it by changing the condition here: hivepress-paid-listings/includes/controllers/class-listing-package.php at master · hivepress/hivepress-paid-listings · GitHub (note that after each update, these changes will need to be made again).

​I hope this is helpful to you

Thank you for the details, Andrii :slight_smile: