X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Featured Products as a side menu (https://forum.x-cart.com/showthread.php?t=7748)

webtron 03-03-2006 07:58 PM

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.

webtron 03-15-2006 10:58 AM

bumping it

gaussboy 05-31-2006 05:59 PM

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 :)

B00MER 05-31-2006 11:45 PM

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.

:arrow: www.modchipstore.com has multiple featured product ability on the front page to help them organize by console.

RichieRich 08-14-2006 11:03 AM

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.

robr@trewaudio.com 08-31-2006 04:04 PM

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?

carpeperdiem 08-31-2006 04:13 PM

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.

Freakmode 01-18-2008 01:39 AM

Re: Featured Products as a side menu
 
Bump

Did anyone find a way to get this on every page not just the home page?

MoonDog 01-21-2008 10:19 PM

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 -

Freakmode 01-23-2008 12:06 AM

Re: Featured Products as a side menu
 
Another great piece of help MoonDog - thanks works a treat in 4.1.8


All times are GMT -8. The time now is 10:48 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.