To be able to return to Opencart from an outside app I need to remember the (user_)token. Otherwise I must login again.
Used to do that in 1.5.5.1 is this way:
app.php?token=<?php echo $token; ?>
This doesn't work in 3.0.3.2. Twig refuses the php code
How should I transfer user_token now in URL?
If the $token variable is still set in the controller file, then you'd use this in the .twig template:
{{ token }}
You can read more about Twig syntax here:
https://twig.symfony.com/
{{ token }}
You can read more about Twig syntax here:
https://twig.symfony.com/
Or this:
And you should specify in which file you use app.php?token=<?php echo $token; ?> on 1.5 version...
Code: Select all
app.php?token={{ user_token }}
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Just to note, OpenCart 3 uses "user_token" instead, so you probably want this:
Code: Select all
user_token={{ user_token }}
Who is online
Users browsing this forum: nonnedelectari and 66 guests