display only confirmed order in user order history

  • Posts: 72
  • Thank you received: 0
12 years 1 month ago #97888

hi,

we have a hika section of our site where a customer can log in and see previous orders. is there a way to show only 'confirmed' orders or 'confirmed and cancelled' orders?

i don't want customers to see 'created' orders that haven't been completed with payment.

many thanks

Last edit: 12 years 1 month ago by daveturner101.

Please Log in or Create an account to join the conversation.

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
12 years 1 month ago #97959

You need to edit the file "listing" of the view "order" of the front end via the menu Display->Views and add the code:
if($row->order_status=='created') continue;

after the line:
$row =& $this->rows[$i];

The following user(s) said Thank You: daveturner101

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum