Fatal error: Uncaught SmartyCompilerException: Syntax error in template "file:/home/fasardi/public_html/nachemii.pl/modules/udmetapixel/views/templates/hook/pixel.tpl" on line 54 "var num = (p.cart.contents||[]).reduce(function(a,c){return a + (c.quantity||0)},0);" - Unexpected "." in /home/fasardi/public_html/nachemii.pl/modules/udmetapixel/views/templates/hook/pixel.tpl:54 Stack trace: #0 /home/fasardi/public_html/nachemii.pl/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php(2819): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/fasardi/public_html/nachemii.pl/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php(2880): Smarty_Internal_Templateparser->yy_syntax_error(44, '.') #2 /home/fasardi/public_html/nachemii.pl/vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(128): Smarty_Internal_Templateparser->doParse(44, '.') #3 /home/fasardi/public_html/nachemii.pl/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompil in /home/fasardi/public_html/nachemii.pl/classes/Hook.php on line 431