is it possible to change the success.php controller with an before trigger handler?
I have tried this, but there is no output on the success page.
Code: Select all
$myvar= str_replace(
[
'if (isset($this->session->data[\'order_id\'])) {',
],
[
'if (isset($this->session->data[\'order_id\'])) {
echo \'TEST\'',
],
$code
);
In:
Code: Select all
'trigger' => 'catalog/controller/checkout/success/before',
Did I misses somethin?
Best,
Jack