Jump to content

В оповещении о комментарии добавить ссылку на товар или страницу


Recommended Posts

Здравствуйте!
Подскажите, как в оповещение о новом комментарии (которое приходит админу на email) добавить ссылку на товар или страницу, где был оставлен коммент.

Такая ссылка есть в админке, в разделе комментариев  (simpla/design/html/comments.tpl), но при тупом копировании в шаблон email_comment_admin.tpl - не работает:

 

{if $comment->type == 'product'}
	к товару <a target="_blank" href="{$config->root_url}/products/{$comment->product->url}#comment_{$comment->id}">{$comment->product->name}</a>
{elseif $comment->type == 'blog'}
	к статье <a target="_blank" href="{$config->root_url}/blog/{$comment->post->url}#comment_{$comment->id}">{$comment->post->name}</a>
{/if}

Я понимаю, что нужны данные {$comment->product->url}, {$comment->product->name}, {$comment->post->url}, {$comment->post->name}, как их добыть?
 

 

Спасибо!

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...