Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

my account, cart in header


blr044

Recommended Posts

Not aware of how long this issue has been there. I was checking a few pages to make all is working.

 

The "My Account link" in header will take one to the sign in page.But one when one is logged in, there isn't a link/button to log out. So browsing around for a fix, I did see some samples. A bit different then mine. Following is a section of code I inserted. When that was done, I tested my tha page. All I got was a blank page. I am not a programmer.

 

BEFORE:

 

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td rowspan="2" class="headerCart"><b><u>Your Cart Contains:</u></b><br><a href="<?php echo tep_href_link('shopping_cart.php')?>" class="headerCart"><font color="yellow"> <?php echo $cart->count_contents()?> items<br>Sub Total: <?php echo $currencies->format($cart->show_total()); ?></a><br><script language="Javascript" src="https://seal.godaddy.com/getSeal?sealID=164489410802e7a6709127112c483e0c317d1d02873105850361790"></script></a></font></td>
	<td class="searchboxarea" align="right"><?php require(DIR_WS_BOXES . 'header_search.php'); ?></td>
</tr>
  	  <td align="right" valign="middle" class="languageboxarea">
    <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'button_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a><br><a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'button_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a><br><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'button_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a><br><a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . tep_image(DIR_WS_IMAGES . 'button_special.gif', HEADER_TITLE_SPECIALS) . '</a>'; ?></td>

   </tr>
<tr>
	<td colspan="2"><img src="images/logo_4.jpg" width="830" height="40" alt=""></td>
</tr>
<tr>
	<td colspan="2" class="breadcrumbarea"><?php echo $breadcrumb->trail(' » '); ?></td>
</tr>

 

AFTER:

 

<tr>
	<td rowspan="2" class="headerCart"><b><u>Your Cart Contains:</u></b><br><a href="<?php echo tep_href_link('shopping_cart.php')?>" class="headerCart"><font color="yellow"> <?php echo $cart->count_contents()?> items<br>Sub Total: <?php echo $currencies->format($cart->show_total()); ?></a><br><script language="Javascript" src="https://seal.godaddy.com/getSeal?sealID=164489410802e7a6709127112c483e0c317d1d02873105850361790"></script></a></font></td>
	<td class="searchboxarea" align="right"><?php require(DIR_WS_BOXES . 'header_search.php'); ?></td>
</tr>
  	  <td align="right" valign="middle" class="languageboxarea">
<?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'button_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a><br><a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'button_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a><br><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'button_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a><br><a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . tep_image(DIR_WS_IMAGES . 'button_special.gif', HEADER_TITLE_SPECIALS) . '</a>'; ?></td>
  <?php } else { ?>

          <?php echo '<a href="' .tep_href_link(FILENAME_LOGOFF, '', ;NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'button_logoff.gif', HEADER_TITLE_LOGOFF) . '</a>'; ?></td>
  </tr>

	<tr>
	<td colspan="2"><img src="images/logo_4.jpg" width="830" height="40" alt=""></td>
</tr>
<tr>
	<td colspan="2" class="breadcrumbarea"><?php echo $breadcrumb->trail(' » '); ?></td>
</tr>

 

 

for now that bit of code was removed so that the page will work some what. So if anyone has any ideas, i would appreciate them.

 

my site...

 

Thanks in advance.

 

blr044

Link to comment
Share on other sites

Was not able to get header working correctly with the images for account and logoff. So I renamed the file and am using the previous one for now.

 

blr044

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...