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)
-   -   register_ccinfo.tpl.php - Help!!! (https://forum.x-cart.com/showthread.php?t=8762)

Tye 08-03-2004 08:12 PM

register_ccinfo.tpl.php - Help!!!
 
Hi

I keep getting this error with my 'register_ccinfo.tpl.php'

Code:

Parse error: parse error, unexpected '.', expecting '}' in /home/cableed/public_html/xcart/templates_c/%%210/%%2105277156/register_ccinfo.tpl.php on line 43

I replaced the file with one which was working on another server and still got the error! I have edited this file to comment out most of the credit card into as I don't want to take these details on my site. Here is the code of my 'register_ccinfo.tpl.php' - Can anyone see anything out of the ordinery here??

Code:

{* $Id: register_ccinfo.tpl,v 1.7 2002/09/24 05:45:29 gorky Exp $ *}
<tr valign=middle>
<td height=20 colspan=3>{$lng.lbl_credit_card_information}<hr size=1 noshade></td>
</tr>

<tr valign=middle>
<td align=right>{$lng.lbl_cc_type}</td>
<td></td>
<td nowrap>
{if #safeCCNum# eq ""}
<select name=card_type>
{section name=card_type loop=$card_types}
{*<option value="{$card_types[card_type].code}" {if $userinfo.card_type eq $card_types[card_type].code}selected{/if}>{$card_types[card_type].type}</option>
{/section}
</select>
{else}
{#safeCCType#}
<input type=hidden name=card_type value="{#safeCCType#}">
{/if}
</td>
</tr>

<tr valign=middle>
<td align=right>{$lng.lbl_cc_name_explanation}</td>
<td></td>
<td nowrap>
{if #safeCCNum# eq ""}
{*<input type=text name=card_name size=32 maxlength=20 value="{$userinfo.card_name}">
{else}
{#safeCCName#}
<input type=hidden name=card_name value="{#safeCCName#}">
{/if}
</td>
</tr>

<tr valign=middle>
{*<td align=right>{$lng.lbl_cc_number_explanation}</td>
<td></td>
<td nowrap>
{if #safeCCNum# eq ""}
<input type=text name=card_number size=32 maxlength=20 value="{$userinfo.card_number}">
{else}
{#safeCCNum#}
<input type=hidden name=card_number value="{#safeCCNum#}">
{/if}
</td>
</tr>

<tr valign=middle>
<td align=right>{$lng.lbl_cc_expiration}</td>
<td></td>
<td nowrap>
{if #safeCCNum# eq ""}
{*<input type=text name=card_expire size=4 maxlength=4 value="{$userinfo.card_expire}">
{else}
{#safeCCExp#}
<input type=hidden name=card_expire value="{#safeCCExp#}">
{/if}
</td>
</tr>

<tr valign=middle>
<td align=right>CVV2</td>
<td></td>
<td nowrap>
{if #safeCCNum# eq ""}
{*<input type=text name=card_cvv2 size=4 maxlength=4 value="{$userinfo.card_cvv2}">
{else}
{#safeCCcvv2#}
<input type=hidden name=card_cvv2 value="{#safeCCcvv2#}">
{/if}
</td>
</tr>


Cheers

Tye

shan 08-04-2004 01:49 AM

Looks like when you tried to coment things out you did it wrong

you have to close the comment tags too

for example you put

Code:

<tr valign=middle>
<td align=right>{$lng.lbl_cc_expiration}</td>
<td></td>
<td nowrap>
{if #safeCCNum# eq ""}
{*<input type=text name=card_expire size=4 maxlength=4 value="{$userinfo.card_expire}">
{else}
{#safeCCExp#}
<input type=hidden name=card_expire value="{#safeCCExp#}">
{/if}
</td>
</tr>


should be
Code:

{*
<tr valign=middle>
<td align=right>{$lng.lbl_cc_expiration}</td>
<td></td>
<td nowrap>
{if #safeCCNum# eq ""}
<input type=text name=card_expire size=4 maxlength=4 value="{$userinfo.card_expire}">
{else}
{#safeCCExp#}
<input type=hidden name=card_expire value="{#safeCCExp#}">
{/if}
</td>
</tr>
*}


Comment like this {* commented *}

Tye 08-04-2004 02:15 AM

\:D/ \:D/ \:D/ \:D/ \:D/

Shan - cheers mate

I don't know how many times you have helped me out - but I am grateful for everyone :D

Here lies an example of trrying to cut corners - I used to comment out like this {* commented *}, then I was working on an xcart with a friend - and he said you just have to comment out the start of the line like this {*.

Now all those corners i have cut out have come back to haunt me :roll:

Cheers again

Tye

artist122 08-24-2004 11:20 PM

CVV2 in 4.0.2
 
When you goto checkout it does not have a field to enter in the CVV2 number and i already have the settings to True in Config.php and already have the settings in Credit Card types checked on all the CVV2 check boxes. Any help would be great, we do manual processing of credit cards and need the CVV2 number to be enetered in when placing the order and store for us to process and then delete later.


Any help from and experienced programmer would be great i am a novice at best.


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

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