| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
| 
 | 
||||||||||
| X-Cart Home | 
Changing $config Variables | |||
![]()  | 
	
	
		
			 | 	
	
||
| 
		 | 
	Thread Tools | Search this Thread | 
| 
		 
			 
			#1  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 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  | 
|||||||||
| 
		 
			 
			#2  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 $config variables usually come from "General Settings" in the admin, take a look at company options  
		
	
		
		
		
		
			
		
		
		
		
	
		
		
		
	Frank Dux, bloodsport, I fight to survive!  | 
|||||||||
| 
		 
			 
			#3  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 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  | 
|||||||||
| 
		 
			 
			#5  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 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  | 
|||||||||
| 
 | 
|||
| 
 
X-Cart forums © 2001-2020
 
 | 
|||