This is a discussion on Please Help Errors with Printable Catalog & Affiliate in within the osCMax v1.7 Installation forums, part of the osCMax v1.7 Forums category; I am getting this error when I click on Printable Catalog: Warning: main(templates/ osC /content/catalog_products_with_images.tpl.php): failed to open stream: No ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I am getting this error when I click on Printable Catalog: Warning: main(templates/osC/content/catalog_products_with_images.tpl.php): failed to open stream: No such file or directory in /home/sizzli2/public_html/catalog/templates/osC/main_page.tpl.php on line 52 Warning: main(templates/osC/content/catalog_products_with_images.tpl.php): failed to open stream: No such file or directory in /home/sizzli2/public_html/catalog/templates/osC/main_page.tpl.php on line 52 Fatal error: main(): Failed opening required 'templates/osC/content/catalog_products_with_images.tpl.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sizzli2/public_html/catalog/templates/osC/main_page.tpl.php on line 52 I get this error when I click affiliate information: Warning: main(templates/osC/content/affiliate_info.tpl.php): failed to open stream: No such file or directory in /home/sizzli2/public_html/catalog/templates/osC/main_page.tpl.php on line 52 Warning: main(templates/osC/content/affiliate_info.tpl.php): failed to open stream: No such file or directory in /home/sizzli2/public_html/catalog/templates/osC/main_page.tpl.php on line 52 Fatal error: main(): Failed opening required 'templates/osC/content/affiliate_info.tpl.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sizzli2/public_html/catalog/templates/osC/main_page.tpl.php on line 52 I also read that there is suppose to be an option to switch gift voucher in admin? I do not see that in my admin store I try to load images and use the \ and I get an error on line 94 Can someone please help. |
|
#2
| |||
| |||
| Hello everyone. For those that have the switch template option.... I managed to fix the issue with affiliate and printable catalog. I am not sure if this will create a mess on my site but it has resolved the error issue. I went into templates/aabox/content/ and copied catalog_products_with_images.tpl.php then I pasted it into templates/osC/content/ that fixed my printable catalog. I then went into templates/aabox/content/ and copied all the affiliate info files and pasted them in 'templates/osC/content/ this resolved my affiliate error. Now I am working on sorting my product attributes size dropdown box (small, medium, large, etc) the order showing up is reverse to what I put (large, medium, small) if someone can help me with this I would appreciate it. Thanks. |
|
#3
| |||
| |||
| Hello, I have managed to answer my own question for the osC template. I hope this answer will help many with the same question? If you have the option to switch templates and you are using the osC template this is the fix for the sort order in product attributes: Go to catalog/templates/ osc/content and on line 88 you will see this: $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"); Change to this if you don’t want to worry about alphabetic or numeric order That way you are not stuck with alphabetic, or numeric ordering, you can control the order that the attributes show according to the order that you enter them. $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"."order by pov.products_options_values_id"); (I used this one, and it worked great) Change to this for sort by attribute value: $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'". "order by pov.products_options_values_name" ); with this one Then in your product attributes just make sure your values are set up alphabetically Try both and see wich one works for you |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with printable catalog | hrhstephen | osCMax v2 Customization/Mods | 2 | 09-03-2005 03:33 PM |
| Help With Printable Catalog | Makrin | osCMax v2 Customization/Mods | 1 | 08-25-2005 12:00 PM |
| Affiliate and Printable Catalog problems after upgrade... | Anonymous | osCMax v1.7 Discussion | 3 | 06-12-2004 11:57 AM |
| Need help with printable catalog | crujones | osCMax v1.7 Discussion | 1 | 09-13-2003 09:37 PM |
| Printable Catalog HELP!! | Arpit | osCommerce 2.2 Modification Help | 2 | 06-03-2003 04:56 AM |