[TYPO3-shop] [Typo3-shop] extending product search

Vikram Mandal [Typo3India] vikram at typo3india.com
Sat Feb 18 16:04:00 CET 2006


Franz Holzinger wrote:

>Hello Vikram,
>
>  
>
>>Is there no (elegant) way to extend the product search?
>>
>>    
>>
>
>You can write a new file with a class tx_ttproducts_search that has at
>least the current method searchWhere.
>
>Then I can put this into tt_products.
>
>Greets,
>
>Franz
>  
>
Hi Franz,

I have created a simple search file and did the following changes to 
tt_products to get it working:
(latest version with the changes available at 
http://www.fivee.in/fileadmin/T3X_tt_products-2_4_6-z-with_search_file.zip)

Step-1: created the lib/class.tx_ttproducts_search.php with the 
searchWhere() method
Step-2: included the search file in the class.tx_ttproducts_pi1.php file 
(see line 75)
Step-3 made a instance of the new search file in the 
lib/class.tx_ttproducts_list_view.php (see line 122)

Can you have a look and confirm if this is the correct approach or is 
there a better way to do it.

Regards,
Vikram Mandal.







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