CMS MADE SIMPLE FORGE

Orders

 

[#11841] Template fix Billing Form Template

avatar
Created By: Rolf (rolf1)
Date Submitted: Fri Jun 22 08:44:38 -0400 2018

Assigned To:
Version: 1.23.2
CMSMS Version: 2.2.7
Severity: None
Resolution: None
State: Open
Summary:
Template fix Billing Form Template
Detailed Description:
The default template includes this:

  {if count($errors) == 1}
    {$errors}
  {else}
    <ul>
    {foreach $errors as $error}
      <li>{$error}</li>
    {/foreach}
    </ul>
  {/if}

If you have 1 error, the output is "Array"

It should be:

  {if count($errors) == 1}
    {$errors[0]}
  {else}
    <ul>
    {foreach $errors as $error}
      <li>{$error}</li>
    {/foreach}
    </ul>
  {/if}

Or shorter:

  {if count($errors)}
    <ul>
    {foreach $errors as $error}
      <li>{$error}</li>
    {/foreach}
    </ul>
  {/if}

Thanks Rolf


History