Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Header


thejazzsinger

Recommended Posts

In the header.php I find it seems very difficult to distinguish between php and html.

 

I want to 'brand' my osCom with one of my images.

 

Is this,

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?>

 

 

the code for the osCommerce main logo?

 

 

When I changed it to this,

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'Trio_small.jpg', 'paulbentleymusic.com') . '</a>'; ?>

 

 

I got this error,

 

 

Warning: main(includes/header.php): failed to open stream: No such file or directory in /home/sites/paulbentleymusic.com/public_html/eshop/index.php on line 45

 

Warning: main(includes/header.php): failed to open stream: No such file or directory in /home/sites/paulbentleymusic.com/public_html/eshop/index.php on line 45

 

Fatal error: main(): Failed opening required 'includes/header.php' (include_path='.:/usr/share/pear') in /home/sites/paulbentleymusic.com/public_html/eshop/index.php on line 45

 

 

Can someone dumb it down for me. :blush:

 

 

Is DIR_WS_IMAGES the image file in osCom. Is that different from the file that just says

 

Thanks in advance.

 

thejazzsinger :-"

Link to comment
Share on other sites

There's nothing wrong with the code you posted that would cause such an error that I can see. Try deleting the code and see if it still fails.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...