![]() |
How to Exclude from {section} loop
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 |
This should be more streamlined, but here's a quick fix to exclude that single product.
Apply to modules/Recommended_Products/recommends.tpl Code:
{section name=num loop=$recommends} 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. |
that worked great, thanks pm!
|
^_^ !
|
All times are GMT -8. The time now is 08:41 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.