Include listing details in email notification

Hi,
I would like to suggest some improvements to the messaging system on HivePress to make communication between sellers and buyers more effective. Currently, when a buyer sends a message about a listing, the seller receives an email notification, but it does not include any reference to the specific listing (neither the name nor a photo). This forces the seller to respond via the website using the “Reply” button just to find out which listing the inquiry is about.

It would be helpful to implement the following features:

  1. Include listing details in the email notification (e.g., the name and image of the listing) so that the seller immediately knows what the inquiry is about.
  2. Allow replies directly via email, without requiring access to the website, using an email proxy system that keeps both the seller’s and buyer’s email addresses private. This would prevent responses from being mistakenly sent to the website owner instead of the buyer.

These improvements would make communication more seamless and efficient, enhancing the user experience on the platform.

Thank you for your attention!

Hi,

Thank you for your suggestions.

  1. We plan to add this in future updates.

  2. We have added this feature to the backlog and will consider adding it in future updates.

Hi,

While waiting for this feature to be officially implemented, I’d like to try adding it myself. Is it currently possible to include custom tokens (e.g. %listing_title%, %listing_image%) in HivePress email notifications?

If so, could you please point me to the correct file(s) or function(s) responsible for generating or parsing these email templates? I’m comfortable editing PHP and template files directly — I just need to know where the email tokens are defined or where the message body is assembled before sending.

Any guidance or references to the relevant hooks, filters, or template paths would be greatly appreciated.

Thanks for your time and for maintaining such a solid plugin.

1 Like

Hi,

You can find these topics helpful New Review: Tokens are not being translated in email, Custom tokens not working in some emails.

There’s an email hook hivepress/v1/emails/email_name_here that you can use, and inside it you can define custom tokens like $email['tokens']['my_token'] = .... The exact value depends on the type of email. If the listing object is not included in the email context, you can retrieve it using another existing token and then generate your custom value from it.

Hope this helps

1 Like