Jump to content
  • 0

[How To?] Is It Possible To Display The Month Digits As-Well As The Month Name?


Question

Posted

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?

3 answers to this question

Recommended Posts

  • 0
Posted

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 .

  • 0
Posted

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:

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...