| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
excluding 1 cat. of products from Recommended Prod's results | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi All,
Anyone know of a way to exclude the products of 1 specified main category (and its subcategories) from ever displaying in randomly generated Recommended Products results? I appreciate any input on how to go about this --thanks.
__________________
X-Cart version: 4.0.17 |
|||||||
#2
|
|||||||
|
|||||||
![]() Someone outside of these forums was gracious enough to point me in the right direction, so here's the answer:
Open up recommends.php, then find the line that starts: Code:
Then, further on that same line, I added the following (in bold text): ...AND $sql_tbl[categories].categoryid = $sql_tbl[products_categories].categoryid AND $sql_tbl[categories].avail = 'Y' AND $sql_tbl[categories].categoryid != xxx AND $sql_tbl[categories].membership IN... ^xxx being the category id you want to exclude from the recommended products results. Cheers
__________________
X-Cart version: 4.0.17 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|