This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

morfik

  • ****
  • 169 posts
Email templates for the plugin
« on: February 15, 2023, 09:05:36 AM »
There are two email templates added after installing the plugin. They use tags. The tags seem to be different compared to the ones used in other email templates. For instance there's no EDIT ITEM tag, even though the one is used in the templates. Can the tags be unified?

*

MB Themes

Re: Email templates for the plugin
« Reply #1 on: February 15, 2023, 10:35:34 AM »
@morfik
If yoy mean KEYWORDS, then no, it cannot be unified. Each plugin/theme/core can use own tags based on it's needs.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

morfik

  • ****
  • 169 posts
Re: Email templates for the plugin
« Reply #2 on: February 15, 2023, 11:00:15 AM »
Yes, I mean keywords. :)

Imagine this situation.

An user posts an ad. This ad has to be validated by the admin. So far so good.
Now the admin rejects the offer, because it didn't meet the requirements. The email is sent to the user stating that the ad can't be posted, and also in the original reject email template, there was something about editing the ad.

How to provide the edit ad link in the email?

*

MB Themes

Re: Email templates for the plugin
« Reply #3 on: February 15, 2023, 11:41:48 AM »
@morfik
You cannot use keywords that are not explicitly defined in email functions.
Anyway you can use item_id and use "non-friendly" url under link.

Based on my information emails in item validation plugin contains {ITEM_EDIT_URL} keyword to get edit URL.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

morfik

  • ****
  • 169 posts
Re: Email templates for the plugin
« Reply #4 on: February 15, 2023, 12:02:49 PM »
Based on my information emails in item validation plugin contains {ITEM_EDIT_URL} keyword to get edit URL.

Yes they do, but the link isn't clickable -- the URL is just a text in the email, and that's why I wanted to change it to be clickable, but there's no way to do so.

*

MB Themes

Re: Email templates for the plugin
« Reply #5 on: February 15, 2023, 12:06:05 PM »
@morfik
Because it's URL. It tells it's URL not link.
Code: [Select]
<a href="{ITEM_EDIT_URL}">Click to edit your item</a>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

morfik

  • ****
  • 169 posts
Re: Email templates for the plugin
« Reply #6 on: February 15, 2023, 12:08:51 PM »
But how good is just text URL, when a user has to copy it from the email and paste it to the search bar of his browser? :D It should be clickable like in the other edit email template messages.

*

MB Themes

Re: Email templates for the plugin
« Reply #7 on: February 15, 2023, 03:24:10 PM »
Can you create link from URL? YES
Can you create URL from link? NO

That's the reason. Work is on you to create link.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

morfik

  • ****
  • 169 posts
Re: Email templates for the plugin
« Reply #8 on: February 15, 2023, 03:42:53 PM »
Can you create link from URL? YES
Can you create URL from link? NO

That's the reason. Work is on you to create link.

But for instance in the email_new_item_non_register_user there's the {EDIT_LINK} and it creates the link in the email. Can't it be simply added to the plugin?

Marked as best answer by morfik on February 15, 2023, 03:49:23 PM
*

MB Themes

Re: Email templates for the plugin
« Reply #9 on: February 15, 2023, 03:44:49 PM »
Can you edit text inside link?

Quote
Can't it be simply added to the plugin?
Not planned as current solution is more flexible than suggested one.


@morfik
Because it's URL. It tells it's URL not link.
Code: [Select]
<a href="{ITEM_EDIT_URL}">Click to edit your item</a>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

morfik

  • ****
  • 169 posts
Re: Email templates for the plugin
« Reply #10 on: February 15, 2023, 03:47:09 PM »
OK, I'll use this workaround, thanks.