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. Делаю модуль Зума с массой настроек. Следите за обновлениями.
  2. Делаю модуль Зума с кучей настроек и нескольких вариантов. Следите за обновлениями модулей. К середине месяца будет готово.
  3. На счет нескольких банков не видел. По отдельности есть, тинькофф, альфа
  4. На какой примерно бюджет расчитываете ?
  5. Переспросить решил наверное
  6. http://prntscr.com/nidozb Создать mssql драйвер придется для opencart, и переписывать все методы. Труд колосальный.
  7. Можно сделать миграцию базы данных. Если мигрировать все полностью url, товары, категории, то выйдет больше 10к однозначно.
  8. Может кому пригодится делаем закладки с регистрацией и без регистрации на примере Opencart 2.3, OcStore 2.3 Код написанный мною, можете юзать ))) Идем в контроллер закладок Комментим проверку class ControllerAccountWishList extends Controller { public function index() { /*if (!$this->customer->isLogged()) { $this->session->data['redirect'] = $this->url->link('account/wishlist', '', true); $this->response->redirect($this->url->link('account/login', '', true)); }*/ Далее после кода if (isset($this->request->get['remove'])) { // Remove Wishlist $this->model_account_wishlist->deleteWishlist($this->request->get['remove']); $this->session->data['success'] = $this->language->get('text_remove'); $this->response->redirect($this->url->link('account/wishlist')); } вставляем if (isset($this->request->get['remove_session'])) { // Remove Wishlist_session unset($this->session->data['wishlist'][array_search($this->request->get['remove_session'],$this->session->data['wishlist'])]); if (empty($this->session->data['wishlist'])) { $this->response->redirect($this->url->link('common/home')); } } Далее после $data['products'] = array(); Вставляем if ($this->customer->isLogged()) { Далее после else { $this->model_account_wishlist->deleteWishlist($result['product_id']); } } Вставляем } else { $results = $this->session->data['wishlist']; foreach ($results as $key => $result) { $product_info = $this->model_catalog_product->getProduct($result); if ($product_info) { if ($product_info['image']) { $image = $this->model_tool_image->resize($product_info['image'], $this->config->get($this->config->get('config_theme') . '_image_wishlist_width'), $this->config->get($this->config->get('config_theme') . '_image_wishlist_height')); } else { $image = false; } if ($product_info['quantity'] <= 0) { $stock = $product_info['stock_status']; } elseif ($this->config->get('config_stock_display')) { $stock = $product_info['quantity']; } else { $stock = $this->language->get('text_instock'); } if ($this->customer->isLogged() || !$this->config->get('config_customer_price')) { $price = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']); } else { $price = false; } if ((float)$product_info['special']) { $special = $this->currency->format($this->tax->calculate($product_info['special'], $product_info['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']); } else { $special = false; } $data['products'][] = array( 'product_id' => $product_info['product_id'], 'thumb' => $image, 'name' => $product_info['name'], 'model' => $product_info['model'], 'stock' => $stock, 'price' => $price, 'special' => $special, 'href' => $this->url->link('product/product', 'product_id=' . $product_info['product_id']), 'remove' => $this->url->link('account/wishlist', 'remove_session=' . $product_info['product_id']) ); } else { unset($this->session->data['wishlist'][$key]); } } } Далее меняем вместо $json['success'] = sprintf($this->language->get('text_login'), $this->url->link('account/login', '', true), $this->url->link('account/register', '', true), $this->url->link('product/product', 'product_id=' . (int)$this->request->post['product_id']), $product_info['name'], $this->url->link('account/wishlist')); Вставляем это $json['success'] = sprintf($this->language->get('text_success'), $this->url->link('product/product', 'product_id=' . (int)$this->request->post['product_id']), $product_info['name'], $this->url->link('account/wishlist'));
  9. Это с покупкой модулей или за работу расчет ? Если чисто за работу то я согласен с этой ценой
  10. Какой бюджет запланирован на реализацию проекта ?
  11. <div class="image"><a href="{{ category.href }}"><img src="{{ category.thumb }}" class="img-responsive" />{{ category.name }}</a></div>
  12. Возможно Вы не там вставили. Поэтому скиньте можете в личку контроллер Ваш
  13. Вот пример Контроллер категории catalog\controller\product\category.php foreach ($results as $result) { $filter_data = array( 'filter_category_id' => $result['category_id'], 'filter_sub_category' => true ); if ($result['image']) { $image = $this->model_tool_image->resize($result['image'], 265, 294); } else { $image = $this->model_tool_image->resize('placeholder.png', $this->config->get($this->config->get('config_theme') . '_image_product_width'), $this->config->get($this->config->get('config_theme') . '_image_product_height')); } $data['categories'][] = array( 'name' => $result['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url), 'thumb' => $image, ); } И в шаблоне template\product\category.tpl в теле цикла <?php foreach ($categories as $category) { ?> выводите к примеру так, ну естественно стилизуете блоки как Вам нужно <div class="image"><a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" title="<?php echo $category['name']; ?>" class="img-responsive" /><?php echo $category['name']; ?></a></div>
  14. Да. На другие версии тоже могу сделать но по запросу.
×
×
  • 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.