Jump to content

Search the Community

Showing results for tags 'twig'.

  • Search By Tags

    • twig ×
    Type tags separated by commas.
  • Search By Author

Content Type



Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Found 16 results

  1. I develop a module using Twig for Prestashop 1.7 and 8. I have a form and I would like to use the ImagePreviewType (https://devdocs.prestashop-project.org/8/development/components/form/types-reference/image-preview-type/) But I use this field Type in my module, it just displays a hidden fi...
  2. im overriding the Admin\Product\CatalogPage\Lists\product_table.html.twig and i added new columns in the table but i wanted to ristrect this columns for certain profiles (admin & super Admin) the problem is that i don't have access to the connected employee data, Any Ideas ?
  3. Bonjour, j'ai désactivé le module chèque, car trop de faux chèques. et depuis, je n'ai plus accès au BO. En mode debug il y a tout un tas d'erreur que je ne comprends pas du tout. Pouvez vous m'aider svp? Dans l'en-tête, il me parle de relais colis, un module qui avait fait une err...
  4. Hi, i am creating a module on Presta 1.7.2, i would like to add a table of products in the admin product section (with the hook displayAdminProductsExtra). This is a simplified version of my code public function hookDisplayAdminProductsExtra($params) { $products = MyModel::...
  5. Hello, everyone: I need to show two new fields on the backoffice. I have them in the db on the customer table. I just need to know how to get the data from the db to de view, where I already could prepare de field presentation. I want to show it in the marked area in the picture....
  6. Hello, I added a test_field in /src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php public function buildForm(FormBuilderInterface $builder, array $options) { . . . ->add('test_field', TranslateType::class, [ 'type' => FormType\TextType::class, 'constraint...
  7. Hello Within Back Office of Prestashop version 1.7 I would like to prevent viewing the "Cost price" for employees without "SuperAdmin" status. In some other thread i have seen how this can be done but the solution was for previous 1.6 versions and below. I have succesfully found the right file a...
  8. 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...
  9. Hello, my orders page in backoffice (sell/orders/xxx/view?_token=xxxxx) prints escaped html content from Admin/Sell/Order/Order/Blocks/View/header.html.twig (screenshot attached) I checked my logs but no errors are thrown. can anyone please help me out? thanks I am running versio...
  10. i have created a symfony controller and i added a button in the toolbar , my problem is i want to add attribute like id or class to this button any help ? this is the button
  11. Je développe en ce moment un module et j'utilise le controller qui hérite du FrameworkBundleAdminController qui rend une vue avec le moteur de template twig mais la vue de mon template avec twig n'herite pas de celle du tableau de bord admin comme celle de la page de configuration de module, vous au...
  12. In my module Prestashop 1.7.5 I want to override the product list view in the admin panel, and more precisely, I want to add an additional action of my controller for each of the products on the list. Where there are actions View, Delete duplicate. I copied src/PrestaShopBundle/Resources/views/...
  13. In prestashop 1.7.5 I have an admin controler which extends FrameworkBundleAdminController. Now I want to download data from my table in this controller and display it in the grid (table) in a similar way as customer data or their addresses are displayed. How do you do it in a twig based templa...
  14. Bonjour, Je souhaiterais ajouter un champ en back office Prestashop 1.7 dans l'onglet prix de la fiche produit pour connaitre le coefficient et la marge du produit.( voir image jointe) J'ai essayé de modifier le fichier form.html.twig mais sans résultat (src/PrestaShopBundle/Resources/view...
  15. Ciao gente, sapete percaso se sia possibile definire, da dentro un modulo, una variabile da usare dentro un file twig? Vi chiedo questo perchè ho apportato modifiche dentro la pagina di elenco prodotti utilizzando l'override del file catalog.html.twig So che posso creare un hook pers...
  16. I recently created a module to add a new attribute to product images It works perfectly with the field added by the module, however the native field "cover" has stopped working (the value is not saved while the module is active). In addition to the module files and overrides (Image.php and A...
×
×
  • Create New...