| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to Exclude from {section} loop | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I tried searching for this but couldn't find it. Anyway I have an item called "Ebay Auction Payment" set at $0. The thing is, I don't want this item to show up on the recommends list when customers are browsing other products.
How do I exclude the ebay payment item from the recommends loop? thanks .Version 3.5.11 |
|||||||
#2
|
|||||||
|
|||||||
![]() This should be more streamlined, but here's a quick fix to exclude that single product.
Apply to modules/Recommended_Products/recommends.tpl Code:
A better way would be to create a new field, perhaps in the products table, that could be set to exclude products from the recommended list. Then in recommends.php, you could add a conditional check to determine whether or not a product should be included. Then you could manage the exclusions from the modify product/create new product pages.
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
#3
|
|||||||
|
|||||||
![]() that worked great, thanks pm!
|
|||||||
#4
|
|||||||
|
|||||||
![]() ^_^ !
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|