cart icon indicating copy to clipboard operation
cart copied to clipboard

Impossible to override fluidemail paths

Open georgringer opened this issue 3 years ago • 7 comments

it is impossible to override the fluid emails as the extension from current request will come last image

I propose to provide a custom TemplatePaths object and take a custom setting into account + removing setting typo3_conf_vars in ext_localconf.php.

georgringer avatar Mar 08 '21 11:03 georgringer

Same here. It would be cool having a solution for this.

I am happy to test a solution. :-)

Thx for your great extension!

mschwemer avatar Aug 16 '21 14:08 mschwemer

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';

KaffDaddy avatar Sep 29 '21 12:09 KaffDaddy

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.

ralessandri avatar Dec 01 '22 15:12 ralessandri

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. ;-)

h-e-l-l-o-w-o-r-l-d avatar Apr 18 '23 09:04 h-e-l-l-o-w-o-r-l-d