Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Create An Account


spikesforu

Recommended Posts

Posted

By deafult Oscommerce has the following line

Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

I know how to move the line but I want to move the create your account to the top bar. Does any body know how to do this.

Posted

Copy the link you want for people to create an account, and add it into the header.php file in this section

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>
   <td align="right" class="headerNavigation"><?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>

Hope this helps - Vger

Posted

Copy one of the links above, but substitute

FILENAME_CREATE_ACCOUNT

for one of the links

Vger

Posted

Yep, it's relatively easy to do anything you want with the header. Just add it where you want it between what's already displaying. For instance, I wanted my search bar in the header, so I did this (I added the middle quote between the others):

 

after this:

 

<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"><?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 } ?>

 

<!-- Begin Search Bar Addition //-->

      <form name="quick_find" method="get" action="http://www.somewebserver.com/advanced_search_result.php">

      <input type="text" name="keywords" size="10" maxlength="30" value="Search" style="width: 95px"> 

      <input type="submit" value="Go">

      <input type="hidden" name="search_in_description" value="1">

      </form>  | 

<!-- End Search Bar Addition //-->

 

before this:

 

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

 

So it shows like:

Home                                                    Log Off | [sEARCH        ] [GO] | My Account | Cart Contents | Checkout
Posted

Okay, all done. Here ya go! Personally, I like it much better than the search on the column. To each his own I guess...

 

<!-- Begin Search Bar Addition //-->

      <form name="quick_find" method="get" action="

<?php

if (($request_type == 'SSL') && (ENABLE_SSL == true)) // keep connection secure

  echo HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . FILENAME_ADVANCED_SEARCH_RESULT;

else  // connection is not SSL, keep it that way

  echo HTTP_SERVER . DIR_WS_HTTP_CATALOG . FILENAME_ADVANCED_SEARCH_RESULT;

?>">

      <input type="text" name="keywords" size="10" maxlength="30" value="Search" style="width: 95px"> 

      <input type="submit" value="Go">

      <input type="hidden" name="search_in_description" value="1">

      </form>  | 

<!-- End Search Bar Addition //-->

Archived

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

×
×
  • Create New...