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

Changing $config Variables

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-07-2004, 06:33 PM
  frankdux's Avatar 
frankdux frankdux is offline
 

Senior Member
  
Join Date: Jul 2004
Location: Manchester, NH, USA
Posts: 125
 

Default Changing $config Variables

Ok I know you can change language variables like labels and text($lng) through Administration > Languages , but how can you change $config variables?

For example in the mail/mail_header.tpl there is the following: {$lng.eml_mail_header_part1} {$config.Company.company_name} {$lng.eml_mail_header_part2}.

I know how to change "$lng's" but how do you access the "$config" variables?
__________________
X-Cart: 4.0.18
Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2
Reply With Quote
  #2  
Old 09-07-2004, 09:21 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

$config variables usually come from "General Settings" in the admin, take a look at company options

Frank Dux, bloodsport, I fight to survive!
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 09-08-2004, 05:54 AM
  frankdux's Avatar 
frankdux frankdux is offline
 

Senior Member
  
Join Date: Jul 2004
Location: Manchester, NH, USA
Posts: 125
 

Default

Oh, I knew about General Settings > Company Options. The thing is, this tag : {$config.Company.company_name} doesn't just pull the the company name from there - in any instance it is used it also hyperlinks to a page I don't want to use. I was looking for a way to control where it links to.

Kumite! Kumite! Kumite!

http://www.zaptank.com/images/misc/chong_li.jpg
__________________
X-Cart: 4.0.18
Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2
Reply With Quote
  #4  
Old 09-08-2004, 06:07 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Are you refering to the footer copyright notice at the bottom?

@ chong li
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #5  
Old 09-08-2004, 06:22 AM
  frankdux's Avatar 
frankdux frankdux is offline
 

Senior Member
  
Join Date: Jul 2004
Location: Manchester, NH, USA
Posts: 125
 

Default

The tag: {$config.Company.company_name} is used in several places, but right now I am focusing on the header (/mail/mail_header.tpl) and the signature (/mail/signature.tpl) of the email notification. I suppose I could just replace the $config.Company variables with the html for my own links there, but I figured if I could change the variables values then I would get the links I need in every instance where they are used.
__________________
X-Cart: 4.0.18
Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2
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 06:33 AM.

   

 
X-Cart forums © 2001-2020