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)
-   -   User filled in Contact Us form! - Subject matter (https://forum.x-cart.com/showthread.php?t=21820)

donmck 05-16-2006 01:38 AM

User filled in Contact Us form! - Subject matter
 
Hi all,

I have been modifying my help_contact.tpl with reasonable success.
I even added the nice little IP address field that I found on this forum, to it.

What I would like to do is add the subject to the subject of the received email, but haven't figured it out yet.

I keep saying to myself, you would think this sort of thing would be default set. :-)

Somewhat along the lines of:
User filled in Contact Us form! - Subject matter

thanks in advance.

Don...

balinor 05-16-2006 02:43 AM

mail/help_contactus_subj.tpl

donmck 05-16-2006 02:50 AM

Quote:

Originally Posted by balinor
mail/help_contactus_subj.tpl


Thanks, however I had found that, and the only line with subject in it is below.

{$lng.lbl_subject|truncate:$max_truncate:"...":tru e|cat:":"|string_format:$max_space}{$contact.subje ct}

to me, this seems to print Subject: "whatever the subject is", and doesn't seem to be the line to add the subject to the subject line.

Cheers Don...

balinor 05-16-2006 02:52 AM

You sure we are looking at the same template? Mine reads:

{config_load file="$skin_config"}{ $config.Company.company_name }: {$lng.eml_contact_us_subj}

donmck 05-16-2006 02:59 AM

Quote:

Originally Posted by balinor
You sure we are looking at the same template? Mine reads:

{config_load file="$skin_config"}{ $config.Company.company_name }: {$lng.eml_contact_us_subj}


skin1, or the root directory Padraic?

haven't been able to find this code. I'll do a search for the text

Don...

balinor 05-16-2006 03:04 AM

skin1...it is a tempalte not a php file

donmck 05-16-2006 03:08 AM

Quote:

Originally Posted by balinor
skin1...it is a tempalte not a php file


Apologies, found it and got it working, thanks very much indeed.

Cheers Don...

leagcyteam2 06-12-2008 08:42 AM

Re: User filled in Contact Us form! - Subject matter
 
DonMCK...how did you alter the CODE so that the actual CONTACT US FORM Subject appeared in the Email?

I am also trying to change it so each email SUBJECT LINE is custom to what the customer inputs in the Contact Us form.

Thanks!

sbrewer2000 12-15-2008 03:25 PM

Re: User filled in Contact Us form! - Subject matter
 
This worked for me ...

Code:

{config_load file="$skin_config"}{$lng.eml_contact_us_subj {$contact.subject}

jmuise 08-05-2010 11:14 AM

Re: User filled in Contact Us form! - Subject matter
 
{config_load file="$skin_config"}{$lng.eml_contact_us_subj} {$contact.subject}
This worked for me, I believe there was a curly bracket missing . . .


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

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