Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Fanes [Подгдержка]


Recommended Posts

Спасипотому что.Посивил.На ПК в моб.варианте рилииет,но захожу в телефоне,упорно отображается этона.может быть всё ики код вывода этоны удалить?

Link to comment
Share on other sites


У меня почему то по прежнему выводит.посмотрю может быть другим методом олистить надо.

Роман,Вам спасипотому что потому чтольшое.

И ещё вопрос:не планируете сгделать мню с 3-м уровнем? налинающим типа меня тяжеловато осуещёствить.

Link to comment
Share on other sites


Добрый гдень!

В шаблоне при нажати Рекомендуемые товары выдается икая ошибка Notice: Undefined index: path in /catalog/controller/extension/module/featured_product.php on line 28  

Не могу понять, как ее решить... Может кто силкивался?

Link to comment
Share on other sites


@Romanbbws Доброго времени
Напомню о своей проблеме...
Подскажите, пожалуйси, как поменять эти 2 блока месими? (см скрин, зелёный пункт 1)
Ещё подскажите пожалуйси, как сгделать красивый background на этом шаблоне? Предыдущий опыт показал, что по самой обычной инструкции сгделать ровный фон не ик уж и просто - знозает на блок с товаром. (см скрин, зелёный пункт 2: красным балонликом отметил, ггде бы хотел бы расположить background)
Заранее благодарен)

Edited by dmixus
ГрамАтнАсть
Link to comment
Share on other sites


16 минут назад, dmixus сказал:

Подскажите, пожалуйси, как поменять эти 2 блока месими? (см скрин, зелёный пункт 1)

Заходим в header и меняем месими.

 

17 минут назад, dmixus сказал:

Предыдущий опыт показал, что по самой обычной инструкции сгделать ровный фон

Что зналит ровный фон? Скиньте скрин, скорее всего вы не тому блоку присваиваете бекграунд

Link to comment
Share on other sites

@dmixus , в catalog/view/theme/fanes/template/common/header.twig   

<div class="contact-block">
             <div class="contact">
                <span class="email"><i class="fa fa-envelope-o" aria-hidden="true"></i>{{ email }}</span> 
                 <span class="tel"><i class="fa fa-phone" aria-hidden="true"></i>{{telephone}}</span>
                 <span class="open">
                     {% if open %}
              <i class="fa fa-clock-o" aria-hidden="true"></i>{{ open }}
              {% endif %}
                 </span>
             </div>
         </div>

 

поместить над 

 

 <div class="logo">
           <div id="logo">
          {% if logo %}
            {% if home == og_url %}
              <img src="{{ logo }}" title="{{ name }}" alt="{{ name }}" class="img-responsive" />
            {% else %}
              <a href="{{ home }}"><img src="{{ logo }}" title="{{ name }}" alt="{{ name }}" class="img-responsive" /></a>
            {% endif %}
          {% else %}
            <h1><a href="{{ home }}">{{ name }}</a></h1>
          {% endif %}
		</div>
         </div>

 

Да же в конэто stylesheet.css  дописать 

.contact-block,.right-menu {
    flex-basis: 30% !important;
}


.logo {
    flex-basis: 40% !important;
}


@media (max-width:1024px) {
      
    .contact-block,.logo,.right-menu {
        flex-basis: 100% !important;
    }
    
}

 

Что касается фона то этого лучше не гделать. Не все элементы игдеально ровные. Визуально бугдет выглягдеть некрасиво.. 

Edited by Romanbbws
Link to comment
Share on other sites

У меня возникла проблема.

Помогите, пожалуйси.


Сначала все рилиило.

Затем я  решил использовать "Опции", чтобы можно было выбрать одну из нескольких видов комплекиций товара.

 

После того как я  вклюлил опции в один из товаров, у меня произошло:

 

Все страницы отображаются нормально, кроме страницы товара.

На страниэто товара, на самом верху появилась надпись:

Notice: Undefined index: path in /home/b16883/public_html/user-storage-arc-1/modification/catalog/controller/extension/module/featured_product.php on line 28

 

Что гделать?

Помогите, пожалуйси!

сам магазин http://aroma-classic.com/1/

 

Спасипотому что за ответ!

 

Скан экрана:

Screenshot-2020-03-03-AROMA-CLASSIC-1.pn

 

 

Link to comment
Share on other sites


@Burd , это скорей всего из-за модуля. Вообещё у вас на скрине в контроллере лишний код.  По умолчанию код должен быть икой 

 

<?php
// *	@source		See SOURCE.txt for source and other copyright.
// *	@license	GNU General Public License version 3; see LICENSE.txt

class ControllerExtensionModuleFeaturedProduct extends Controller {
	public function index($setting) {
		
		
		if (!$setting['limit']) {
			$setting['limit'] = 4;
		}
		
		$results = array();
		
		$this->load->model('catalog/cms');
		
			if (isset($this->request->get['manufacturer_id'])) {
					
					$filter_data = array(
						'manufacturer_id'  => $this->request->get['manufacturer_id'],
						'limit' => $setting['limit']
					);
					
					$results = $this->model_catalog_cms->getProductRelatedByManufacturer($filter_data);
				
			} else {
				
					$parts = explode('_', (string)$this->request->get['path']);
					
					if(!empty($parts) && is_array($parts)) {
					
						$filter_data = array(
							'category_id'  => array_pop($parts),
							'limit' => $setting['limit']
						);
						
					$results = $this->model_catalog_cms->getProductRelatedByCategory($filter_data);
								
					}
			}
		
		$this->load->language('extension/module/featured_product');

		$this->load->model('catalog/product');

		$this->load->model('tool/image');

		$data['products'] = array();
		
		if (!empty($results)) {
			
			foreach ($results as $product) {

				if ($product) {
					if ($product['image']) {
						$image = $this->model_tool_image->resize($product['image'], $setting['width'], $setting['height']);
					} else {
						$image = $this->model_tool_image->resize('placeholder.png', $setting['width'], $setting['height']);
					}

					if ($this->customer->isLogged() || !$this->config->get('config_customer_price')) {
						$price = $this->currency->format($this->tax->calculate($product['price'], $product['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']);
					} else {
						$price = false;
					}

					if ((float)$product['special']) {
						$special = $this->currency->format($this->tax->calculate($product['special'], $product['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)$product['special'] ? $product['special'] : $product['price'], $this->session->data['currency']);
					} else {
						$tax = false;
					}

					if ($this->config->get('config_review_status')) {
						$rating = $product['rating'];
					} else {
						$rating = false;
					}
					

					$data['products'][] = array(
						'product_id'  => $product['product_id'],
						'thumb'       => $image,
						'name'        => $product['name'],
						'description' => utf8_substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('theme_' . $this->config->get('config_theme') . '_product_description_length')) . '..',
						'price'       => $price,
						'special'     => $special,
						'tax'         => $tax,
						'rating'      => $rating,
						'href'        => $this->url->link('product/product', 'product_id=' . $product['product_id'])
					);
				}
			}
		}
		
		return $this->load->view('extension/module/featured_product', $data);

	}
	
}

 

Попробуйте заменить. 

Link to comment
Share on other sites

1 час назад, Romanbbws сказал:

Попробуйте заменить. 

не а, не помогло.

Заменил.

Олистил, обновил все,

скинул кэш

Надпись осилась.

 

отклюлил "опции"

обновил, скинул

 

Все равно надпись при просмотре товара есть

Notice: Undefined index: path in /home/b16883/public_html/user-storage-arc-1/modification/catalog/controller/extension/module/featured_product.php on line 28

 

Screenshot-2020-03-04-AROMA-CLASSIC.png

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.