Jawn <spammersRlosers RemoveThis @spamcop.net> wrote in message news:<MPG.19eb832fb7c2ef879897b4 RemoveThis @pdx.news.speakeasy.net>...
> In article <GJ4gb.7877$qw.888513@twister.tampabay.rr.com>,
> mimages RemoveThis @NOSPAMspvision.com says...
> > Is it possible to customize the header or logo in an OS Commerce shopping
> > cart so that it doesn't say OSCommerce? I'd really rather have my own logo
> > up there, if possible.
>
> Absolutely. Indeed, that's the beauty of an open-source solution like
> OSCommerce; it can be customized to your heart's content. Some of the
> sites featured in the live shop showcase
> (http://www.oscommerce.com/shops/live) bear virtually no resemblance to
> a stock OSC site.
The images at the top of the page (logo and standard buttons) are
produced by the header.php file which is found under the osCommerce
installation folder.
../includes/header.php
The section you want contains the reference to oscommerce.gif
In osCommerce 2.2 MS1, the table containing the image and buttons can
be found beginning at line 51 of header.php (your installation may
differ), but it looks a lot like this:
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="header">
<td valign="middle"><?php echo tep_image(DIR_WS_IMAGES .
'oscommerce.gif', 'osCommerce'); ?></td>
<td align="right" valign="bottom"><?php echo '<a href="' .
tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' .
tep_image(DIR_WS_IMAGES . 'header_account.gif',
HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' .
tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') . '">' .
tep_image(DIR_WS_IMAGES . 'header_cart.gif',
HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' .
tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' .
tep_image(DIR_WS_IMAGES . 'header_checkout.gif',
HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td>
</tr>
</table>
Note the embedded php echos - which all use the functions tep_image.
This function builds the image/link reference and passes the session
ID where appropriate.
This function is found in the folder functions which is under the
osCommerce includes folder (again, found under the installation
folder), more specifically, it's found in the file html_output.php.
you just need to get to grips with what files default.php (found in
the catalog installation folder) pulls together to understand how the
site design hangs together - each of those files should be easy to
understand - they are just php, and you should be able to underand
what they are doing without being a php wizard. If you can't read
HTML and understand what is being done, you will have problems reading
these files.
regards
Greg Hewitt-Long
--
<a style='text-decoration: underline;' href="http://aaabusinesshosting.com/oscommerce_hosting" target="_blank">http://aaabusinesshosting.com/oscommerce_hosting</a>
<a style='text-decoration: underline;' href="http://www.webyourbusiness.com/" target="_blank">http://www.webyourbusiness.com/</a><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: OS Commerce customization