Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

register_ccinfo.tpl.php - Help!!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-03-2004, 08:12 PM
 
Tye Tye is offline
 

eXpert
  
Join Date: Nov 2002
Location: Australia
Posts: 284
 

Default 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
__________________
Today is a beautiful day, grab it while you can and live it to the full

Version 4.2.3 UNIX
Reply With Quote
  #2  
Old 08-04-2004, 01:49 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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 *}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 08-04-2004, 02:15 AM
 
Tye Tye is offline
 

eXpert
  
Join Date: Nov 2002
Location: Australia
Posts: 284
 

Default

\ \ \ \ \

Shan - cheers mate

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

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

Cheers again

Tye
__________________
Today is a beautiful day, grab it while you can and live it to the full

Version 4.2.3 UNIX
Reply With Quote
  #4  
Old 08-24-2004, 11:20 PM
 
artist122 artist122 is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 43
 

Default 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.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020