Cast getConfigData in velocity helper

This commit is contained in:
jitendra 2022-08-09 11:45:20 +05:30
parent e15fe96499
commit 2e23a17257
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ class Helper extends Review
'product' => $product,
'addWishlistClass' => ! (isset($list) && $list) ? '' : '',
'showCompare' => core()->getConfigData('general.content.shop.compare_option') == '1',
'showCompare' => (bool) core()->getConfigData('general.content.shop.compare_option'),
'btnText' => (isset($metaInformation['btnText']) && $metaInformation['btnText'])
? $metaInformation['btnText'] : null,