osCmax v2.5 User Manual
Results 1 to 8 of 8

How do you change the OSCOMMERCE logo with your store logo

This is a discussion on How do you change the OSCOMMERCE logo with your store logo within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I cant seem to figure out how to get that logo out of there, I tried the database and the ...

      
  1. #1
    Lurker
    Join Date
    Sep 2004
    Posts
    1
    Rep Power
    0


    Default How do you change the OSCOMMERCE logo with your store logo

    I cant seem to figure out how to get that logo out of there, I tried the database and the heading.php file, but nothing seems to work. The only option I have left is to replace the image on the server, however it will then still be images/oscommerce.gif and I want it to my image name. So that means I gotta change it somewhere on the site, how do I do that?

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    Langhorne, PA
    Posts
    31
    Rep Power
    0


    Default

    catalog/include/header.php
    Change:

    <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'Oscommerce') . '</a>

    Mine reads:

    <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.gif', 'NRSF') . '</a>

  3. #3
    909
    909 is offline
    New Member
    Join Date
    Sep 2004
    Posts
    15
    Rep Power
    0


    Default

    Is it possible to replace the header image with flash?? My main site is all built in flash and it would be much easier to use the existing header etc.. than try to duplicate it with static content.

    Thanks!

  4. #4
    Member
    Join Date
    Aug 2004
    Posts
    41
    Rep Power
    0


    Default

    Hi,

    This is the table that holds up all of the top portion of oscommerce,

    Approx. line 54 of includes/header.php

    Code:
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr class="header">
        <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></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) . '">' . 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>
    if you wish to change the entire layout to a flash based header, just do the flash inside this

    Code:
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr class="header">
        <td>Your flash thing here</td>
      </tr>
    </table>
    Play around it till you get the feel.

    As for Matias, the only reason I see why you are not able to change the header.php file is that your ftp program is set not to over-write what is currently existing on the server, you might want to rename the file on the server first before uploading the new edited header.php, you can change the logo simple by putting the logo name similar to what AnnieChrist did.

    Hope it helps,
    Paul

    Mabuhay ang Pilipino

  5. #5
    909
    909 is offline
    New Member
    Join Date
    Sep 2004
    Posts
    15
    Rep Power
    0


    Default

    Paul, We're getting somewhere now but not quite there yet. I found out that the call is actually happening from within /catalog/templates/aabox/main_page.tpl.php since i'm running max and using a modified version of the aabox template to learn how to do this stuff. I added the call as you said but just getting a white box, no header. Here is the code and i've already tried creating a /flash/header.swf file just about everywhere with no luck. I tried calling a few layers deep to be sure and got nada. I'm thinking the call is incorrect at this point. I'd appreciate anyone's input as to what i'm doing wrong here, i'm sooooo close!!

    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr class="header">
    <td><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="759" height="233">
    <param name="movie" value="flash/header.swf">
    <param name="quality" value="high">
    <param name="wmode" value="transparent">
    <param name="BASE" value="flash">
    <embed src="flash/header.swf" width="759" height="233" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" base="flash" wmode="transparent">
    </embed>
    </object>
    </td>
    </tr>
    </table>

  6. #6
    Member
    Join Date
    Aug 2004
    Posts
    41
    Rep Power
    0


    Default

    Hi,

    try this way

    <param name="movie" value="http://www.yoursite.com/flash/header.swf">

    point it to where exactly your flash file is, it may be a case of an incorrect path.


    Paul

  7. #7
    Lurker
    Join Date
    Oct 2004
    Posts
    1
    Rep Power
    0


    Default

    This is the only thread I can find after hours of searching! I too wish to put a flash.swf insert into the header.php - Is it possible for anyone to point me at a working header.php?

  8. #8
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    9


    Default

    actually the code for flash from macromedia needs to go into application top.......

Similar Threads

  1. PRINT INVOICE with store LOGO???
    By Kyle_Bassett in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 10-18-2005, 07:27 PM
  2. Change Header Logo
    By mcheerios in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 10-03-2005, 09:14 AM
  3. How can I change the default logo on the top, and the scroll
    By Redeye_Joe in forum osCmax v2 Customization/Mods
    Replies: 6
    Last Post: 06-22-2005, 06:00 PM
  4. Where do I change my store logo?
    By jak211 in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 01-02-2005, 04:32 PM
  5. Problem with osC-PrintOrder with Store Logo v1.0
    By knullhund in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 03-26-2004, 05:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •