[TYPO3-shop] tt_products and requiredFields

Franz Holzinger franz at fholzinger.com
Tue Jun 10 18:17:10 CEST 2008


Hello Petra,

> in my user_bookshop extension I've defined some extra fields in table
> tt_products like this:
> 
> plugin.tt_products {
> 
> ...
>     conf.tt_products.ALL {
>         requiredFields =
> uid,pid,category,price,price2,tax,inStock,user_bookshop_isbn,itemnumber,user_bookshop_alwaysinstock,
> user_bookshop_asin,user_bookshop_author,user_bookshop_reorder_days
>     }
> 
>     # only a try but changes nothing
>     conf.tt_products.SINGLE < conf.tt_products.ALL
> }
> 
> 
> These extra fields are accessed in method getItemMarkerArray which I
> implemented like Franz was telling me in my posting a few days ago.
> 
> While I can access these fields when LIST is displayed they aren't
> available in SINGLE view.
> 
> I've dumped $items in getItemMarkerArray and it seems that
> requiredFields is not recognized at all in SINGLE view.

No, the model/class.tx_ttproducts_article_base.php
$item on line 258 has all these fields set.


. Franz




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