Or use a printf function and associated reference to echo the above definition.
Ie:
Code:
define('MY_CONSTANT', 'info to display and order_id: %s');
In presentation:
Code:
printf(MY_DEFINE, $zv_orders_id);
Reason is that language definitions are called before the associated data is made available, so basically the $zv_orders_id is null at the time the define is processed. The above was shown with a single variable; however, if there are two or more and it is designed to possibly use more than one language, then would want to use a sort of reference for each such use so that they can be resequenced within the define and the assigning printf function can remain unchanged.
Bookmarks