From 52b8f3af87f3b7d3a2ac0b5d7976e2ba1aaed2c8 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Wed, 9 Jul 2014 14:06:51 -0400 Subject: [PATCH] Show plan updated confirmation on invoices page --- .../application/controllers/BillingController.php | 4 +++- .../views/scripts/billing/invoices.phtml | 13 ++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/controllers/BillingController.php b/airtime_mvc/application/controllers/BillingController.php index 981a398e4..47ef8fa14 100644 --- a/airtime_mvc/application/controllers/BillingController.php +++ b/airtime_mvc/application/controllers/BillingController.php @@ -100,9 +100,11 @@ class BillingController extends Zend_Controller_Action { return; } + //If there were no changes to the plan or billing cycle, we just redirect you to the + //invoices screen and show a message. if (!$placeAnUpgradeOrder) { - $this->_redirect('billing/invoices'); + $this->_redirect('billing/invoices?planupdated'); return; } diff --git a/airtime_mvc/application/views/scripts/billing/invoices.phtml b/airtime_mvc/application/views/scripts/billing/invoices.phtml index d143441cc..4de3cbb25 100644 --- a/airtime_mvc/application/views/scripts/billing/invoices.phtml +++ b/airtime_mvc/application/views/scripts/billing/invoices.phtml @@ -1,6 +1,17 @@

Invoices

-

and look for the \"Checkout\" button.")?>

+Thank you! Your plan has been updated and you will be invoiced during your next billing cycle."); + $topTextClass = "status-good"; +} +else { + $topText = _("Tip: To pay an invoice, click \"View Invoice\"
and look for the \"Checkout\" button."); +} + +?> +

Date Issued