Jump to content
Sign in to follow this  
vetlblya

Конфликт модулей

Recommended Posts

При одновременной установке модулей Intelligent Product Labels & Images v. 2.7.8.1 и ProScroller-1.5.x на OpenCart 1.5.6.4, разрабатываю на дефолтной теме, выдаются ошибки:

 

  • Notice: Undefined variable: product in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\stroyopt\vqmod\vqcache\vq2-catalog_controller_module_proscroller.php on line 253
  • Notice: Undefined variable: product in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\stroyopt\vqmod\vqcache\vq2-catalog_controller_module_proscroller.php on line 253
  • Notice: Undefined variable: product in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\stroyopt\vqmod\vqcache\vq2-catalog_controller_module_proscroller.php on line 253
  • Notice: Undefined variable: product in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\stroyopt\vqmod\vqcache\vq2-catalog_controller_module_proscroller.php on line 253
  • Notice: Undefined variable: product in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\stroyopt\vqmod\vqcache\vq2-catalog_controller_module_proscroller.php on line 253

 

но при этом оба модуля работают без проблем. можно было бы отключить вывод Notice, но магазин только начал разрабатывать и, боюсь появления более страшных ошибок в дальнейшем.

 

Пробовал закомментить эту строку появляются:

  • Notice: Undefined index: product_id in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\stroyopt\system\library\label.php on line 360
  • Notice: Undefined index: product_id in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\stroyopt\system\library\label.php on line 360
  • Notice: Undefined index: product_id in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\stroyopt\system\library\label.php on line 360
  • Notice: Undefined index: product_id in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\stroyopt\system\library\label.php on line 360
  • Notice: Undefined index: product_id in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\stroyopt\system\library\label.php on line 360

 

Есть ли способ с ними справиться?

Share this post


Link to post
Share on other sites

всё ж написано - бери, да исправляй.

ШОНАДО?

Share this post


Link to post
Share on other sites

в файле /vqmod/xml/dbassa_adca_intelligent_product_labels.xml   найди строку $mylabels->product_info = $product; и замени на 

$mylabels->product_info = $product_info;

Share this post


Link to post
Share on other sites

в файле /vqmod/xml/dbassa_adca_intelligent_product_labels.xml   найди строку $mylabels->product_info = $product; и замени на 

$mylabels->product_info = $product_info;

 

Потом выскакивает в категориях Undefined variable: product_info in /vq2-catalog_controller_module_proscroller.php on line 162

Share this post


Link to post
Share on other sites

Победил данное недорозумение. 
 
с файла /vqmod/xml/dbassa_adca_intelligent_product_labels.xml удаляем код в <file path="catalog/controller/module/" name="proscroller.php" error="skip">

 


$this->data['products'][] = array(
]]>
/* start - ipl extension - dbassa */

$mylabels = new Label($this->registry);

$mylabels->labels = $config_labels;
$mylabels->product_info = $product;
$mylabels->current_layout = $current_layout;
$mylabels->current_layout_position = $setting['position'];
$mylabels->products_featured = $products_featured;
$mylabels->bestsellers = $bestsellers;
$labels = $mylabels->RenderLabels();

/* end - ipl extension - dbassa */
]]>

 

Далее в catalog/controller/module/proscroller.php

 

перед первым $this->data['products'][] = array( ВСТАВЛЯЕМ:

 

$mylabels = new Label($this->registry);

$mylabels->labels = $config_labels;
$mylabels->product_info = $product;
$mylabels->current_layout = $current_layout;
$mylabels->current_layout_position = $setting['position'];
$mylabels->products_featured = $products_featured;
$mylabels->bestsellers = $bestsellers;
$labels = $mylabels->RenderLabels();

 

перед вторым $this->data['products'][] = array( ВСТАВЛЯЕМ:

 

$mylabels = new Label($this->registry);

$mylabels->labels = $config_labels;
$mylabels->product_info = $product_info;
$mylabels->current_layout = $current_layout;
$mylabels->current_layout_position = $setting['position'];
$mylabels->products_featured = $products_featured;
$mylabels->bestsellers = $bestsellers;
$labels = $mylabels->RenderLabels();

Share this post


Link to post
Share on other sites

http://www.opencart.com/index.php?route=extension/extension/info&extension_id=11290

 

Мод этот платный.Ошибка была его найти на варезнике и искать помощи здесь.Совет: проверить  магазин на наличие шеллов,которые явно уже давно прижились и выполняют свою задачу.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.