psychedelik Posted October 30, 2002 Posted October 30, 2002 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!
Ajeh Posted October 30, 2002 Posted October 30, 2002 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?
psychedelik Posted October 30, 2002 Author Posted October 30, 2002 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.
psychedelik Posted October 30, 2002 Author Posted October 30, 2002 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.