Hello,
Please, How I can change from day's to year ?
in payments page
from 356 days to 1 year
Thanks.
XFileSharing Pro - How I can change from day's to year ?
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
It's possible.
In Templates/payment_buy_with.html replace
with
then in index.cgi replace
with
In Templates/payment_buy_with.html replace
Code: Select all
<TMPL_VAR days> <TMPL_VAR lang_days>
Code: Select all
<TMPL_VAR days>
Code: Select all
push @plans, { amount=>$1, days=>$2, site_url=>$c->{site_url} };
Code: Select all
push @plans, { amount=>$1, days=>($2==365 ? "1 year" : "$2 days"), site_url=>$c->{site_url} };
-
- Posts: 521
- Joined: Dec 19, 2009 5:12 pm
with a little knowledge and messing around can you get it donePilgrimX182 wrote:It's possible.
In Templates/payment_buy_with.html replacewithCode: Select all
<TMPL_VAR days> <TMPL_VAR lang_days>
then in index.cgi replaceCode: Select all
<TMPL_VAR days>
withCode: Select all
push @plans, { amount=>$1, days=>$2, site_url=>$c->{site_url} };
Code: Select all
push @plans, { amount=>$1, days=>($2==365 ? "1 year" : "$2 days"), site_url=>$c->{site_url} };
he explained it above how to do it
Code: Select all
push @plans, { amount=>$1, days=>($2==365 ? "1 year" : "$2 days"), site_url=>$c->{site_url} };
Code: Select all
push @plans, { amount=>$1, days=>($2==31 ? "1 month" : $2==93 ? "3 months" : $2==186 ? "6 months" : $2==365 ? "1 year" : $2==730 ? "2 years" : "$2 days"), site_url=>$c->{site_url} };
Greets From PowerChaos