Page 1 of 1

Vqmod error when hiding "out of stock" products

Posted: Sat May 03, 2014 7:57 pm
by ovidiut
Hello! I'm using a vqmod for hiding the out of stock products (stock "0") but I keep getting those errors in the products' pages:

Notice: Undefined index: name in /home2/petadmin/public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 101Notice: Undefined index: keyword in /home2/petadmin/public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 102

From what I see, it had to do with the breadcrumb trail, in catalog/controller/product/product.php, but I don't know how to get rid of this error:

Code: Select all

                $this->data['breadcrumbs'][] = array(
                    'text'      => $manufacturer_info['name'],
                    'href'      => HTTP_SERVER."brand/".$result2->row['keyword']."/".$result->row['keyword'],
                    'separator' => $this->language->get('text_separator')
                );

Does anybody have an idea about what I must do? I'm using Opencart 1.5.1.
Thank you very much!

Re: Vqmod error when hiding "out of stock" products

Posted: Thu May 08, 2014 8:42 am
by NoJoke
Is it possible for you to attach the the vqmod file that you are using?

Re: Vqmod error when hiding "out of stock" products

Posted: Fri May 09, 2014 1:38 am
by ovidiut
Yes, of course!

I'm using this extension: http://www.opencart.com/index.php?route ... on_id=7174

And I have attached the vqmod.

Thank you very much!

Re: Vqmod error when hiding "out of stock" products

Posted: Sat May 10, 2014 9:40 am
by NoJoke
The errors weren't there before you installed this file? If you delete the file from the vqmod folder do the errors go away?

Re: Vqmod error when hiding "out of stock" products

Posted: Sat May 10, 2014 10:55 pm
by ovidiut
Yes, when I delete this vqmod the errors disappear, but the out of stock products are back on the website.

Re: Vqmod error when hiding "out of stock" products

Posted: Mon May 12, 2014 10:11 am
by NoJoke
Can you attach your catalog/model/catalog/product.php file?

Thanks

Re: Vqmod error when hiding "out of stock" products

Posted: Wed May 14, 2014 5:22 am
by ovidiut
Yes, sure! Thank you very much!

Re: Vqmod error when hiding "out of stock" products

Posted: Wed May 14, 2014 11:25 am
by NoJoke
I have looked over both files and don't see anything in both of them that would cause this error. Are there any other vqmod files that you use that target the product page? If not do you have a link to your site that I could see the error?

Thanks again

Re: Vqmod error when hiding "out of stock" products

Posted: Thu May 15, 2014 3:36 pm
by ovidiut
Hello!

A page with of an out of stock product is http://www.petpal.ro/caini/hrana-uscata ... light-15kg

The error appears in the header.
Thank you very much!

Re: Vqmod error when hiding "out of stock" products

Posted: Fri May 16, 2014 7:57 am
by NoJoke
You can try the file that I have attached below, it is the same file that you have but I just changed some of the spacing of certain things to see if that is what was giving you the issue.

Re: Vqmod error when hiding "out of stock" products

Posted: Mon Jun 09, 2014 9:49 pm
by ovidiut
Hi!

I've tried your file but the error was still there. After a while, I realised that had something to do with manufacturers. I found another extension, now everything is fine. Thank you very much for your support!