Jump to content

Authorize.net (SIM) confirmation page


Recommended Posts

I installed and configured Authorize.net free module. The charge process works OK, I get all confirmation emails, but after that, the order confirmation page throws an ugly smarty error:

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home6/rivertwo/public_html/modules/authorizesim/order-confirmation.tpl" on line 3 "<h2 style="color:red">{l s='Payment error mod='authorizesim'}</h2>" - Unexpected "authorizesim", expected one of: "}" , " "' in /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:431 Stack trace: #0 /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(2855): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(2920): Smarty_Internal_Templateparser->yy_syntax_error(18, 'authorizesim') #2 /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(51): Smarty_Internal_Templateparser->doParse(18, 'authorizesim') #3 /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(82): Smar in /home6/rivertwo/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 431

 

Anyone has any suggestions? Much appreciated...

Link to comment
Share on other sites

OK, the module was wrong on their end.

If anyone has the same problem, here is the fix:

 

1. Open the file /modules/authorizesim/order-confirmation.tpl

 

2. Change line 3 to this:

<h2 style="color:red">{l s='Payment error' mod='authorizesim'}</h2>

(the closing apostrophe after error was missing)

 

3. Change line 8 to this:

<h2 style="color:green">{l s='Payment Successful' mod='authorizesim'}</h2>

(the closing apostrophe after Successful was missing)

 

I suggested to Prestashop Team/Customer Service to fix the module on their end, but I don't know how soon they'll do it.

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...