Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Format/CurrencyViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function render(): string

$settings = $this->templateVariableContainer->get('settings');

if ($settings && $settings['format'] && $settings['format']['currency']) {
if (isset($settings['format']['currency']) && is_array($settings['format']['currency'])) {
$currencyFormat = $settings['format']['currency'];

if (!isset($currencySign) && isset($currencyFormat['currencySign'])) {
Expand Down
21 changes: 21 additions & 0 deletions Configuration/page.tsconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# Template path for dashboard widgets
templates.typo3/cms-dashboard.1712899110 = extcode/cart:Resources/Private/

tx_cart {
persistence {
storagePid = {$module.tx_cart.persistence.storagePid}
}

settings {
format.currency {
currencySign = {$plugin.tx_cart.settings.format.currency.currencySign}
decimalSeparator = {$plugin.tx_cart.settings.format.currency.decimalSeparator}
thousandsSeparator = {$plugin.tx_cart.settings.format.currency.thousandsSeparator}
prependCurrency = {$plugin.tx_cart.settings.format.currency.prependCurrency}
separateCurrency = {$plugin.tx_cart.settings.format.currency.separateCurrency}
decimals = {$plugin.tx_cart.settings.format.currency.decimals}
}

backend {
dateFormat = {$plugin.tx_cart.settings.backend.dateFormat}
}
}
}
21 changes: 0 additions & 21 deletions ext_typoscript_setup.typoscript
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
module.tx_cart {
persistence {
storagePid = {$module.tx_cart.persistence.storagePid}
}

settings {
format.currency {
currencySign = {$plugin.tx_cart.settings.format.currency.currencySign}
decimalSeparator = {$plugin.tx_cart.settings.format.currency.decimalSeparator}
thousandsSeparator = {$plugin.tx_cart.settings.format.currency.thousandsSeparator}
prependCurrency = {$plugin.tx_cart.settings.format.currency.prependCurrency}
separateCurrency = {$plugin.tx_cart.settings.format.currency.separateCurrency}
decimals = {$plugin.tx_cart.settings.format.currency.decimals}
}

backend {
dateFormat = {$plugin.tx_cart.settings.backend.dateFormat}
}
}
}

config.pageTitleProviders {
cart {
provider = Extcode\Cart\PageTitle\PageTitleProvider
Expand Down