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

Show Feature Product with other products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-09-2008, 08:07 AM
 
toltion toltion is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 39
 

Default 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
__________________
X-Cart Gold 4.1.9
Gift Registry/Special Offers
Advanced mini-cart
XC-SEO
Mulltiple Category/Product Templates
Also bought/recently viewed
Feedback reviewer/viewer bundle
Marketing Manager Pro bundle
many more mods
Reply With Quote
  #2  
Old 07-10-2008, 12:14 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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?
Reply With Quote
  #3  
Old 07-10-2008, 06:07 AM
 
toltion toltion is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 39
 

Default Re: Show Feature Product with other products

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.
Attached Thumbnails
Click image for larger version

Name:	Show-Feature-Product.gif
Views:	223
Size:	13.7 KB
ID:	1033  
__________________
X-Cart Gold 4.1.9
Gift Registry/Special Offers
Advanced mini-cart
XC-SEO
Mulltiple Category/Product Templates
Also bought/recently viewed
Feedback reviewer/viewer bundle
Marketing Manager Pro bundle
many more mods
Reply With Quote
  #4  
Old 07-11-2008, 08:01 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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...?
Reply With Quote
  #5  
Old 07-11-2008, 09:06 AM
 
toltion toltion is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 39
 

Default 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
__________________
X-Cart Gold 4.1.9
Gift Registry/Special Offers
Advanced mini-cart
XC-SEO
Mulltiple Category/Product Templates
Also bought/recently viewed
Feedback reviewer/viewer bundle
Marketing Manager Pro bundle
many more mods
Reply With Quote
  #6  
Old 09-17-2008, 06:10 AM
  TBone's Avatar 
TBone TBone is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 38
 

Cool 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
__________________
_____________________________________________
www.webcreatives.nl | X-Cart Shops
X-Cart Versions 4.1.x | 4.2.x | 4.3.x | 4.4.x
Parallelweg 124-14, 1948 NN BEVERWIJK
The Netherlands
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 01:20 PM.

   

 
X-Cart forums © 2001-2020