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

modn11

Newbie
  
  • Posts

    31
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

modn11's Achievements

Collaborator

Collaborator (7/14)

  • Dedicated Rare
  • Collaborator
  • First Post
  • Conversation Starter
  • Week One Done

Recent Badges

0

Reputation

  1. У меня нет префиксов, это чистая URL на разных языках
  2. Привет друзья, у меня такая проблема, когда я меняю язык на своем сайте, содержимое меняется на нужный язык, но URL-адрес остается прежним, и если я набираю другой продукт или категорию, то URL-адрес меняется. Мне нужен положительный ответ. Спасибо Opencart 3
  3. Друг, где это делается? Спасибо за ответ
  4. Здравствуйте коллеги, как мне отредактировать шаблон счета, когда я хочу его распечатать, появляются 2 страницы, а мне нужна только 1, какие файлы отвечают за этот функционал. Спасибо за помощь
  5. Привет друзья у меня такая проблема, установлен модуль оплаты PayPal, и когда нажимаю на кнопку, должна появиться выпадающее окно, Но мне в консоли приходит Вот такая ошибка Как можно решать?
  6. Привет друзья, у меня есть вопрос, как я могу отображать изображения в Opencart, имея URL изображений от поставщика, не копируя изображения на свой сервер. Есть ли правильный метод, потому что, когда я использую URL-адрес непосредственно из базы данных изображений, он не отображается
  7. Да, приятель, но мне нужно для версии 2.3
  8. Привет друзья, мне нужен модуль, чтобы я мог отображать список категорий на первой странице, чтобы изображения категорий также были включены, может кто знает такой модуль
  9. Формат URL-адреса друга необходим, если мы вводим текст вне формата URL-адреса, чтобы получить ошибку проверки чтобы получить такую ошибку, если я ввожу другой тип текста
  10. Привет, я хочу создать поле, в которое я должен ввести URL-адрес сайта. Как сделать правильную проверку? когда не будет текст в формате URL выдаст ошибку if ((utf8_strlen($value['url']) < 1) || (utf8_strlen($value['url']) > 255)) { $this->error['url'][$language_id] = $this->language->get('error_url'); }
  11. Привет, я хочу создать поле, в которое я должен ввести URL-адрес сайта. Как сделать правильную проверку? if ((utf8_strlen($value['url']) < 1) || (utf8_strlen($value['url']) > 255)) { $this->error['url'][$language_id] = $this->language->get('error_url'); }
  12. Здравствуйте друзья, я получил данные в формате JSON, но в нем не указана категория где находится товар, как мне найти категорию товара в списке, какие изменения нужно внести. Большое спасибо!! <?php class ControllerApiProduct extends Controller { public function index() { $this->load->language('api/cart'); $this->load->model('catalog/product'); $this->load->model('tool/image'); $json = array(); $json['products'] = array(); $filter_data = array(); $this->data['categories'] = $this->model_catalog_product->getCategories($this->request->get['product_id']); $results = $this->model_catalog_product->getProducts($filter_data); foreach ($results as $result) { if ($result['image']) { $image = $this->model_tool_image->resize($result['image'], $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_height')); } else { $image = $this->model_tool_image->resize('placeholder.png', $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_product_height')); } if ($this->customer->isLogged() || !$this->config->get('config_customer_price')) { $price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']); } else { $price = false; } if ((float) $result['special']) { $special = $this->currency->format($this->tax->calculate($result['special'], $result['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']); } else { $special = false; } if ($this->config->get('config_tax')) { $tax = $this->currency->format((float) $result['special'] ? $result['special'] : $result['price'], $this->session->data['currency']); } else { $tax = false; } if ($this->config->get('config_review_status')) { $rating = (int) $result['rating']; } else { $rating = false; } $data['products'][] = array( 'product_id' => $result['product_id'], 'category' => $result['category'], 'thumb' => $image, 'name' => $result['name'], 'description' => utf8_substr(trim(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8'))), 0, $this->config->get('theme_' . $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', 'product_id=' . $result['product_id']), ); } $json['products'] = $data['products']; $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($json)); } }
  13. Привет друзья, вопрос как добавить больше магазинов в админку opencart? У меня есть несколько магазинов и я хочу добавить их, чтобы использовать только одну панель администратора. можно сделать что-то подобное
  14. Привет друзья, мне нужна помощь, я начал устанавливать тему Журнал, но после ее активации я получаю ошибку 500 Fatal error: Uncaught Twig_Error_Loader: Unable to find template "default/template/common/footerleft.twig" (looked into: /home/mylovely/storage/modification/catalog/view/theme, /home/mylovely/public_html/catalog/view/theme). in /home/mylovely/public_html/vqmod/vqcache/vq2-system_library_template_Twig_Loader_Filesystem.php:215 Stack trace: #0 /home/mylovely/public_html/vqmod/vqcache/vq2-system_library_template_Twig_Loader_Filesystem.php(139): Twig_Loader_Filesystem->findTemplate('default/templat...') #1 /home/mylovely/public_html/system/library/template/Twig/Environment.php(312): Twig_Loader_Filesystem->getCacheKey('default/templat...') #2 /home/mylovely/public_html/system/library/template/Twig/Environment.php(378): Twig_Environment->getTemplateClass('default/templat...', NULL) #3 /home/mylovely/public_html/vqmod/vqcache/vq2-_home_mylovely_storage_modification_system_library_template_twig.php(64): Twig_Environment->loadTemplate('default/templat...') #4 /home/mylovely/storage/modification/system/library/template.php(65): Te in /home/mylovely/public_html/vqmod/vqcache/vq2-system_library_template_Twig_Loader_Filesystem.php on line 215
×
×
  • 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.