Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Placement Issues


dizza

Recommended Posts

I am new to oscommerce, and I am having an issue with linking buttons in my header. My site is www.urbanmrkt.com . If you take a look at my home page, you will see in my header that I have placed a row of blue buttons. I linked directly to these images in my header.php. The problem I am having is figuring out how to change the links in my header to a language file so that I can have different buttons for different languages. Here is how I have these buttons linked in my header.php:

 

<div class="fixcenter">

<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" background="images/header/backheader.gif">

<tr>

<td valign="top" background="images/header/left.gif"> </td>

<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle" height="67"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', 'Home Page') . '</a>'; ?></td>

<td class="header" align="right" valign="top" ><span style="font-weight:normal;font-family:Arial">  <?php if (tep_session_is_registered('customer_id')) { ?>

<a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  | 

<?php } ?>

<a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

</tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1">
           <td><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'home.png', 'Home Page') . '</a>'; ?></a><?php echo '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . tep_image(DIR_WS_IMAGES . 'contact.png', 'Contact Us') . '</a>'; ?></a><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT) . '">' . tep_image(DIR_WS_IMAGES . 'account.png', 'Access Account') . '</a>'; ?></a><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'shopping.png', 'Shopping Cart') . '</a>'; ?></a><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING) . '">' . tep_image(DIR_WS_IMAGES . 'checkout.png', 'Checkout') . '</a>'; ?></td>
		</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="headerNavigation"><a href="java script:window.external.AddFavorite(location.href,document.title);" class="headerNavigation"><?php echo BOX_HEADER_ADDFAVORITE; ?></a>  </td>

</tr>

<tr class="headerNavigation">

<td class="headerNavigation" align="left" ><span style="font-weight:normal;font-family:Arial">  <?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="15" maxlength="30" style="width: ' . (BOX_WIDTH-15) . 'px"') . ' ' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES)))) . '' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', IMAGE_BUTTON_SEARCH, 'align="middle"') . tep_draw_hidden_field('inc_subcat', '1', true) . '</form>'; ?></span></td>

<td class="headerNavigation" align="right" ><?php echo tep_customer_greeting(); ?>   </td>

</tr>

</table></td>

<td background="images/header/right.gif"> </td>

</tr>

<tr>

<td align="right" valign="top"><img src="images/header/lower_left.gif" alt="2" width="5" height="5" /></td>

<td valign="top" background="images/header/bot.gif"><img src="images/header/bot.gif" alt="3" width="3" height="5" /></td>

<td align="left" valign="top"><img src="images/header/lower_right.gif" alt="2" width="6" height="5" /></td>

</tr>

</table>

 

 

 

Did I even do this header right? The links are the ones I put in the code box. How can I change those to language files, then link them in my language file while keeping them in the sam placement? Please, any help would be great. Thank You very much.

 

 

 

Dustin

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...