Author Topic: Order Status Description in Shopper Email (what changed ?)  (Read 765 times)

dirkb

  • Jr. Member
  • **
  • Posts: 74
Re: Order Status Description in Shopper Email (what changed ?)
« Reply #15 on: May 07, 2019, 17:15:41 pm »
echo jText gives me the language constant
vmText directly give me the expected translation (TEST NEWSITE)

See screen.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2235
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Order Status Description in Shopper Email (what changed ?)
« Reply #16 on: May 07, 2019, 17:35:23 pm »
Then You have to examine the key, I said it contains hidden characters, blanks, carriage return, tabs, you name it.
It is there, you have to examine the result and take appropriate action, this is not VM support, this is common PHP
programming. Find the issue and remove it, there are plenty of PHP functions to use both to examine the key
and to strip unwanted characters. Methodical approach is the best way to do it. I doubt that the vMText is buged,
but without checking Your string, we will never know.

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3905
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Order Status Description in Shopper Email (what changed ?)
« Reply #17 on: May 07, 2019, 18:01:19 pm »
else add trim + strtoupper to be sure you have the KEY right formated.
something as
$key = strtoupper(trim($key));

dirkb

  • Jr. Member
  • **
  • Posts: 74
Re: Order Status Description in Shopper Email (what changed ?)
« Reply #18 on: May 08, 2019, 10:21:51 am »
Jörgen and Studio.

Thanks for all your help. Appreciate it.
Jörgen was right, the ORDER_STATUS_ had a hidden space. Now its working perfectly.
Compared to the core hack I had to do back with 3.0.19, that solution is very elegant =)

cheers