cart
cart copied to clipboard
Impossible to override fluidemail paths
it is impossible to override the fluid emails as the extension from current request will come last
I propose to provide a custom TemplatePaths object and take a custom setting into account + removing setting typo3_conf_vars in ext_localconf.php
.
Same here. It would be cool having a solution for this.
I am happy to test a solution. :-)
Thx for your great extension!
You could overwrite the templates/partials/layouts via TYPO3_CONF_VARS like
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['layoutRootPaths'][1632915465] = 'EXT:sitepackage/Resources/Private/Layouts/Mail';
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['partialRootPaths'][1632915465] = 'EXT:sitepackage/Resources/Private/Partials/Extensions/Cart';
You could overwrite the templates/partials/layouts via TYPO3_CONF_VARS like
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['layoutRootPaths'][1632915465] = 'EXT:sitepackage/Resources/Private/Layouts/Mail'; $GLOBALS['TYPO3_CONF_VARS']['MAIL']['partialRootPaths'][1632915465] = 'EXT:sitepackage/Resources/Private/Partials/Extensions/Cart';
Same here. Unfortunately, overwriting does not work and 'cart' is always the last entry.
Doesn't work here too, also not with changing TYPO3_CONF_VARS in a custom extension like described here:
https://docs.typo3.org/p/extcode/cart/main/en-us/Changelog/7.0/Breaking-288-ChangeMailHandlerToFluidEmail.html?highlight=template
Workaround for now is to patch ext_localconf.php
of EXT:cart and add the lines there, f.e.:
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['partialRootPaths']['1600000000'] = 'EXT:myext/Resources/Private//Extensions/Cart/Partials/';
I think it's essential to be able to override fluidemails, so this should be fixed.
Last but not least, documentation lacks information about overriding fluidemails completely. ;-)