Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How Do You Use Variables In The Notifications When They Use Language Variables? Rate Topic   - - - - -

 
  • bebopboy
  • Advanced Member
  • Trial users
  • Join Date: 04-Feb 20
  • 82 posts

Posted 23 June 2020 - 03:35 AM #1

Hi, so I noticed the content of some language variables have variables that get assigned to it. For example, there's a language variable with this content:

 

The status of your order has been changed to [status].

 

How do I use this if I want to use fn_set_notification and a language variable with another variable inside it?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20773 posts

Posted 23 June 2020 - 05:26 AM #2

E.g.

fn_set_notification('N', __('notice'), str_replace('[status]', $new_status, __('your_language_variable')));

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)