Jump to content

Probleme variable "does not exist" to back-office twig template


Recommended Posts

Hello, and thank you for reading.

Prestashop Version: 1.7.8.7

I'm trying to do my own meta seo preview for learning, and I could easily manage to override the emplacement of the default one. But I can't manage to get twig to recognize my variable, saying it doesn't exist. But the variable show in context:

image.thumb.png.4df2e3aed71882b06d763de17cf9ec00.pngVariable showing in the context with the error

The variable is showing in the context, from the error. But can't be see by Twig. And the variable is being given to twig when I render the template. image.thumb.png.954263c30a057629b40e9153681c0b0f.png

 

I searched a lot of solution in the PrestaShop documentation who's mostly empty for this case of figure, and I been searching on google or with developers since 5 days now and I'm just stuck at the 'giving Twig my variable" step... Could someone see where the problem could occur ? Or if I'm doing something bad ?

Thanks you for having read that ! I really hope a solution could come from this topic

 

image.png

image.png

image.png

image.png

Edited by Alexandre B. (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...