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

editing customer_details.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-29-2006, 02:43 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default editing customer_details.tpl

Hi,

I tried to edit the customer_details.tpl

But everytime if I use html codes within it I get a smarty error.
Here is an example of the code which I'm using:

Code:
<table border="0" width="100%"> <tr><tr> <td bgcolor="F3F9F2">{$lng.lbl_personal_information} {if $userinfo.default_fields.firstname} {$lng.lbl_first_name}: {$userinfo.firstname} {/if} {if $userinfo.default_fields.lastname} {$lng.lbl_last_name}: {$userinfo.lastname} {/if} {if $userinfo.default_fields.phone} {$lng.lbl_phone}: {$userinfo.phone} {/if} {if $userinfo.default_fields.fax} {$lng.lbl_fax}: {$userinfo.fax} {/if} {if $userinfo.default_fields.email} {$lng.lbl_email}: {$userinfo.email} {/if} {if $userinfo.default_fields.url} {$lng.lbl_web_site}: {$userinfo.url} {/if} {foreach from=$userinfo.additional_fields item=v}{if $v.section eq 'C' || $v.section eq 'P'} {$v.title}: {$v.value} {/if}{/foreach}</td> <td bgcolor="F3F9F2">{$lng.lbl_additional_information}: {assign var=&quot;is_header&quot; value=&quot;Y&quot;}{/if} {$v.title}: {$v.value} {/if}{/foreach} </td> </tr>
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #2  
Old 01-29-2006, 02:46 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Don't know if this is the problem, but the 1st thing I notice is the 2nd line has 2 table row open tags next to each other.

<tr><tr>

Is that right?
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 01-29-2006, 03:11 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

Well, it doesn't make any difference by removing the <tr> tag.
I get the following error:


Code:
Fatal error: Smarty error: [in ./customer/main/customer_details.tpl line 28]: syntax error: mismatched tag {/if}. (Smarty_Compiler.class.php, line 2277) in C:\XAMPP\xampp\htdocs\shop\Smarty-2.6.9\Smarty.class.php on line 1088

Edit: My live shop is on a apache server. But I'm doing my template editing and modifications on a test server on my own computer, so that my live shop won't be interrupted.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #4  
Old 01-29-2006, 03:15 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Well the error message is saying that you have an /if statement out of place - check that your if statements are all correct and are started and ended properly.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #5  
Old 01-29-2006, 03:23 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

Quote:
Originally Posted by pauldodman
Well the error message is saying that you have an /if statement out of place - check that your if statements are all correct and are started and ended properly.

Thanks. Html is working, the problem was there were some tags not correct.
Have to start all over again. But it will work now.
Thanks for your help.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 07:33 PM.

   

 
X-Cart forums © 2001-2020