[TYPO3-shop] Category filter - mbi categories

Jogvan Olsen jo at atlanticvideo.dk
Fri Sep 4 18:46:37 CEST 2009


Thanks for your answer

I thing the filter property is the right solution for me, BUT I can't 
figure out how to use if - can you guide me - please...

I have tried thing like this:

plugin.tt_products.conf.tt_products.ALL.filter {
     regexp {
        field {
           category = 2 + 7
        }
     }
}

But I only get 'no product in this category' message.

I want to set up a filter that show all products where BOTH category 2 
and 7 are assigned to the products - Can someone tell me what I'm doing 
wrong and ho I can do it right?

Thanks in advance
Jogvan Olsen


Lukas Taferner wrote:
> Hi Jogvan,
> 
> alternative solution:
> 
> Use the filter property . . . 
> http://typo3.org/documentation/document-library/extension-manuals/tt_products/2.6.1/view/1/4/#id2341213 
> 
> 
> regards,
> 
> Lukas
> 
> Jogvan Olsen schrieb:
>> Hi
>>
>> I have asked this question before, but didn't get any answer - and I 
>> haven't find a solution to my problem, so try once more...
>>
>>
>> Is it possibly to set a filter for the category?
>>
>> I have a category tree like this (using mbi_products_categories):
>>
>> Color (id=1)
>>     - black (id=2)
>>     - gray (id=3)
>>     - red (id=4)
>> Luster (id=5)
>>     - glossy (id=6)
>>     - semi gloss (id=7)
>>     ...
>>
>> And I have products that have category 'black (id=2)' and category 
>> 'semi gloss (id=7)' assigned to it.
>>
>> I want to set up a page that ONLY show product that are assigned to 
>> BOTH the 'black (id=2)' AND 'semi gloss (id=7)' category. (only show 
>> 'black semi gloss' products)
>>
>>
>> I want to set up a page tree like this:
>>
>> Select by color
>>   - Black
>>   - Black semi gloss
>>   - Black glossy
>>   - Gray
>>   - Gray semi gloss
>> ...
>>
>>
>> If I use:
>> plugin.tt_products.defaultCategoryID =  2,7
>> in my setup, I get an 'or' combination - showing all products that are 
>> assigned to the 'black (id=2)' or 'semi gloss (id=7)' category. I only 
>> wants to show products where BOTH categories assigned to the same 
>> product.
>>
>> I have tried to use the filter function, but get it to work.
>>
>> Can anybody tell me how I can set this up?
>>
>>
>>
>> I use
>> TYPO3 ver. 4.2.6
>> tt_products ver 2.8.0
>> mbi_products_categories ver. 0.4.4
>>
>>
>> Thanks  in advance
>> Jogvan Olsen
>> _______________________________________________
>> TYPO3-project-tt-products mailing list
>> TYPO3-project-tt-products at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-products 
>>
>>
>>   


More information about the TYPO3-project-tt-products mailing list