X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Show Feature Product with other products (https://forum.x-cart.com/showthread.php?t=40988)

toltion 07-09-2008 08:07 AM

Show Feature Product with other products
 
I understand that featured products only show on subcategories when there are no regular products in that category. I've searched through the NG and can't find a way around this.

I'd like to show one featured item to the left of the products list - I guess that would be on subcategories.tpl. I have it working fine when there are no regular products assigned to the category, but not with products. Is this possible?

Thanks,

Tony

Yurij 07-10-2008 12:14 AM

Re: Show Feature Product with other products
 
Quote:

Originally Posted by toltion
I understand that featured products only show on subcategories when there are no regular products in that category. I've searched through the NG and can't find a way around this.

I'd like to show one featured item to the left of the products list - I guess that would be on subcategories.tpl. I have it working fine when there are no regular products assigned to the category, but not with products. Is this possible?

Thanks,

Tony


I think this is possible.


You need to be showing just one Featured Products (of course if it exists) for each category and subcategory in the left menu?

toltion 07-10-2008 06:07 AM

Re: Show Feature Product with other products
 
1 Attachment(s)
It's really in the left quadrant of the subcategories template. I didn't think about using the left menu. Since I'm not using the vertical menus, maybe it's possible to resize a left menu and show the product there.

I've attached an image to illustrate what I need.

Yurij 07-11-2008 08:01 AM

Re: Show Feature Product with other products
 
Quote:

Originally Posted by toltion
It's really in the left quadrant of the subcategories template. I didn't think about using the left menu. Since I'm not using the vertical menus, maybe it's possible to resize a left menu and show the product there.

I've attached an image to illustrate what I need.


Standings help you to solve this problem next week, unfortunately this week there is no free time to do it.

Several questions:
- If for this category are not specified "Featured products", this column will not show or will empty or ... ?
- If chosen sorting or next page for a list of products for current categorie, this column ( "Featured products") will still show or emty or...?

toltion 07-11-2008 09:06 AM

Re: Show Feature Product with other products
 
Thanks Yurij,

As it turns out I paid someone to get this working for us. Thanks for your replies!

Tony

TBone 09-17-2008 06:10 AM

Re: Show Feature Product with other products
 
This is what i did to show the featured products also when the catefory has products assigned to it. (did this on xcart 4.1.10)

In home.php comment out

if (empty($products))


In

featured_products.php I added

$searchtype="featured";

just before

include $xcart_dir."/include/search.php";

and commented out

$smarty->clear_assign("products");

In include/search.php I replaced

$smarty->assign("products", $products);

with

if (!$searchtype=="featured") {
$smarty->assign("products", $products);
}

In products.php I added

$products = array();
unset($search_data, $products);

Just before

?> at the bottom of the page


All times are GMT -8. The time now is 04:13 PM.

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