Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help me, I need 2 files immediately


aviator-shop

Recommended Posts

Posted

I was trying to set store logo at the center of the main page and I modify files .../includes/application_top.php and .../includes/header.php . Now my store doesent work;/ If anybody can copy me here this files I will be very happy. Please help me soon...

Posted

v2.2 RC2 but I've already fix it by bacup my database;) Everything work correctly;) But I still don't know how move store_logo.png from left side of the top of index.php to the center...

Posted

In a vanilla RC2 installation, this table in includes/header.php has the logo:

 

<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 . 'store_logo.png', STORE_NAME) . '</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>

 

That table has 2 cells so you wont get your logo truly centered, unless you put it in its own, single cell or set it, or part of it at least, as a background image.

 

If your logo is small, you could set a width to the cell you are placing it in and then give the cell an align="right" attribute. That would work best in a fix width site.

Posted

If I write phrase <center> </center> in a correct place it could be ok? it is the simplest way to move my store_logo to the center of my page. But unfortunately I don't know exactly in what place I should write this phrase. I tried once and I broke my shop. I'm afraid to try it again;)

Posted

As I said, there are 2 cells in that table so if you use the center attribute, you will only center the image within its own cell. If you want it centered on the page, you need to get creative.

 

What is the size of your image?

Are you going to keep the Account, Cart and Checkout clip art that comes with a stock installation?

Do you want a fixed width site?

 

Let me know and I'll help. If you want to to play around yourself, use align="center" or align="right" in the cell that holds your image <td align="center">

Posted

This is my table section in header.php :

 

<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 . 'store_logo.png', STORE_NAME) . '</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>

 

 

 

I want to move banner with text "Aviator-Shop.pl" on the top of the page. See at http://www.aviator-shop.pl . Dimension of banner is: 936x100. I don't need a fixed width site.

Posted

At 936 wide, I would lose the osC clip art and have just that image. If that is acceptable, use this code:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="header">
<td align="center" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></td>
</tr>
</table>

 

If you want to use the clip art, you'll need to put them elsewhere or fix the width and have your image as a background.

Archived

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

×
×
  • Create New...