Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Account_History.php - Stylesheet/Infobox class assistance!


beckysmith

Recommended Posts

Cannot work this out - and it's driving me insane!

 

On the account_history.php page it has the customers order history - and it's using the infobox class taken from the stylesheet to draw a box around the details. Unlike every other page where I can manually change the class="infobox" to class="infoboxother" (because I have a different design on my infobox classes) - this page won't let me do it!

 

How can I do this on the account_history.php page? All I want to do is make sure the table that is drawn on that page with the customers order history is using the "infoboxother" class and not the "infobox" class.

 

(btw - account_history_info.php is fine as it doesn't load up the main box class and has the code in the file....)

 

Confusing?!?!?! :(

Link to comment
Share on other sites

Thanks for the reply :)

 

Where exactly in the file includes/modules/account_details.php do you mean? I can only see references for editing/adding the customers account details - but nothing for the customers account history or any infobox classes in that file at all :(

 

Hellllppppp! (Penelope Pitstop style!) :eh:

Link to comment
Share on other sites

Becky,

 

I think I misunderstood what you were trying to accomplish. You are trying to change the customer's order history infoBox to match the others? To change the style of the Box the file is catalog/includes/boxes/order_history.php.

 

Hope this helps, sorry I sent you on a wild goose chase...:-)

Link to comment
Share on other sites

Thanks, but I ment on the actual account_history.php page. Changing the catalog/includes/boxes/order_history.php only changes the box design at the side of the screen....

 

Account_history.php displays something like (using the infobox class) on the main screen:

 

Order Number: 2

Order Status: Pending

 

Order Date: Tuesday 05 November, 2002

Shipped To: Blah Blah

Products: 1

Order Cost: $55.00

 

View Order

Link to comment
Share on other sites

Ok..I think I've got you now. Look for this line(73):

 

$order_heading = '<table border="0" width="100%" cellspacing="0" cellpadding="0">' . "n" .

 

Add your infoBox_heading class to it.

 

Then about 5 or 6 lines farther down, you add your infoBox_contents class to this line:

 

$order = '<table border="0" width="100%" cellspacing="0" cellpadding="0">' . "n" .

Link to comment
Share on other sites

Becky,

 

Are you wanting a box around all of the information instead of the smaller boxes? You can do that by putting the inBox class in the table that is listed directly below the <!-- body_text //-->. That will however enclose the HEADING TITLE in the box. If you want the box around the information and NOT the HEADING TITLE you will need to add an additional table around the order history information.

Link to comment
Share on other sites

Basically looking at it - I need to find a way to create a new box class and call that from the account_history.php page. Because I need that box to be 90% width and use the class "infoboxother" for the design. I cannot just add a box after the <!-- body_text //--> unfortunately but I know what you are saying about padding it out etc. Because I am using the stylesheet to draw a thin black line around the box it cannot be done like that.

 

I don't think there is an easy solution to this - so I will just scratch my head ;) Oddly account_history_info.php is a much simpler affair as the infobox stylesheet call are in the HTML page - why account_history.php was done differently (and has to call the box class) I really don't know!

 

Thanks anyway for your suggestions and help - it's appreciated.. :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...