Jump to content
PrestashopUser03

faire apparaitre des infos de $product dans twig

Recommended Posts

Bonjour à tous, j'ai ajouté deux colonnes dans la table ps_product: isMotor et isDirect qui ont pour valeur 0 ou 1. Comment les utiliser sur twig? Je les ai déjà ajouté dans la class product.php

(public $isMotor;
    public $isDirect;

et

'isMotor'=>array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
            'isDirect'=>array('type' => self::TYPE_BOOL, 'validate' => 'isBool').

 

Lorsque j'ajoute {{ isDirect }} sur src/prestashopbundle/resources/views/admin/product/productpage/panels/essentials.html.twig

Rien ne s'affihce, quelqu'un saurait pourquoi?

 

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More