display only confirmed order in user order history

  • Posts: 72
  • Thank you received: 0
11 years 7 months 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: 11 years 7 months ago by daveturner101.

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

  • Posts: 82785
  • Thank you received: 13353
  • MODERATOR
11 years 7 months 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.052 seconds
Powered by Kunena Forum