Getting Smarter Slowly Posted October 23, 2010 Posted October 23, 2010 Sometimes when I get all frustrated I have a hard time explaining myself. Maybe these next three images will help me get someone to understand the problem. . . . . . . You're never too old to learn. Even an old fart like myself loves learn and be creative. ?>if (empty($coffee)) {$coffee=new coffee();}<?
♥geoffreywalton Posted October 23, 2010 Posted October 23, 2010 Try index.php // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $image = tep_db_fetch_array($image); $image = $image['categories_image']; } ?> <td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> Have you set up images for the categories? G Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Ken44 Posted October 23, 2010 Posted October 23, 2010 Hi Dennis Those missing images are category/manufacturer images Goto Admin > Catalog > Categories/Products and upload an image for each category You will need to do the same for Admin > Catalog > Manufacturers. Hope this helps Regards Ken.
Hotclutch Posted October 23, 2010 Posted October 23, 2010 YOu can also set "images required" to false in Admin - Configuration - Images
Getting Smarter Slowly Posted October 25, 2010 Author Posted October 25, 2010 Have you set up images for the categories? G I tried index.php where it said,"// Get the right image for the top-right" On the index.php this is where the pie is right now and that is OK! I want that there. However, when I go to categories it used to have a picture in that spot (I think). If you go to categories and pic "Bars" (there are no products there right now - I know) it's kinda weird that the empty box is there with the heading title (Let's See What We Have Here). Actually if there was NOTHING there I would be happy with that too at this point! If worse comes to worse how would I set up for images for the categories? The image will be the same (the chef's hat - which is now [table_background_specials.gif]) on all pages. This is stopping me from going any further with the site. I think (?) it's almost ready to go get the products and sell. You're never too old to learn. Even an old fart like myself loves learn and be creative. ?>if (empty($coffee)) {$coffee=new coffee();}<?
a.forever Posted October 25, 2010 Posted October 25, 2010 I tried index.php where it said,"// Get the right image for the top-right" On the index.php this is where the pie is right now and that is OK! I want that there. However, when I go to categories it used to have a picture in that spot (I think). If you go to categories and pic "Bars" (there are no products there right now - I know) it's kinda weird that the empty box is there with the heading title (Let's See What We Have Here). Actually if there was NOTHING there I would be happy with that too at this point! If worse comes to worse how would I set up for images for the categories? The image will be the same (the chef's hat - which is now [table_background_specials.gif]) on all pages. This is stopping me from going any further with the site. I think (?) it's almost ready to go get the products and sell. Did you follow Hotclutch's advice on setting images required to false? If that doesn't work, you can consider other things. If you want to setup images for those categories, you should either 1) install Easy Populate (allows you to upload multiple products simultaneously, custom each product's category, and its category image), or 2) manually upload the image under Admin -> Catalog -> Categories/Products. Or if I'm understanding this PHP coding correctly, it can probably be commented out if you want the image to be the same everywhere: FIND: // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $image = tep_db_fetch_array($image); $image = $image['categories_image']; } ?> And REPLACE WITH: // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; /* if (isset($HTTP_GET_VARS['manufacturers_id'])) { $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $image = tep_db_fetch_array($image); $image = $image['categories_image']; } */ ?> Make sure table_background_list.gif is whatever image you want.
Getting Smarter Slowly Posted October 25, 2010 Author Posted October 25, 2010 a.forever, hotclutch said, "You can also set "images required" to false in Admin - Configuration - Images" . I have www/admin/ no folder that says Configuration but I do have a file that is configuration.php. In that file I see nowhere where it says "true" or "false". You're never too old to learn. Even an old fart like myself loves learn and be creative. ?>if (empty($coffee)) {$coffee=new coffee();}<?
a.forever Posted October 25, 2010 Posted October 25, 2010 a.forever, hotclutch said, "You can also set "images required" to false in Admin - Configuration - Images" . I have www/admin/ no folder that says Configuration but I do have a file that is configuration.php. In that file I see nowhere where it says "true" or "false". Hotclutch was referring that you log into your admin of osCommerce, which would be something like http://www.yoursite.com/catalog/admin/ (depending if you installed your site in catalog or not, and depending if you renamed your admin folder or not). When you log into your admin on osCommerce, you'll find a Configuration section where you can change a ton of stuff automatically.
Getting Smarter Slowly Posted October 25, 2010 Author Posted October 25, 2010 I got it now! You're never too old to learn. Even an old fart like myself loves learn and be creative. ?>if (empty($coffee)) {$coffee=new coffee();}<?
Getting Smarter Slowly Posted October 25, 2010 Author Posted October 25, 2010 If it wasn't for you typing www.yoursitename/admin I STILL wouldn't have caught that it was in the OSC Admin section because for the last 4 days I have been looking in the FTP list. I forgot that there was two sections to be working from. I hope that this might help someone else too even though I feel like an idiot! Thanks for your help now I can go on to the next step. Den You're never too old to learn. Even an old fart like myself loves learn and be creative. ?>if (empty($coffee)) {$coffee=new coffee();}<?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.