| 
 | ||||||||||
|  | Shopping cart software Solutions for online shops and malls | |||||||||
|  |  |  | ||||||||
| X-Cart Home |  FAQ |  Forum rules |  Calendar |  Mark Forums Read |  User manuals |  Login | 
|  | 
| Showing location where u are! | |||
|  |  | ||
|  | Thread Tools | Search this Thread | 
| 
			 
			#1  
			
			
			
			
		 | |||||||||
| 
 | |||||||||
|  Showing location where u are! I have a lil problem, I want to show on a big <h1> head line where people are, for instance if they are in a category, it will show <h1>Categoryname</h1> and if in a product <h1>Productname<h1> and so on and so on.... for manufacturers also and all the sites   I tried looking into the location.tpl list for the last url there but i couldn't solve it! :/ I think this is already built in within x-cart but im not sure. {$product.productcode} ? prehaps and all other things like that.. i dunno =) 
				__________________ ----------------------------------- 4.2 rox... http://www.fivestar.nu | www.nystil.se | www.hidealite.se | |||||||||
| 
			 
			#2  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   You are correct, you need to play around with location.tpl. 
				__________________ Padraic Ryan Ryan Design Studio Professional E-Commerce Development | |||||||
| 
			 
			#3  
			
			
			
			
		 | |||||||||
| 
 | |||||||||
|  Yah Yah, I know   but hmm i wounder where from the variable $title is coming from, so i can steer what should be in the title and use that variable  
				__________________ ----------------------------------- 4.2 rox... http://www.fivestar.nu | www.nystil.se | www.hidealite.se | |||||||||
| 
			 
			#4  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   Hi Owl, You can try this, Code: 
 I'm not sure if its exactly what you want, but your welcome to try it. 
				__________________ Mike X-Cart Gold Version 4.6.0 PHP 5.2.17 | |||||||
| 
			 
			#5  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   With the H1 tag it would look like this. Code: 
 
				__________________ Mike X-Cart Gold Version 4.6.0 PHP 5.2.17 | |||||||
| 
			 
			#6  
			
			
			
			
		 | |||||||||
| 
 | |||||||||
|   Yah that would do it, thanks =) 
				__________________ ----------------------------------- 4.2 rox... http://www.fivestar.nu | www.nystil.se | www.hidealite.se | |||||||||
| 
			 
			#7  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   Sure would be nice if Xcart would release a kind of API for a lot of the big variables that are passed from PHP to Smarty. like the location, I think it's an array, but how is it organized. I'm sure we could hack it, but it would be nice if they just gave a little description what is in there. Subcategories are another. Maybe we could start a thread that explains these variables? 
				__________________ No longer using Xcart, was good while it lasted. | |||||||
| 
			 
			#8  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   Quote: 
 I'm hearin' that.... although surely that would make life too easy and mean less custom-mod revenue for XC?! Cynical, i know....  But i'm likely to commission a mod with XC, as I can't work out how to re-use the product_links variable that's assigned to Smarty. An API wouldn't be the be-all and end-all of problems like this, but IMHO, it would certainly make things a bit easier.... 
				__________________ X-Cart 4.0.17 ezUpsell PHP 4.4.1 MySQL 4.0.25-standard Apache 1.3.34 Linux | |||||||
|  |  | 
| Thread Tools | Search this Thread | 
| 
 | 
 | 
|  | |||
| 
X-Cart forums © 2001-2020
 | |||