Search code examples
phpopencartvqmod

VQMod does not appear to be properly generating vqcache files


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

  • 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']