for that undefined index product_info
error
In the vqmod (xml file in vqmod/xml
directory) of your related product extension
replace
(int)$this->data['product_info']['manufacturer_id']
with
(int)$product_info['manufacturer_id']
Question
I can not use vqmod. When ı click vqmod in admin panel it says
VQMod does not appear to be properly generating vqcache file
I use also auto related products xml. caused by this thing? I don't know.
Also some product pages says that
Notice: Undefined index: product_info in /home/elmaicom/domains/elmacimarketi.com/public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 416
It belongs to:
> //related by manufacturer
> if(count($results)<3 && (int)$this->data['product_info']['manufacturer_id'] > 0){//change to
> suit number of products to display
> $temp = $this->model_catalog_product->getProductRelatedByManufacturer($this->data['product_info']['manufacturer_id'],$this->request->get['product_id'],count($results));
> foreach($temp as $t){
> if(!empty($t)){
> $results[] = $t;
> }
> }
> }
Help please. I have to use vqmod.
Solution 3
for that undefined index product_info
error
In the vqmod (xml file in vqmod/xml
directory) of your related product extension
replace
(int)$this->data['product_info']['manufacturer_id']
with
(int)$product_info['manufacturer_id']
OTHER TIPS
This
Move any vqmod xml file outside the vqmod folder and check. If everything works, move the xml back to the vqmod folder. I don’t know the reason, but it worked for me in some cases :) !
Also worked for me
Check the following:
<vqmver><![CDATA[version]]></vqmver>
), both need to be the same.<?xml version=”1.0″ encoding=”UTF-8″?
– put this line at the top of the XML to make it valid and more compatible.Reference link: Opencart Vqmod tutorial
vQmod doesn't have an admin interface, so it's probably a tool like vQmoderator or vQmod manager you are referring to. In regards to the cache files not generating correctly, this is almost certainly down to file permissions. Make sure your permissions set on /vqmod/vqcache/
are set to the same as your /system/cache/
folder
Never too late: try removing mods.cache
file.
www-data will regenerate it for you again.
Refresh vQmod Manager on admin panel.
** make sure you set admin user group premissions