Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

displaying somthing in order history when there's none


psychedelik

Recommended Posts

Posted

is there a quick and dirty way to implement a simple if...else... statement within the order_history box so that it behaves the same way as the shopping cart box when there's no product?

 

thanks!

Posted

Can you be more specific about what it is about order history that you want it to do?

 

Are you referring to if the product is out of stock then hide from order history where if it was in stock, and you ordered it once it would show?

Posted

thanks Linda, i figured it out, if anyone's interested i'd be happy to post my hack

 

my idea was to display the box to the person who logged in regarless of whether he has ever purchased anything. if he has, the standard list will be displayed, if not, it'll still display the box but the content will say "no order history available"

 

you can go to my site to test it out. use [email protected]/12345 and you see an empty box, and imagine a list being there should there be any.

Posted

by the way, in order for this to work i integrated that with the "login form in a box hack" in it's "else" statement.

 

that is if the person didn't login, the standard login form will be displayed, if he did, the order history box will replace the form.

Archived

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

×
×
  • Create New...