You are here:  » Name Case filter to force all Upper Case


Name Case filter to force all Upper Case

Submitted by Convergence on Sat, 2016-05-21 15:59 in

Heavily modified v12/10B

Greetings David!

We need a Name Case filter that will force all letters to be Upper Case.

For example if a merchant has:

AaBb123Cc in a model, we want it to read: AABB123CC

Can you assist with this, please?

Thanks!

Submitted by support on Sun, 2016-05-22 10:40

Hi Convergence,

Here's code for an UPPER CASE filter, add to includes/filter.php:

  /*************************************************/
  /* nameCase */
  /*************************************************/
  $filter_names["upperCase"] = "UPPER CASE";
  function filter_upperCaseConfigure($filter_data)
  {
    print "<p>There are no additional configuration parameters for this filter.</p>";
  }
  function filter_upperCaseValidate($filter_data)
  {
  }
  function filter_upperCaseExec($filter_data,$text)
  {
    return strtoupper($text);
  }

Cheers,
David.
--
PriceTapestry.com