Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

previous orders in account.php forces content area to increase


blr044

Recommended Posts

Posted

My site is centered and all is fine. The account.php is the only page of web site where the content area of the page has increased in it's width in size. The only thing that I did up to this point was to remove the two extra price columns in admin/orders.php using Comments on Packing Slip. So I restored store to where it was before the addon. The page is still the same. So cleared cache and even closed browser and went back to account.php. The same. So I used a file called to compare to verify the following files:

 

catalog/admin/orders

catalog/admin/invoice.php

catalog/account.php

 

Even downloaded a fresh RC2a version to compare the three files. It's all the same. There are addons that were installed that would of changed account.php. Even downloaded the backup from host server and used that to over write store files.

 

NOTE: This only happen if there are previous orders. I have attached an image below showing the results.

 

account.jpg.

 

Thank you

Posted

After comparing files in store side with a vanilla RC2a, i could not see anything that would force the content area of /account.php page to act according the way it is. So I tried something else. I created a test store directory with a new DB. Ran the install and after all was created, I changed permission of both configure files and deleted the install dir. After that I edit stylesheet and includes/header.php so the store is centered and 800px wide. Then went to test store to set up a test customer and then made a purchase. Logged off and close browser to as to clear cache and reopen website to new store to open customers account. Once I was at account.php, all was the same. The right column is forced further to the right because the center content area has increased in width.

 

I cannot remember what that page should like, so not sure where I need to look for a fix.

 

So am asking for some help. Thanks in advance.

Posted

After comparing files in store side with a vanilla RC2a, i could not see anything that would force the content area of /account.php page to act according the way it is. So I tried something else. I created a test store directory with a new DB. Ran the install and after all was created, I changed permission of both configure files and deleted the install dir. After that I edit stylesheet and includes/header.php so the store is centered and 800px wide. Then went to test store to set up a test customer and then made a purchase. Logged off and close browser to as to clear cache and reopen website to new store to open customers account. Once I was at account.php, all was the same. The right column is forced further to the right because the center content area has increased in width.

 

I cannot remember what that page should like, so not sure where I need to look for a fix.

 

So am asking for some help. Thanks in advance.

 

Was not able to edit to am adding this reply on what I tried:

 

I can solve it but not sure if it's the proper way. Here is the code from account.php:

 

Original code:

                  <tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" onClick="document.location.href='<?php echo tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL'); ?>'">
                   <td class="main" width="80"><?php echo tep_date_short($orders['date_purchased']); ?></td>
                   <td class="main"><?php echo '#' . $orders['orders_id']; ?></td>
                   <td class="main"><?php echo tep_output_string_protected($order_name) . ', ' . $order_country; ?></td>
                   <td class="main"><?php echo $orders['orders_status_name']; ?></td>
                   <td class="main" align="right"><?php echo $orders['order_total']; ?></td>
                   <td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '">' . tep_image_button('small_view.gif', SMALL_IMAGE_BUTTON_VIEW) . '</a>'; ?></td>
                 </tr>

 

After the change:

 

                  <tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" onClick="document.location.href='<?php echo tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL'); ?>'">
                   <td class="main" width="80"><?php echo tep_date_short($orders['date_purchased']); ?></td>
                   <td class="main"><?php echo '#' . $orders['orders_id']; ?></td>
                   <td class="main"><?php echo tep_output_string_protected($order_name) . ', ' . $order_country; ?></td>
                   </tr>
                   <tr><td class="main"><?php echo $orders['orders_status_name']; ?></td>
                   <td class="main" align="right"><?php echo $orders['order_total']; ?></td>
                   <td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '">' . tep_image_button('small_view.gif', SMALL_IMAGE_BUTTON_VIEW) . '</a>'; ?></td>
                 </tr>

 

What I did was, divided the row into two rows. And now the web page looks fine.

 

So is this correct or not?

 

Thanks in advance.

 

Bennett

Archived

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

×
×
  • Create New...