
Originally Posted by
doodlebee
Here I am, trying to figure out why it's not working. I'm like halfway there, and then I read this part of your answer. That'll teach me not to read *everything* first ;)
Yes, I'd be interested in how to edit the SQL query. Actually, I'm not afraid of doing that, I've edited a few SQL queries in my time. But if you already have the method of doing it worked out, it would save me some time from trying to figure it out on my own. I'd really appreciate it if you could pass that long to me :)
IF I remember correctly, (my brains already moved on from this, lol, it can only hold so much before the old stuff is deleted), but from some research, I found out I modified the SQL query here:
includes/index_filters/default_filter.php
Approx line 73, I added p.master_categories_id after
p.products_type
so it looks like this:
Code:
$listing_sql = "select " . $select_column_list . " p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, .........
Then in the includes/modules/product_listing.php I did the:
if (($listing->fields['master_categories_id']) != '16') {
to say "if this product is not in category 16, do this, else, do that...."
Hope that helps... it seems like you're on the right track, so I wont elaborate more, but let me know how it goes....