Skip to content

Commit

Permalink
Adding messages to the user when buying a site
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Aug 27, 2010
1 parent 9017f9a commit bf46d5d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/pages/invoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public function __construct() {
}

public function description() {
return "<strong>Invoices Area</strong><br />
This is the area where you can view invoices.";
return "<strong>Invoices Area</strong><br />This is the area where you can view invoices.";
}

public function content() {
Expand Down Expand Up @@ -59,16 +58,17 @@ public function content() {
$transaction_id = $main->postvar['txn_id'];
$params['transaction_id'] = $transaction_id;
$invoice->edit($invoice_id, $params);
$message = "Your Invoice #$invoice_id is paid!<br />";
$message = "Your Invoice #$invoice_id is paid.<br />";

if ($result) {
$message .= "You Order #$order_id has been also proceed";
$message .= "You Order #$order_id has been also proceed.<br />";
$message .= "Check your email for access information. You should be able to see your site working in a few minutes.<br />";
} else {
$message .= 'There was a problem while dealing with you order please contact the administrator.';
$message .= 'There was a problem while dealing with you Order please contact the administrator.';
}
$main->errors($message);
} else {
$main->errors("Your invoice #$invoice_id hasn't been paid!");
$main->errors("Your invoice #$invoice_id hasn't been paid");
}
$main->redirect('?page=invoices&msg=1');
}
Expand Down Expand Up @@ -109,7 +109,7 @@ public function content() {

switch ($invoice_item['status']) {
case INVOICE_STATUS_PAID:
$array['paid'] = '<span style="color:green">Already Paid</span>';
$array['paid'] = '<span style="color:green">Paid</span>';
$array['pay'] = '<span style="color:green">Already Paid</span>';
$array['due'] = '<span style="color:green">'.$array['due'].'</span>' ;
break;
Expand Down

0 comments on commit bf46d5d

Please sign in to comment.