| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
| 
 | 
||||||||||
| X-Cart Home | 
Adding Featured Products to a Static Page | |||
![]()  | 
	
	
		
			 | 	
	
||
| 
		 | 
	Thread Tools | Search this Thread | 
| 
		 
			 
			#1  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 I am trying to add the Featured Products to one of my static pages.  I tried copying the line in welcome.tpl that displays the featured products: 
		
	
		
		
		
		
			Code: 
	
 When I tried that, it displayed the Featured Products title, but instead of products, it displayed a message: There are no available featured products... I assume the variable $f_products was empty. How can I display the Featured Products on a static page? Any tips? 
				__________________ 
		
		
		
		
	
		
		
		
	Forgetmenotjewelry.com Fine sapphire jewelry with a romantic message. x-cart 4.0.17 gold  | 
|||||||||
| 
		 
			 
			#2  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 Not sure if it is easily doable, as the featured products are built into the products templates, not the static page templates. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
		
		
		
	Padraic Ryan Ryan Design Studio Professional E-Commerce Development  | 
|||||||
| 
		 
			 
			#3  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 Here is a quick way to do it 
		
	
		
		
		
		
			Modify pages.php: Code: 
	
 and then in your static page, insert: Code: 
	
 and be sure you have "Parse Smarty tags in the content of embedded pages" checked in the admin site. 
				__________________ 
		
		
		
		
	
		
		
		
	Andy Melichar, Tech Director - REBEL INTERACTIVE - andy@rebel-interactive.com - X-Cart version 4.1.3  | 
|||||||
| 
		 
			 
			#4  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 Or you can use our featured product manager for complete control of you static pages and front page 
		
	
		
		
		
		
			http://www.firetanksoftware.com/fts/customer/Featured-Product-Manager-for-x-cart-pid-146.html 
				__________________ 
		
		
		
		
	
		
		
		
	Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X  | 
|||||||||
| 
		 
			 
			#5  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 Quote: 
	
 but one more thing.. how can i separate the feature products by the POS number so i can make separate groups of featured products? for example; the feature products on the homepage will have the POS numbers 1-10. the feature products on the static page will have the POS numbers 11-20. i've done this before with my categories menu..just dont know how to input it for my feature products. any help would be great appreciated.  | 
|||||||||
| 
		 
			 
			#6  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 ..bump.. 
		
	
		
		
		
		
			
		
		
		
		
	
		
		
		
	 | 
|||||||||
| 
		 
			 
			#7  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 I'm trying to do this on a 4.3 site. 
		
	
		
		
		
		
			They wanted a handful of static pages to be used as SEM landing pages, with featured products for a non-display category. So I've rigged the sidemenu to not display certain categories with pos > 800. Then created the category and featured products. So far my static page contains: Code: 
	
 But how do I pass the category parameter to the module? I also seem to be getting fatal errors when the included php module performs the smarty assign statement. Fatal error: Call to a member function assign() on a non-object in /var/www/devwww.aimbooks.com.au/include/categories.php on line 52 
				__________________ 
		
		
		
		
	
		
		
		
	Linux. Apache. PHP 5.2 Site 1 - now xcart 4.4.1 DSEFU, AOM, RMA, Magnifier, Upsells. Heavy mods for Australian postcode validation and extra Aussie payment method. Site 2 - xcart 4.1.11, DSEFU Site 3 - xcart 4.2 Site 4 - xcart 4.3  | 
|||||||
| 
		 
			 
			#8  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 Quote: 
	
 The best way I found to do this method so far is to write conditional if statement in the pages.php file similar to the following: Code: 
	
 Hope this helps Darren 
				__________________ 
		
		
		
		
	
		
		
		
	Darren X-Cart Gold 4.3.1  | 
|||||||
| 
		 
			 
			#9  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 Quote: 
	
 details,pls? 
				__________________ 
		
		
		
		
	
		
		
		
	x-cart gold 4.7.12 http://www.prescriptionglasses123.com/ http://www.glassespeople.com http://www.loupesusa.com http://www.eyeglassesclub.com  | 
|||||||
| 
		 
			 
			#10  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 Quote: 
	
 In the file /pages.php, at the top, after this line: Code: 
	
 I have put: Code: 
	
 This means that if the Page ID (seen when you edit the page in the URL of the admin area) matches the $pageid variable, then it sets the category of the featured products to (in this case) Category 104. So when you edit a static page, you need to insert this code into the body: Code: 
	
 Note: make sure you have selected the option "Parse Smarty tags in the content of embedded pages" in the Pages section. This should now include the featured products from a particular category (the 104 ID) and include them in the specific page (with the Page ID 15). If you still need help just reply in here. 
				__________________ 
		
		
		
		
	
		
		
		
	Darren X-Cart Gold 4.3.1  | 
|||||||
![]()  | 
		
	
		
			 | 	
	
| Thread Tools | Search this Thread | 
		
  | 
	
		
  | 
| 
 | 
|||
| 
 
X-Cart forums © 2001-2020
 
 | 
|||