Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't find header


Guest

Recommended Posts

Hi, I work at a store called Neural Net Inc. We are an apple reseller.

 

Recently I have been changing our website to remove all flash so that people with iphones / ipod touches can view our site.

 

Everything went fine until I had to change the header in the store.

I was not the person who set up the OS Commerce originally.

 

http://www.neural-net.ca/store

 

As you can see the header is flash, now when I view the source of the index of the store through a web browser it shows the html where the header src is located etc, but when I download the index.php file non of that is in there.

 

There is no .swf file in header.php

 

I am new to .php but know my way around html enough to usually have the ideas on how to fix and change things.

I was just wondering if anyone could tell me where i might locate the html portion of the index of the store so I can edit and change the header from a .swf to a standard html layout.

Link to comment
Share on other sites

Hi, I work at a store called Neural Net Inc. We are an apple reseller.

 

Recently I have been changing our website to remove all flash so that people with iphones / ipod touches can view our site.

 

Everything went fine until I had to change the header in the store.

I was not the person who set up the OS Commerce originally.

 

http://www.neural-net.ca/store

 

As you can see the header is flash, now when I view the source of the index of the store through a web browser it shows the html where the header src is located etc, but when I download the index.php file non of that is in there.

 

There is no .swf file in header.php

 

I am new to .php but know my way around html enough to usually have the ideas on how to fix and change things.

I was just wondering if anyone could tell me where i might locate the html portion of the index of the store so I can edit and change the header from a .swf to a standard html layout.

The header file is in the includes directory.

Link to comment
Share on other sites

<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>

 

Is what the header.php file looks like around where the file link is supposed to be but its not it seems.

Link to comment
Share on other sites

The header file is in the includes directory.

 

 

I Found the header file :)

But it seems the code in which you are suppose to link to the header image or flash, does not seem to be header.swf as is listed in the html of the page source.

Link to comment
Share on other sites

I Found the header file :)

But it seems the code in which you are suppose to link to the header image or flash, does not seem to be header.swf as is listed in the html of the page source.

In the header file, do you see anything between lines that look like this?

 

<!-- start get_javascript(applicationtop2header) //-->

 

<!-- end get_javascript(applicationtop2header) //-->

 

Also, look for the application top file referenced.

Link to comment
Share on other sites

In the header file, do you see anything between lines that look like this?

 

<!-- start get_javascript(applicationtop2header) //-->

 

<!-- end get_javascript(applicationtop2header) //-->

 

Also, look for the application top file referenced.

 

the only reference to that in the header.php is the following

$sts->restart_capture ('applicationtop2header');

 

You think that header.swf would exist somewhere in the code since it clearly shows it in the source code when viewed in a browser. I would think there would be a index.html alongisde the index.php file but i just can't find any files like that.

 

If I look through the application_top.php the only header refrences are

 

  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

and

 

  if (strlen(DB_SERVER) < 1) {
if (is_dir('install')) {
  header('Location: install/index.php');
}
 }

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...