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)
-   -   Contact us "Username" (https://forum.x-cart.com/showthread.php?t=21837)

donmck 05-16-2006 02:09 PM

Contact us "Username"
 
getting "help_contactus.tpl" fine tuned, however I am having problems finding the Contact Us username tag.

Have tried:
{$contact.username}

any assistance appreciated.

Cheers Don...

Zaja 05-16-2006 02:39 PM

maybe {$userinfo.login}

donmck 05-16-2006 02:43 PM

Quote:

Originally Posted by Zaja
maybe {$userinfo.login}


Thanks Zaja,
but no that didn't work.

Cheers Don...

Zaja 05-16-2006 03:09 PM

Hmm..work fine for me, just tested... this is username input tag on 'Contact Us' page:
Code:

{$userinfo.login}

donmck 05-16-2006 04:34 PM

Quote:

Originally Posted by Zaja
Hmm..work fine for me, just tested... this is username input tag on 'Contact Us' page:
Code:

{$userinfo.login}


yes correct. below is the start of the file I have there, and I have placed the message body first, followed by username, first name etc.

{* $Id: help_contactus.tpl,v 1.5.2.1 2005/05/16 11:58:52 max Exp $ *}
{* include file="mail/html/mail_header.tpl" *}

<TR>
<TD colspan="3">{$contact.body}</TD>
</TR>

<HR size="1" noshade>

<TABLE border="0" cellpadding="2" cellspacing="0">

<TR>
<TD>Username:</TD>
<TD></TD>
<TD>{$userinfo.login}</TD>
</TR>

<TR>
<TD>{$lng.lbl_first_name}:</TD>
<TD></TD>
<TD>{$contact.firstname}</TD>
</TR>


I simply don't get a return from this Username input tag.

Cheers Don...

gaussboy 05-16-2006 09:11 PM

Try turning on x-cart debugging to see what variables are/aren't getting set.

donmck 05-16-2006 09:54 PM

Quote:

Originally Posted by gaussboy
Try turning on x-cart debugging to see what variables are/aren't getting set.


OK, never used debug mode before. I get a console much the same as in webmaster mode, which I have found handy. How do I invoke it to display variables?

Nothing about this on pages 308, 357, and 366 in the manual.

Don...

donmck 05-16-2006 11:18 PM

Just got onto x-cart about it.

would you believe:
{$contact.uname}

I did get a custom mod done on the contact page, as I wanted the emails to go to 4 different dept's, not one.

Perhaps they decided to change this tag on mine for some reason, but this works.

Thanks to everyone who offering assistance.
Case closed.

Cheers Don...


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

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