prestashop 1.7 如何编辑“添加产品"后台页面 [英] prestashop 1.7 how to edit the "add product" page in backoffice

查看:65
本文介绍了prestashop 1.7 如何编辑“添加产品"后台页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试编辑主题中的页面但没有任何成功,因为我在产品表中添加了另外 7 个字段,我想在后台管理这些字段.

I am trying without any success, to edit the page in the subject, because I have added 7 more fields in the product table that I would like to manage in the backoffice.

我已经看到 Prestoshop 的 1.6 版本具有该页面的特定视图,并且向表单添加字段非常简单.至于 1.7,我简直要疯了,因为我找不到任何管理添加产品"页面的视图.

I have seen that the 1.6 version of Prestoshop had a specific view for that page and that it was pretty simple to add fields to the form. As to the 1.7 I'm going literally crazy, because I cannot find any view that manages the "add product" page.

有什么提示吗?我知道这可能与 Prestashop 中 Symfony 的引入有关,但我不明白是怎么回事.

Any hint? I know that it could probably have something to do with the introduction of Symfony in Prestashop, but I don't get how.

谢谢

编辑

此处找到解决方案.很好的答案:https://stackoverflow.com/a/44861846/1873501

Solution found here. Great answer: https://stackoverflow.com/a/44861846/1873501

推荐答案

其实和 Symfony/Twig 部分有关,就像 Module admin 控制器,所以你要看看这里:/src/PrestaShopBundle/Form/Admin/产品

Actually it is related to the Symfony / Twig part, like Module admin controllers, so you have to take a look here : /src/PrestaShopBundle/Form/Admin/Product

调试这部分最好的方法是在 1.7 上使用调试模式和 Symfony bar,你可以用 Twig 跟踪正在发生的事情!

Best way to debug this part is to use debug mode on 1.7 with Symfony bar, you can track what is happening with Twig !

所有包都存储在 ./src/中,就像在经典的 Symfony 安装中一样.

All bundles are stored in ./src/ like in a classic Symfony installation.

实现事情的更好方法实际上是制作一个模块(https://validator.prestashop.com/generator) 与 displayAdminProductsExtra 挂钩!

Edit : A better way to achieve things would actually to make a module (https://validator.prestashop.com/generator) with displayAdminProductsExtra hook !

这篇关于prestashop 1.7 如何编辑“添加产品"后台页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆