Jump to content

Edit History

arlevi

arlevi

In my version of smarty & prestashop writing

{$variable nofilter}

causes the template the crash with

# ps_wirestransfer
<p>
  {l s='If you have questions, comments or concerns, please contact our [1]customer support team[/1].' 
     mod='ps_wiretransfer' 
     sprintf=['[1]' => "<a href='{$contact_url}'>", '[/1]' => '</a>']
  nofilter}
</p>

# error due to nofilter & sprintf used together ?
 too many shorthand attributes in module
Smarty_Internal_TemplateCompilerBase->trigger_template_error('too many shorth...', 14, true)

 

But if I use some other way of writing

<p>
  {l s='If you have questions, comments or concerns, please contact our [1]expert customer support team[/1].' 
     d='Modules.Wirepayment.Shop' 
     sprintf=['[1]' => "<a href='{$contact_url}'>", '[/1]' => '</a>']
  }
</p>

# This works, BUT
# 1) I don't need to add "nofilter" and i see the link
# 2) I don't see an option to translate this sentence for some reason ...

Any ideas how do I get out of this loop ?

arlevi

arlevi

In my version of smarty & prestashop writing

{$variable nofilter}

{$variable nofilter}

causes the template the crash with

# ps_wirestransfer
<p>
  {l s='If you have questions, comments or concerns, please contact our [1]customer support team[/1].' 
     mod='ps_wiretransfer' 
     sprintf=['[1]' => "<a href='{$contact_url}'>", '[/1]' => '</a>']
  nofilter}
</p>

# error due to nofilter & sprintf used together ?
 too many shorthand attributes in module
Smarty_Internal_TemplateCompilerBase->trigger_template_error('too many shorth...', 14, true)

 

But if I use some other way of writing

<p>
  {l s='If you have questions, comments or concerns, please contact our [1]expert customer support team[/1].' 
     d='Modules.Wirepayment.Shop' 
     sprintf=['[1]' => "<a href='{$contact_url}'>", '[/1]' => '</a>']
  }
</p>

# This works, BUT
# 1) I don't need to add "nofilter" and i see the link
# 2) I don't see an option to translate this sentence for some reason ...

Any ideas how do I get out of this loop ?

×
×
  • Create New...