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

add company address next to the phone number

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-12-2005, 10:38 PM
 
josephpham josephpham is offline
 

Advanced Member
  
Join Date: Sep 2005
Location: California, USA
Posts: 68
 

Default add company address next to the phone number

on the customer front page, I have my fax number next to my phone number, does anyway I can add a company address here? if possible please show me how. (I really need this. please help)

my "head.tpl"

{if $config.Company.company_phone}{$lng.lbl_phone_1_ti tle}: {$config.Company.company_phone}{/if}{if $config.Company.company_fax}{$lng.lbl_fax}: {$config.Company.company_fax}{/if}</TD>
__________________
Xcart Gold V 4.0.16
Server: Apache, MySQL server 4.0.24
MySql Client: 4.1.13, PHP 4.4.0
Reply With Quote
  #2  
Old 10-13-2005, 01:34 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

Well you could either hardcode the address details into that section or create a new label in Languages that includes the full address e.g. lbl_company_address and you could reference it like (for example beore and on top of the phone/fax no's):

{$lng.lbl_company_address}
{if $config.Company.company_phone}{$lng.lbl_phone_1_ti tle}: {$config.Company.company_phone}{/if}{if $config.Company.company_fax}{$lng.lbl_fax}: {$config.Company.company_fax}{/if}</TD>

You could do it the "proper" way and reference each of the company address fields that already exist from the Company Options page in Admin t I can't find an example of that at the moment!

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #3  
Old 10-13-2005, 03:50 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Post moved, please try to post in the correct forum, this question has nothing to do with the X-Cart add-ons
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 10-13-2005, 08:26 AM
 
josephpham josephpham is offline
 

Advanced Member
  
Join Date: Sep 2005
Location: California, USA
Posts: 68
 

Default

Thanks Dan, I added new label lbl_company_address, it works fine and simple. Ryan, sorry i will be more careful next time, I clicked select forum, but somehow it went to the wrong room.
__________________
Xcart Gold V 4.0.16
Server: Apache, MySQL server 4.0.24
MySql Client: 4.1.13, PHP 4.4.0
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 08:24 AM.

   

 
X-Cart forums © 2001-2020