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

Featured Products as a side menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 03-03-2006, 07:58 PM
 
webtron webtron is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 64
 

Default

Does anybody got "Featured Products as a side menu" in all pages
implemented in 4.0.17?

It would appear similiar to the Best Sellers box, but instead,
it would be a Featured Products box.

Thanks.
__________________
Thanks to for your comments/help.
X-cart Version 4.0.17
Reply With Quote
  #12  
Old 03-15-2006, 10:58 AM
 
webtron webtron is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 64
 

Default

bumping it
__________________
Thanks to for your comments/help.
X-cart Version 4.0.17
Reply With Quote
  #13  
Old 05-31-2006, 05:59 PM
 
gaussboy gaussboy is offline
 

Member
  
Join Date: Mar 2006
Posts: 21
 

Default

I just installed this mod and noticed that the side box is only showing up on the front page. This seems to be because that is the only place that $f_products is getting set. When I turn on debug mode, I can see that $f_products is populated on the front page and not populated everywhere else.

$f_products must be getting set somewhere in the php code. I looked in featured_products.php and didn't see any exclusions that would apply...

I guess I will look again
__________________
Version 4.0.18
Reply With Quote
  #14  
Old 05-31-2006, 11:45 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

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

Default

Easiest way is to replicate xcart_featured edit featured_products.php and replicate the code needed again, and note:
Code:
$smarty->assign("f_products",$products);

$products can be reused, and f_products2 or such could be assigned.

You'll also want to duplicate the featured products code on the admin side changing the replicated xcart_featured table and making minor adjustments.

www.modchipstore.com has multiple featured product ability on the front page to help them organize by console.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #15  
Old 08-14-2006, 11:03 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default

Is it possible to give a more comprehensive guide to doing this? I am a bit of a novice at this area. Also is it possible to make the other featured area look different? ie. with a different layout.
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #16  
Old 08-31-2006, 04:04 PM
 
robr@trewaudio.com robr@trewaudio.com is offline
 

Newbie
  
Join Date: Aug 2006
Posts: 1
 

Default Re: Featured Products as a side menu

Implemented the Featured Items "side menu" and it does work, however only on the front page. Has anyone found a way to apply this to all pages in addition to the home page?
__________________
X-Cart Gold Version 4.0.18 [unix]
Reply With Quote
  #17  
Old 08-31-2006, 04:13 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Featured Products as a side menu

Could the TopTenList mod accomplish what you want? It works great in 4.0.18 and 4.1.3 - don't know about other vsersions.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #18  
Old 01-18-2008, 01:39 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Re: Featured Products as a side menu

Bump

Did anyone find a way to get this on every page not just the home page?
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #19  
Old 01-21-2008, 10:19 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Featured Products as a side menu

Hi 01bodyjewellery,

Code:
Did anyone find a way to get this on every page not just the home page?
See if this will work.

This is for v4.1.9 but most likely will work for v4.1.8 also.

For some reason or other, when your in Admin and place featured items in a sub or sub-sub-category, the Featured Products will not display on your customer page. To prevent this problem:
Find these lines of code in your xcart/home.php file:
Code:
if (!empty($cat)) include "./products.php"; if (empty($products)) include "./featured_products.php";
and reverse them around so it looks like this:
Code:
if (empty($products)) include "./featured_products.php"; if (!empty($cat)) include "./products.php";

Make sure you populate your Featured Products with products in the Catagories section of the Admin side.

Now to display Featured Products when on the help pages:
open your xcart/help.php file and find these lines of code:
Code:
require "./auth.php"; require $xcart_dir."/include/categories.php";
underneath those lines of code add:
Code:
include "./featured_products.php";
To display Featured Products when on the checkout pages:
open your xcart/cart.php file and find these lines of code:
Code:
require "./auth.php";
and underneath that line place the following code:
Code:
include "./featured_products.php";
To diplay Featured Products when on the gift certificate page:
open your xcart/giftcert.php file and find this line of code:
Code:
require "./auth.php";
and underneath that line place the following code:
Code:
include "./featured_products.php";
To display Featured Products when on the manufacturers page:
open your xcart/modules/Manufacturers/customer_manufacturers_list.php file and find this line of code:
Code:
if ($active_modules["Manufacturers"]) include $xcart_dir."/modules/Manufacturers/customer_manufacturers.php";

and underneath that line of code place the following code:
Code:
include "./featured_products.php";
To display Featured Product when on your static pages:
open your xcart/pages.php file and find these lines of code:
Code:
require "./auth.php"; require $xcart_dir."/include/categories.php";
and underneath those lines of code place the following code:
Code:
include "./featured_products.php";

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote
  #20  
Old 01-23-2008, 12:06 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Re: Featured Products as a side menu

Another great piece of help MoonDog - thanks works a treat in 4.1.8
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:30 AM.

   

 
X-Cart forums © 2001-2020