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

Simple Email Signature Fix

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 05-25-2004, 09:12 PM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default 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.
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #2  
Old 05-26-2004, 02:30 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default

Awesome, thanks!
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
  #3  
Old 05-27-2004, 05:47 AM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

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 )
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #4  
Old 01-18-2005, 01:57 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

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

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
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #5  
Old 01-18-2005, 02:19 PM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default

Well Spotted!

And, I add, quite topical at the moment!
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
  #6  
Old 01-18-2005, 08:05 PM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

This will remove the gaps: (Old and improved)

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>
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #7  
Old 01-19-2005, 10:00 AM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

You rock, GM!!!!! That did it.
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 04:34 AM.

   

 
X-Cart forums © 2001-2020