[TYPO3-shop] Extending tt_products
Franz Holzinger
franz at fholzinger.com
Thu Oct 19 12:49:39 CEST 2006
Hello Martin,
> Franz Holzinger schrieb:
>
>> use only the fields which are already inside of tt_products.
>> Or send me the new needed fields and other code enhancements you make.
>> Then I can incoporated them into tt_products.
>
>
> Doesn't sound too flexible. It'd be great if I could add fields to the
> product record. If I use a field prefix there should be no clash. I only
> need a way to tell the shop I have some more fields to render/process.
You can use your own product/article hook function for
getItemMarkerArray. So your fields can be displayed in the frontend for
a product or article.
And you need to add the name of your extensions to
GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXTkey]['prodCategory']
in order that loadTcaAdditions will work correctly.
However many field names are still hardcoded inside of tt_products.
> ISBN looks general enough, but I prefer it if an extension is extensible
> so I can make local changes that are upgrade-safe. eg in the Core I can
> add fields to be stored in the rootline.
Fields can be added but they are not used in the code. And the
parameters of hook functions might change in the future.
In December I will move tt_products to PHP5.
Greets,
Franz
More information about the TYPO3-project-tt-products
mailing list