Jump to content
  • 0

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


Michael

Question

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?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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:

Link to comment
Share on other sites

  • 0

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 .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...