X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Simple Email Signature Fix (https://forum.x-cart.com/showthread.php?t=7757)

GM 05-25-2004 09:12 PM

Simple Email Signature Fix
 
I wanted to post this in bugs & fixes but couldn't. Anyway, it bugged me and I fixed it. The default email signature templates will send emails with a signature that can look like this:

Thanks For Shopping at
My Store
Phone:
Fax:
Url: www.mywebsite.com

If you are not using a phone number or fax number it will still show the empty fields. The templates should have been like this by default I think:

signature.tpl

Code:

{* $Id: signature.tpl,v 1.8 2003/06/23 11:23:08 svowl Exp $ *}
--
{$lng.eml_signature}

{if $config.Company.company_phone}{$config.Company.company_name}
{$lng.lbl_phone}: {$config.Company.company_phone}{/if}
{$lng.lbl_email}:  {$config.Company.orders_department}
{$lng.lbl_url}:  {$config.Company.company_website}


AND

html/signature.tpl

Code:

{* $Id: signature.tpl,v 1.1 2003/09/16 12:22:03 svowl Exp $ *}
<hr size=1 noshade>
{$lng.eml_signature}


<font size=2>
{$config.Company.company_name}

{if $config.Company.company_phone}{$lng.lbl_phone}: {$config.Company.company_phone}{/if}

{if $config.Company.company_fax}{$lng.lbl_fax}:  {$config.Company.company_fax}{/if}

{$lng.lbl_email}:  {$config.Company.orders_department}

{$lng.lbl_url}:  {$config.Company.company_website}
</font></p>


I changed mine and now when I put in a phone number or fax number it will show it... if not, it won't. It should be standard issue with the cart.

Small things can make a big difference.

donavichi 05-26-2004 02:30 AM

Awesome, thanks!

GM 05-27-2004 05:47 AM

I submitted it to XCart and they told me that they are probably going to
use it in their next release. (so it's safe :roll: )

TL408 01-18-2005 01:57 PM

Well it's Jan 2005, and the issue above is still exist in the newest version of 4.0.10 :roll:

I would like to thank "GM" for the codes above. I tried it with my 4.0.10 store and it works as decribed. However, it left two blank lines gap where the "Phone" & "Fax" lines would normal go. It would be great if we can get these 2 blank lines gap removed all together. Thanks again, "GM"

-Tuan

donavichi 01-18-2005 02:19 PM

Well Spotted!

And, I add, quite topical at the moment!

GM 01-18-2005 08:05 PM

This will remove the gaps: (Old and improved) 8)

Code:

{* $Id: signature.tpl,v 1.8 2003/06/23 11:23:08 svowl Exp $ *}
--
{$lng.eml_signature}

{if $config.Company.company_phone}{$config.Company.company_name}
{$lng.lbl_phone}: {$config.Company.company_phone}{/if}
{$lng.lbl_email}:  {$config.Company.orders_department}
{$lng.lbl_url}:  {$config.Company.company_website}




AND

html/signature.tpl

Code:


{* $Id: signature.tpl,v 1.1 2003/09/16 12:22:03 svowl Exp $ *}
<hr size=1 noshade>
{$lng.eml_signature}


<font size=2>
{$config.Company.company_name}
{if $config.Company.company_phone}
{$lng.lbl_phone}: {$config.Company.company_phone}{/if}
{if $config.Company.company_fax}
{$lng.lbl_fax}:  {$config.Company.company_fax}{/if}
 
{$lng.lbl_email}:  {$config.Company.orders_department}
 
{$lng.lbl_url}:  {$config.Company.company_website}
</font></p>


TL408 01-19-2005 10:00 AM

You rock, GM!!!!! That did it. :D


All times are GMT -8. The time now is 05:33 PM.

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