Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

HeLL0

Користувачі
  
  • Публікації

    51
  • З нами

  • Відвідування

Усі публікації користувача HeLL0

  1. Ребят, помогите, пожалуйста, с контролером и tpl-кой( Вот часть кода, отвечающая за вывод результатов. Что с shipping делать?(( <tbody> <?php if ($products) { ?> <?php foreach ($products as $product) { ?> <tr> <td class="text-center"><?php if (in_array($product['product_id'], $selected)) { ?> <input type="checkbox" name="selected[]" value="<?php echo $product['product_id']; ?>" checked="checked" /> <?php } else { ?> <input type="checkbox" name="selected[]" value="<?php echo $product['product_id']; ?>" /> <?php } ?></td> <td class="text-center"><?php if ($product['image']) { ?> <img src="<?php echo $product['image']; ?>" alt="<?php echo $product['name']; ?>" class="img-thumbnail" /> <?php } else { ?> <span class="img-thumbnail list"><i class="fa fa-camera fa-2x"></i></span> <?php } ?></td> <td class="text-left"><?php echo $product['name']; ?></td> <td class="text-left"><?php echo $product_info['shipping']; ?></td> <td class="text-left"><?php echo $product['model']; ?></td> <td class="text-left"><?php if ($product['special']) { ?> <span style="text-decoration: line-through;"><?php echo $product['price']; ?></span><br/> <div class="text-danger"><?php echo $product['special']; ?></div> <?php } else { ?> <?php echo $product['price']; ?> <?php } ?></td> <td class="text-right"><?php if ($product['quantity'] <= 0) { ?> <span class="label label-warning"><?php echo $product['quantity']; ?></span> <?php } elseif ($product['quantity'] <= 5) { ?> <span class="label label-danger"><?php echo $product['quantity']; ?></span> <?php } else { ?> <span class="label label-success"><?php echo $product['quantity']; ?></span> <?php } ?></td> <td class="text-left"><?php echo $product['status']; ?></td> <td class="text-right"><a href="<?php echo $product['edit']; ?>" data-toggle="tooltip" title="<?php echo $button_edit; ?>" class="btn btn-primary"><i class="fa fa-pencil"></i></a></td> </tr> <?php } ?> <?php } else { ?> <tr> <td class="text-center" colspan="8"><?php echo $text_no_results; ?></td> </tr> <?php } ?> </tbody> эта часть из product_form.tpl, может, пригодится <div class="form-group"> <label class="col-sm-2 control-label"><?php echo $entry_shipping; ?></label> <div class="col-sm-10"> <label class="radio-inline"> <?php if ($shipping) { ?> <input type="radio" name="shipping" value="1" checked="checked" /> <?php echo $text_yes; ?> <?php } else { ?> <input type="radio" name="shipping" value="1" /> <?php echo $text_yes; ?> <?php } ?> </label> <label class="radio-inline"> <?php if (!$shipping) { ?> <input type="radio" name="shipping" value="0" checked="checked" /> <?php echo $text_no; ?> <?php } else { ?> <input type="radio" name="shipping" value="0" /> <?php echo $text_no; ?> <?php } ?> </label> </div> </div>
  2. Друзья, подскажите, пожалуйста, как реализовать следующее: мне нужно, чтобы на странице со списком товаров выводилась еще одна колонка (вернее её результат), а именно пункт 'Требуется доставка? Да - Нет" К примеру, Изображения Название товара Модель Цена на сайте Количество Статус Доставка 3D Комплект постельного белья «ADVENTURE» HT-3DBLS-34 41.0000 10000 НЕТ как подобное реализовать?
  3. Друзья, opencart 2.0.1.0 - в заказе не отображаются выбранные покупателем опции, каким образом возможно это реализовать?
  4. Вы - лучший!!!! Спасибо огромное!!!!!!!! 3 часа игрался, а тут все так просто оказывается!
  5. ладно, я разобрался чутка. один вопрос. вот как сделать так, чтобы это описание поддерживало html?
  6. ну как все же перетащить описание продукта в это модальное окно?(
  7. я заметил, что убрав строки 'description' => mb_substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, 1000) . '..', и $this->data['description'] = html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8'); краткое описание все равно остаётся. Значит ли это что оно вызывается из другого файла?
  8. Дорогие друзья, помогите пожалуйста!!! Уже мозги набекрень!! Есть модуль новые поступления, при нажатии на лупу, открывается модальное окно. Я хочу, чтобы там вместо краткого описания выводилось полное. Сайт Никак не могу это реализовать вот файл lastest.php <?php class ControllerModuleLatest extends Controller { public function index($setting) { $this->load->language('module/latest'); $data['heading_title'] = $this->language->get('heading_title'); $data['text_tax'] = $this->language->get('text_tax'); $data['button_cart'] = $this->language->get('button_cart'); $data['button_wishlist'] = $this->language->get('button_wishlist'); $data['button_compare'] = $this->language->get('button_compare'); $this->load->model('catalog/product'); $this->load->model('tool/image'); $data['products'] = array(); $filter_data = array( 'sort' => 'p.date_added', 'order' => 'DESC', 'start' => 0, 'limit' => $setting['limit'] ); $results = $this->model_catalog_product->getProducts($filter_data); if ($results) { foreach ($results as $result) { if ($result['image']) { $image = $this->model_tool_image->resize($result['image'], $setting['width'], $setting['height']); } else { $image = $this->model_tool_image->resize('placeholder.png', $setting['width'], $setting['height']); } $this->data['attribute_groups'] = $this->model_catalog_product->getProductAttributes($result['product_id']); $this->data['description'] = html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8'); if (($this->config->get('config_customer_price') && $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'))); } 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'))); } else { $special = false; } if ($this->config->get('config_tax')) { $tax = $this->currency->format((float)$result['special'] ? $result['special'] : $result['price']); } else { $tax = false; } if ($this->config->get('config_review_status')) { $rating = $result['rating']; } else { $rating = false; } $data['products'][] = array( 'product_id' => $result['product_id'], 'thumb' => $image, 'name' => $result['name'], 'description' => mb_substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, 1000) . '..', 'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']), 'price' => $price, 'special' => $special, 'tax' => $tax, 'rating' => $rating, 'href' => $this->url->link('product/product', 'product_id=' . $result['product_id']), ); } if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/latest.tpl')) { return $this->load->view($this->config->get('config_template') . '/template/module/latest.tpl', $data); } else { return $this->load->view('default/template/module/latest.tpl', $data); } } } } а это отрывок latest.tpl <div class="col-sm-12"> <div class="quickview_description description"> <?php echo $product['description'];?> </div> </div> Помогите, пожалуйста!!!
  9. К сожалению, напрямую внес, но ручные правки, к счастью, не пропали
  10. нет, не применились Что необходимо сделать для того, чтобы применились?
  11. Всем привет! Никто не подскажет, почему opencart не хочет ресайзить изображения в опциях? /catalog/controller/product/product.php изменил строчку 'image' => $this->model_tool_image->resize($option_value['image'], 50, 50), на 'image' => $this->model_tool_image->resize($option_value['image'], 100, 100), но ничего не меняется... про очистку кэша рассказывать не надо, про cache тоже. Может. что-то не так сделал или не доделал??
  12. Вот ссылочка: http://house-tex.com/bathrobes/bamboo/afrodit-s Я убрал эти строки, основное изображение ушло из боковой части, но по-прежнему отображается в основной части Тут, наверно, нужно в контроллере что-то изменить
  13. Дорогие друзья, приветствую вас! Можете, пожалуйста, подсказать как сделать так, чтобы на странице товара отображались только дополнительные изображения, без основного? За это отвечает вот эта часть кода: <div id="default_gallery" class="product-gallery"> <?php if ($thumb || $images) { ?> <?php if ($images|| $thumb) { ?> <div class="image-thumb"> <ul id="image-additional" class="image-additional"> <?php if (!empty($thumb)) { ?> <li> <a href="#" data-image="<?php echo $thumb; ?>"> <img src="<?php echo $thumb; ?>" alt=""/> </a> </li> <?php } ?> <?php foreach ($images as $image) { ?> <li> <a href="#" data-image="<?php echo $image['popup']; ?>"> <img src="<?php echo $image['thumb']; ?>" alt=""/></a> </li> <?php } ?> </ul> </div> <?php } ?> <?php if ($thumb) { ?> <div id="product-image" class="product-image"> <div class="magnificent-wrap"> <div class="magnificent" data-magnificent="product-image"> <div class="polaroid"> <div class="inner"> <img src="<?php echo $popup; ?>"/> </div> </div> </div> </div> <div class="magnificent-viewport-wrap"> <div data-magnificent-viewport="product-image"> <div class="inner"> <img src="<?php echo $popup; ?>"/> </div> </div> </div> <script class="source"> $(function () { $('#product-image [data-magnificent]').magnificent(); }); </script> </div> <?php } ?> <?php } ?> </div> а вот контроллер: $this->load->model('tool/image'); if ($product_info['image']) { $data['popup'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height')); } else { $data['popup'] = ''; } if ($product_info['image']) { $data['thumb'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_thumb_width'), $this->config->get('config_image_thumb_height')); } else { $data['thumb'] = ''; } $data['images'] = array(); $results = $this->model_catalog_product->getProductImages($this->request->get['product_id']); foreach ($results as $result) { $data['images'][] = array( 'popup' => $this->model_tool_image->resize($result['image'], $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height')), 'thumb' => $this->model_tool_image->resize($result['image'], $this->config->get('config_image_additional_width'), $this->config->get('config_image_additional_height')) ); } Буду вам весьма признателен!
  14. <div class="col-sm-5 col-lg-7 product_page-left"> <div id="default_gallery" class="product-gallery"> <div class="image-thumb"> <ul id="image-additional" class="image-additional"> <li><a href="#" data-image="http://terralucida.md/image/cache/catalog/product-10-800x800.png"> <img src="http://terralucida.md/image/cache/catalog/product-10-88x88.png" alt=""></a> </li> </ul> </div> <div id="product-image" class="product-image"> <div class="magnificent-wrap"> <div class="magnificent" data-magnificent="product-image"> <div class="polaroid"> <div class="inner"> <img width="400px" src="https://unsplash.it/1200/768.jpg?image=253"> </div> </div> </div> </div> </div> </div> </div> Вот, я вытащил данный код, его содержимое отображено в самом низу страницы: http://terralucida.md/stellazhi-nastennye Что делать дальше - ума не приложу, перепробовал все вариации, на что мой мозг способен...
  15. Друзья, купил шаблончик и все бы хорошо, но не могу никак разобраться с fancybox... Он уже был установлен в шаблон и вроде как работает: http://prntscr.com/fa9r4e Но у меня что-то не получается никак найти способ открытия изображения в модальном окне... Нужно как здесь: ссылка (Магазин автозапчастей, бутик и т.д.). Прочел уже все мануалы, пробовал разные варианты. Если установить еще один fancy - все работает для моего изображения, но не работает пол сайта, так как он держится на основном fancy. http://terralucida.md/stellazhi-nastennye Нашел вариант открытия через Bootstrap, но там такой код - что мама не горюй, а мне нужен вариант типа: <a class="fancybox" href="....."><img src="......" /></a> может кто-то помочь, пожалуйста?( opencart 2.1
  16. unknown, # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))"> Order deny,allow Deny from all </FilesMatch> # SEO URL Settings RewriteEngine On # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase / RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] ### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that. # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it: # php_flag register_globals off # 2. If your cart has magic quotes enabled, This may work to disable it: # php_flag magic_quotes_gpc Off # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try # php_value upload_max_filesize 999M # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value post_max_size 999M # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_execution_time 200 # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_input_time 200 # 7. disable open_basedir limitations # php_admin_value open_basedir none
  17. я удалил те 2 строки, от них ошибки. ссылка, которая мне нужна - работает: http://house-tex.com/bed-linens/ranforce/set-eda-cream но эта http://house-tex.com/index.php?route=product/product&path=48_50&product_id=53 её перекрывает... мб в базу данных запрос какой написать? или что делать?(
  18. unknown, http://prntscr.com/ez48f4 очищал сотню раз, думаю, причина кроется в htaccess # SEO URL Settings RewriteEngine On # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteCond %{HTTP_HOST} ^www.site.com$ [NC] RewriteRule ^(.*)$ http://site.com/$1 [R=301,L] RewriteBase / RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
  19. Уже облазил весь интернет, перепробовал кучу вариантов, но ничего не помогает. Opencart 2.0.1.0, SeoPro: http://www.opencartjazz.com/ru/ocj-seopro-oc2 Установил все по инструкции, все работает, кроме ссылок на товары... категории отображаются верно: http://house-tex.com/bathrobes/, а вот ссылки на самом товар типа: http://house-tex.com/index.php?route=product/product&path=56&product_id=50. мне нужно, чтобы выглядело так: http://house-tex.com/bathrobes/название_товара. Как подобное реализовать? Настройки все выставлены верно, SeoUrl для товара указан, категория указана.
  20. проще отключить тот код и вручную прописать все ссылки по отдельности, спасибо за предложение)) сделал за бесплатно)
×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.