Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dose anyone know how to get the My Account on the right side of the page?


Brian Peperfin

Recommended Posts

I did this to move the Cart to the top in Begining in Header.php with the setting how do I fix it?

 

<?php

/*

$Id$

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2010 osCommerce

 

Released under the GNU General Public License

*/

 

if ($messageStack->size('header') > 0) {

echo '<div class="grid_15">' . $messageStack->output('header') . '</div>';

}

?>

<script type="text/javascript">

$("#headerShortcuts").buttonset();

</script>

</div>

 

<a href="http://?????Removed??????????/advanced_search_result.php?keywords=c??????&search_in_description=1&x=0&y=0">

<img src="http:/????Removed???????.png" alt="Collections"/></a><a href="http://???????????/create_account.php"><img src="http://www.??????com/shop/images/h?.png" alt="About"/></a><a href="http://???????.com/contact_us.php"><img src="http://ww???????????/shop/images/?.png" alt="About"/></a>

</div><div float: ALIGN = Right; class="grid_10">

 

 

<?php echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link(FILENAME_SHOPPING_CART)) .tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) .

tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));if (tep_session_is_registered('customer_id')) {

echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL'));}

?></div><script type="text/javascript">

$("#headerShortcuts").buttonset();

 

</script>

</div><div id="header" class="grid_01">

 

<div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div>_______________________________________________________________________________________________________________________________________________________

<a target='_blank' title='Abercrombie & Fitch ' href='http://???Removed?????.com/index.php/cPath/47'><img src='http://img???.imageshack.us/Removed/aberclombie.jpg' border='0'/></a>

 

<a target='_blank' title='Clothing - Affliction' href='http://onlinewestmicroexchange.com/index.php/cPath/39/'><img src='http://imimageshack.us/img/?????/?????nv1m5657756983.png' border='0'/></a>

<a target='_blank' href='http://??????/index.php/cPath/???/'><img src='http://img14.imageshack.us/img14/1483/??th.jpg' border='0'/></a>

 

 

<a target='_blank' title='Clothing - ??????' href='http:???????????????com/advanced_search_result.php?keywords=chrome+hearts&search_in_description=1&x=0&y=0'><img src='http://img???.imageshack.us/img407/??????????.jpg' border='0'/></a>

 

<a target='_blank' title='Clothing - ?????? href='http://???????/index.php/cPath/50/'><img src='http://img11.imageshack.us/img11/???/c????r180.jpg' border='0'/></a>

 

 

<a target='_blank' title='ImageShack - Image And Video Hosting' href='http://?????????/'><img src='http://im????.imageshack.us/????/6564/e????1.jpg' border='0'/></a>

 

 

 

 

 

__________________________________________________________________________________________________________________________________________________

 

 

<?php

if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="150%" cellspacing="0" cellpadding="2">

<tr class="headerError">

<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>

</tr>

</table>

<?php

}

 

 

 

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>

<table border="0" width="150%" cellspacing="0" cellpadding="2">

<tr class="headerInfo">

<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>

</tr>

</table>

<?php

}

?>

Link to comment
Share on other sites

I would start by looking at

 

#headerShortcuts {

float: lign=center;

margin-top: 15px;

}

 

in your stylesheet.css

 

Change the float to right

 

And i forgot to add to check your spelling.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

float:" is not a member of a group specified for any attribute

 

<div float:="" class="grid_10" align="Right;">

 

should be

 

<div class="grid_10">

 

 

 

You have in style sheet

.grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6, .grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12, .grid_13, .grid_14, .grid_15, .grid_16, .grid_17, .grid_18, .grid_19, .grid_20, .grid_21, .grid_22, .grid_23, .grid_24 {

display : inline;

float : left;

margin-left : 5px;

margin-right : 5px;

}

The whole site is messed up with your grid stylesheet. The header is messed up and your page is not centered, the right column does not have enough room the background image isn't wide enough for the content!

 

Put the button code back in the header with clean button code.

 

<div id="headerShortcuts">

<?php

echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link(FILENAME_SHOPPING_CART)) .

tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) .

tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

 

if (tep_session_is_registered('customer_id')) {

echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL'));

}

?>

 

 

</div>

 

<script type="text/javascript">

$("#headerShortcuts").buttonset();

</script>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...