Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Medik

Newbie
  
  • Posts

    3
  • Joined

  • Last visited

Medik's Achievements

Newbie

Newbie (1/14)

  • Conversation Starter
  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Сделал так: $message ="<strong>На сайт поступил новый отзыв.</strong><br><br>" .$this->db->escape(strip_tags($data['text']))."<br>" .'<a href="http://сайт/admin/index.php?route=catalog/review">Управление отзывами</a><br>' . '<a href="http://сайт/' . $_SERVER['QUERY_STRING'] . '">Ссылка на страницу с отзывом</a>'; $mail = new Mail($this->config->get('config_mail_protocol'), $this->config->get('config_smtp_host'), $this->config->get('config_smtp_username'), html_entity_decode($this->config->get('config_smtp_password')), $this->config->get('config_smtp_port'), $this->config->get('config_smtp_timeout')); $mail->setTo("мыло"); $mail->setFrom("мыло"); $mail->setSender("admin"); $mail->setSubject("Новый отзыв на сайте"); $mail->setHtml($message); $mail->send();
  2. Отбой... Сделал так: <?php $sitepage = 'http://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']; ?><?php if ($sitepage == 'http://metr-s-kepkoj.ru/index.php?route=information/contact') { ?>Сюда пишем что хотим<?php } ?>
  3. Понял как нужно проверять то, в какой категории ты находишься: <?php if ($category_id == 1) { ?>Сюда пишем что хотим<?php } ?>Это можно использовать в шаблонах, для каких либо целей. Подскажите пожалуйста, как проверить что пользователь находится на странице Наши контакты? Там где форма обратной связи? Спасибо.
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.