mike88 Posted March 15, 2006 Posted March 15, 2006 Dear All, I'm a newbie to osCommerce and has minimum knowledge in php, I do have good understanding of HTML and Javascript. So far, I managed to install osCommerce off my web host's script library, modified the stylesheet.css, header.php and index.php to create the look & feel I needed for my current project. Just as I thought everything is looking right, I discovered a missing image on the top of the main body text where it said "Let's See What We Have Here" after performing a product search. I've looked through dozens of the php files on the server and cannot find any reference to that part of the page, the closest I have found was the definition of the text string "Let\'s See What We Have Here", but I cannot find where it creates the html for the image, nor the alt text. The HTML output on the page shows that the <img src ...> tag just points to the images folder with no specified image file. I noticed if one clicks on a particular product and then select the manufacturer link on the right hand column, the same display on the top of the page will show the specified manufacturer logo correctly. So the problem only occurs if I either do a search or click on the product category on the left hand column. Can anyone advise how to fix this little problem? P.S. Are we allowed to post URL on here to illustrate the problem?
jasonabc Posted March 15, 2006 Posted March 15, 2006 you just need to assign an image to that category. Highlight it in the Amin Tool, click Edit and upload the image from there. If you have no category images then just remove this line of code (around line 237): <?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE); ?> Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
mike88 Posted March 16, 2006 Author Posted March 16, 2006 you just need to assign an image to that category. Highlight it in the Amin Tool, click Edit and upload the image from there. If you have no category images then just remove this line of code (around line 237): <?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE); ?> Hi Jason, Thank you very much for your amazingly quick reply! Just another quick question, which file is that line in? I have to go out for a few hours, will have a look at this again when I get back. Cheers Michael
jasonabc Posted March 16, 2006 Posted March 16, 2006 the text you refer to is in /catalog/includes/languages/english/index.php: define('HEADING_TITLE', 'Let\'s See What We Have Here'); The line of code you can remove if none of your categories have images is index.php in your store root directory. cheers Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
gonebored Posted March 16, 2006 Posted March 16, 2006 the text you refer to is in /catalog/includes/languages/english/index.php: define('HEADING_TITLE', 'Let\'s See What We Have Here'); The line of code you can remove if none of your categories have images is index.php in your store root directory. cheers You can also use white blocks, as the image, that way if you want some categories to have images, you can, while keeping the others blank.
Edze Posted March 16, 2006 Posted March 16, 2006 You can also use white blocks, as the image, that way if you want some categories to have images, you can, while keeping the others blank. Hi, Just go to Admin - Images - Image Required: false This way you can choose to add pictures to some categories and products and not add pictures to other categories and products. If you use white blocks, you cannot change the background color. You could also use a picture with only one pixel. Regards, Edze
mike88 Posted March 16, 2006 Author Posted March 16, 2006 Hi, Just go to Admin - Images - Image Required: false This way you can choose to add pictures to some categories and products and not add pictures to other categories and products. If you use white blocks, you cannot change the background color. You could also use a picture with only one pixel. Regards, Edze Perfect, 10 out of 10, thanks guys for all your help, problem solved! I would never work out that "image" setting is related, my interpretation would be to turn all images off and not thinking it's just for the place holder image.
mike88 Posted March 16, 2006 Author Posted March 16, 2006 Perfect, 10 out of 10, thanks guys for all your help, problem solved! I would never work out that "image" setting is related, my interpretation would be to turn all images off and not thinking it's just for the place holder image. I am afraid I spoke too soon. By turning off the images option in Admin, the products images no longer display in zoomed mode, i.e. when you click on a product photo to zoom in, it only display a blank pop up window. I'll try out the other suggestions shortly and report back here.
mike88 Posted March 16, 2006 Author Posted March 16, 2006 I am afraid I spoke too soon. By turning off the images option in Admin, the products images no longer display in zoomed mode, i.e. when you click on a product photo to zoom in, it only display a blank pop up window. I'll try out the other suggestions shortly and report back here. Jason, commented out the line ... <?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE); ?> from the index.php located in the root folder of the shopping cart and it appears to have fixed the problem. Thanks again for all the suggestions from everyone. Now a curve ball, does anyone know about integrating Paypal with osCommerce?
jasonabc Posted March 16, 2006 Posted March 16, 2006 install the Paypal module in Modules > Payment Enter your PayPal email address. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
Recommended Posts
Archived
This topic is now archived and is closed to further replies.