leonlism / vqmod

Automatically exported from code.google.com/p/vqmod
0 stars 0 forks source link

Failing 'include' functions #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installing vQmod
2.
3.

What is the expected output? What do you see instead?

In several instances I expect to see the options drop down menu, related 
products, and item viewing options.  However, what is supposed to be seen is 
replaced by this instead (because I have errors set to be shown in my admin):

Product options

Warning: include(includes/options.tpl) [function.include]: failed to open 
stream: No such file or directory in 
/home1/martiao7/public_html/vqmod/vqcache/vq2-catalog_view_theme_simple_template
_product_product.tpl on line 102Warning: include() [function.include]: Failed 
opening 'includes/options.tpl' for inclusion 
(include_path='.:/usr/share/pear:/usr/share/php') in 
/home1/martiao7/public_html/vqmod/vqcache/vq2-catalog_view_theme_simple_template
_product_product.tpl on line 102

related products

Warning: include(includes/related.tpl) [function.include]: failed to open 
stream: No such file or directory in 
/home1/martiao7/public_html/vqmod/vqcache/vq2-catalog_view_theme_simple_template
_product_product.tpl on line 140Warning: include() [function.include]: Failed 
opening 'includes/related.tpl' for inclusion 
(include_path='.:/usr/share/pear:/usr/share/php') in 
/home1/martiao7/public_html/vqmod/vqcache/vq2-catalog_view_theme_simple_template
_product_product.tpl on line 140

sort options on a tab page

Warning: include(includes/filter.tpl) [function.include]: failed to open 
stream: No such file or directory in 
/home1/martiao7/public_html/vqmod/vqcache/vq2-catalog_view_theme_simple_template
_product_category.tpl on line 50Warning: include() [function.include]: Failed 
opening 'includes/filter.tpl' for inclusion 
(include_path='.:/usr/share/pear:/usr/share/php') in 
/home1/martiao7/public_html/vqmod/vqcache/vq2-catalog_view_theme_simple_template
_product_category.tpl on line 50

vQmod Version:  2.3
Server Operating System: linux

Please provide any additional information below.

Original issue reported on code.google.com by cjhelsto...@gmail.com on 2 Feb 2013 at 6:58

GoogleCodeExporter commented 9 years ago
These are not vQMod errors! Whoever your 'filter' mod is written by needs 
contacting, or the 'simple template' designer

Original comment by DJG6...@gmail.com on 2 Feb 2013 at 7:00

GoogleCodeExporter commented 9 years ago
I have it all fixed up now.

Thank you for your kind response...

Original comment by cjhelsto...@gmail.com on 2 Feb 2013 at 10:09

GoogleCodeExporter commented 9 years ago
I have the same problem. Can you tell me how to fix it?

Original comment by anastasi...@means4.com on 3 Apr 2013 at 10:05

GoogleCodeExporter commented 9 years ago
For anyone else who encounters a similar issue, this may be helpful:
http://forum.opencart.com/viewtopic.php?f=21&t=42461

Quoting:
----------------------------------

I noticed a few theme makers are splitting off the options and other bits into 
separate tpl files. Then using include/require to include them into the overall 
page. This is fine but may I ask for a slight change.

The method you use to include them is:

    require 'product_options.tpl';

This causes problems for vQmod scripts that need to alter parts of the page 
because it uses a relative path to the product.tpl file instead of a relative 
path to the controller.

please instead use:

    require 'catalog/view/theme/<themename>/template/product/product_options.tpl'

This will resolve the issues.

Original comment by j...@tekretic.tk on 16 Jul 2013 at 2:27