dkoz Опубликовано 7 мая, 2013 Жалоба Поделиться Опубликовано 7 мая, 2013 В api/Notify.phpпосле строк (150 строка) if(!($comment = $this->comments->get_comment(intval($comment_id)))) return false; дописываем: if($comment->type == 'product'){ if($comment_product = $this->products->get_product((int)$comment->object_id)){ $comment->product_name = $comment_product->name; $comment->product_url = $comment_product->url; } } В simpla/design/html/email_comment_admin.tpl добавляем в таблицу {if $comment->product_url} <tr> <td style="padding:6px; width:170; background-color:#f0f0f0; border:1px solid #e0e0e0;font-family:arial;"> Товар </td> <td style="padding:6px; width:330; background-color:#ffffff; border:1px solid #e0e0e0;font-family:arial;"> <a href="{$config->root_url}/products/{$comment->product_url}" target="_blank">{$comment->product_name|escape}</a> </td> </tr> {/if} Цитата Ссылка на сообщение Поделиться на другие сайты
Рекомендуемые сообщения
Присоединяйтесь к обсуждению
Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.