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

legioner26

Users
  
  • Posts

    2,445
  • Joined

  • Last visited

Everything posted by legioner26

  1. Как вариант чтобы не трогать настройки можно добавить в массив следующее $data['products'][] = array( 'product_id' => $result['product_id'], 'thumb' => $image, 'name' => $result['name'], 'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..', 'price' => $price, 'special' => $special, 'tax' => $tax, 'minimum' => $result['minimum'] > 0 ? $result['minimum'] : 1, 'rating' => $result['rating'], 'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url) ); После 'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..', Добавить 'description_new' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, Тут число символов) . '..', Далее в шаблоне Вместо <p><?php echo $product['description']; ?></p> Записать <p><?php echo $product['description_new']; ?></p>
  2. В запросе к базе данных. . SELECT * FROM `oc_setting` where `key` = 'config_theme' SELECT * FROM `oc_setting` where `key` = 'theme_default_product_description_length'
  3. Вот строка в контроллере 'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..',
  4. Можно допилить содержание письма при отправке и внедрить доп описание.
  5. Напишите так <img src="Тут путь к картинке" alt="" title="">
  6. Смотрите.Берете удаляете в исходном коде, далее нажимаете еще раз на кнопку чтобы выйти из кода в превычный вид и жмете на кнопку сохранить.
×
×
  • 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.