Michael Posted August 17, 2015 Report Posted August 17, 2015 On the add credit card section when you are paying for a product is there a way to display the number as-well? Eg: 01 January | 02 February | 03 March | 04 May etc I know in the file: /app/views/client/client_accounts_cc_info.pdt there this: $this->Form->fieldSelect("expiration_month", $this->Html->ifSet($expiration['months']), $this->Html->ifSet($vars->expiration_month), array('id'=>"expiration_month", 'class'=>"form-control input-sm")); But I'm not sure where the values for the $expiration['months'] and $vars->expiration_month are coming form? Quote
0 Michael Posted August 17, 2015 Author Report Posted August 17, 2015 Thought I found it but it didn't change the text haha: /app/controllers/client_pay.php $expiration = array( // Get months with full name (e.g. "January") 'months' => $this->Date->getMonths(1, 12, "m", "m F"), // Sets years from the current year to 10 years in the future 'years' => $years ); Edit: Ah I am blind thanks Naja7Host In the file: /app/controllers/client_accounts.php: $expiration = array( // Get months with full name (e.g. "January") 'months' => $this->Date->getMonths(1, 12, "m", "F"), // Sets years from the current year to 10 years in the future 'years' => $years ); Change: $expiration = array( // Get months with full name (e.g. "January") 'months' => $this->Date->getMonths(1, 12, "m", "m F"), // Sets years from the current year to 10 years in the future 'years' => $years ); The admin side is in: /app/controllers/admin_clients.php: activa 1 Quote
0 Blesta Addons Posted August 17, 2015 Report Posted August 17, 2015 On the add credit card section when you are paying for a product is there a way to display the number as-well? Eg: 01 January | 02 February | 03 March | 04 May etc I know in the file: /app/views/client/client_accounts_cc_info.pdt there this: $this->Form->fieldSelect("expiration_month", $this->Html->ifSet($expiration['months']), $this->Html->ifSet($vars->expiration_month), array('id'=>"expiration_month", 'class'=>"form-control input-sm")); But I'm not sure where the values for the $expiration['months'] and $vars->expiration_month are coming form? normally it should coming from the file client_accounts.php in controller folder . Michael 1 Quote
0 Michael Posted August 17, 2015 Author Report Posted August 17, 2015 normally it should coming from the file client_accounts.php in controller folder . Can only see a post haha. Quote
Question
Michael
On the add credit card section when you are paying for a product is there a way to display the number as-well?
Eg: 01 January | 02 February | 03 March | 04 May etc
I know in the file: /app/views/client/client_accounts_cc_info.pdt
there this:
But I'm not sure where the values for the $expiration['months'] and $vars->expiration_month are coming form?
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.