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)
-   -   add company address next to the phone number (https://forum.x-cart.com/showthread.php?t=17246)

josephpham 10-12-2005 10:38 PM

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>

DanUK 10-13-2005 01:34 AM

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

balinor 10-13-2005 03:50 AM

Post moved, please try to post in the correct forum, this question has nothing to do with the X-Cart add-ons :)

josephpham 10-13-2005 08:26 AM

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.


All times are GMT -8. The time now is 09:21 PM.

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