X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Change field (if not present, leave blank ) (https://forum.x-cart.com/showthread.php?t=12013)

Isleman 02-07-2005 08:32 AM

Change field (if not present, leave blank )
 
I am trying to find and modify this field (if not present, leave blank )the one next to valid from and Issue number ,inside credit information box.
I was looking in register_ccinfo.tpl but is not there.
Any idea where I can find it and modify it ?

Thanks

markwhoo 02-07-2005 08:47 AM

Re: Change field (if not present, leave blank )
 
Quote:

Originally Posted by Isleman
I am trying to find and modify this field (if not present, leave blank )the one next to valid from and Issue number ,inside credit information box.
I was looking in register_ccinfo.tpl but is not there.
Any idea where I can find it and modify it ?

Thanks


Better look closer, this is the right tpl to edit for this info

Isleman 02-07-2005 10:24 AM

I think this the field where I should find the information.
But I can't find this (if not present, leave blank ) in order to modify it


{if $config.General.uk_oriented_ccinfo eq "Y"}
<tr valign=middle>
<td align=right>{$lng.lbl_cc_issueno}</td>
<td></td>
<td nowrap>
<input type=text name=card_issue_no size=4 maxlength=2 value="">
</td>
<td></td>
<td>{$lng.lbl_cc_leave_empty}</td>
</tr>
{/if}

balinor 02-07-2005 10:33 AM

Yep, you are looking right at it...it is this label:

{$lng.lbl_cc_leave_empty}

Just remove it or comment it out.

markwhoo 02-07-2005 10:48 AM

to remove issue number:

Code:

<TD align="right">{$lng.lbl_cc_issueno}</TD>
<TD></TD>
<TD nowrap>
<INPUT type="text" name="card_issue_no" size="4" maxlength="2" value="">
</TD>
<TD></TD>
<TD>{$lng.lbl_cc_leave_empty}</TD>


and to remove valid from:

Code:

<TD align="right">{$lng.lbl_cc_validfrom}</TD>
<TD></TD>
<TD nowrap>
{html_select_date prefix="card_valid_from_" display_days=false start_year="-5" end_year="+4"}
</TD>
<TD></TD>
<TD>{$lng.lbl_cc_leave_empty}</TD>


Isleman 02-07-2005 10:56 AM

It is working now. I was expecting to see the same text as in html . I forgot this is PHP :)
Thanks a lot

balinor 02-07-2005 10:58 AM

That is actually Smarty. If you use Webmaster Mode, not only can you find what template that is in, but you can edit it on the fly :)


All times are GMT -8. The time now is 06:09 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.