I'm looking for a way to extend the backend of the TYPO3 extension cart_products with one additional select field. I have already created some different ViewHelpers for the ProductBackendVariants and now need a way to choose the corresponding Viewhelper.
Best would be if there is a selection direct after the type select in the general product type. But I am not able to add some additional configuration fields to this tab.
Already added
'formtemplate' => [
'label' => 'ProductDetail Variant Form',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
['Standard', 1],
['Matten', 2],
['Zaunpaket', 3],
],
'size' => 1,
'minitems' => 1,
'maxitems' => 1,
],
],
to the tx_cartproducts_domain_model_product_product.php
but nothing appears in the backend.
I don't know that specific extension but some hints in general:
cart_products/Configuration/TCA/tx_cartproducts_domain_model_product_product.php
). You should never change anything in a 3rd party extension (neither the TYPO3 core) because you loose the ability to update.Configuration/TCA/Overrides
. Ideally you name the file exactly like the file you like to extend for easier understanding. See the documentation for details.ext_tables.sql
of your custom extension.showitem
setting. See documentation for details.ext_tables.sql
.ext_tables.sql
you need to run the database compare in the TYPO3 install tool.