| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
changing months in words to the numerical instead | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
Yup that works perfectly, now just got to sort out the issue with the protx direct script adding a + symbol in place of symbols and passing the order description, never bloody finished is it!!!!!
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#12
|
|||||||
|
|||||||
Spoke to x-cart about it, told them that general opinion in the forum is that it is silly the way they display it at the moment and they agreed that in future releases it would be shown numerically (like they do on the acutal credit cards) RESULT!!!
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#13
|
|||||||
|
|||||||
Still Months in a recent 4.0.15 upgrade...
For anyone needing the change, it is only: Find: Code:
Replace with this: Code:
__________________
4.1.9 |
|||||||
#14
|
|||||||
|
|||||||
To make the credit card month drop-down menu extra clear, I prefer the format:
01 - Jan 02 - Feb 03 - Mar etc. If you would like this format, simply modify... File: /main/register_ccinfo.tpl And add: month_format="%m - %b" to this part of the template code: Code:
Robert
__________________
X-cart 4.1.10 |
|||||||
#15
|
|||||||
|
|||||||
How do I get the year to read:
05 06 07 08 09 etc rather than the 4 digit default? I thought it might be the time attribute but it's already got time=$userinfo.card_expire_time and I'm not sure where $userinfo.card_expire_time is set? Thanks Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#16
|
|||||||
|
|||||||
Quote:
You will need to experiment, but here's some tips to help you get started... just as we used "%m" for the 2-digit month (see above posts), you will need to use "%y" for the 2-digit year (note: lower-case "y"). In the File: /main/register_ccinfo.tpl You will probably need to specify the format, such as: year_format="%y" or date_format="%y" From the Smarty site: %y - year as a decimal number without a century (range 00 to 99) %Y - year as a decimal number including the century Here's some Smarty links for more details: http://smarty.php.net/manual/en/language.modifier.date.format.php and http://smarty.php.net/manual/en/language.function.html.select.date.php Good luck and post your results here when you get a chance. Robert
__________________
X-cart 4.1.10 |
|||||||
#17
|
|||||||
|
|||||||
Thanks, hmmm, I'll give that another go as I think that's what I tried this morning...I'll post back if it works.
Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#18
|
|||||||
|
|||||||
No, neither of those worked. I'm thinking I should actually be adjusting the time attribute as it says "timestamp/YYYY-MM-DD" but I'm not sure if I can replace $userinfo.card_expire_time...
Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#19
|
|||||||
|
|||||||
Re: changing months in words to the numerical instead
Quote:
I contacted support with the same problem & received the following reply: To implement this you should modify the 'skin1/main/register_ccinfo.tpl' file. Find the following fragments: a. --------------------------------------- {html_select_date prefix="card_valid_from_" display_days=false start_year="-5" end_year="+4"} --------------------------------------- b. --------------------------------------- {html_select_date prefix="card_expire_" display_days=false end_year="+10" time=$userinfo.card_expire_time} --------------------------------------- and replace it with this codes: a. --------------------------------------- {html_select_date prefix="card_valid_from_" display_days=false start_year="-5" end_year="+4" month_format="%m"} --------------------------------------- b. --------------------------------------- {html_select_date prefix="card_expire_" display_days=false end_year="+10" time=$userinfo.card_expire_time month_format="%m"} --------------------------------------- It worked for me.
__________________
Aaron X-Cart Gold v. 4.4.5 Location: Ireland / UK |
|||||||
|
|||
X-Cart forums © 2001-2020
|