Prestashop 1.5.6 添加新产品页面

Prestashop 1.5.6 Add New Product Page

我是一名开发人员,但对 Prestashop 不熟悉(不太熟悉模板,因为我不是 Web 开发人员,但刚开始......)但只是帮助我的朋友管理他的网站。

我检查了当前版本是 1.5.6,我正在尝试在 Product table 中添加一个新字段,并在下一页中添加另一个描述输入区域。

我看过 Product.php (类 > product.php), AdminProductsController.php (controllers > admin > adminproductscontroller.php) 和 Products.tpl (themes > uhu023v15 > products.tpl) 但其中 none似乎与我有关。不确定我需要修改哪些文件。请帮忙。

你需要去

adminXXXX/themes/default/template/controllers/products/informations.tpl

因为这是后端模板(product.tpl 是前端模板,客户在查看产品时看到的)

在那里你会发现

            <tr>
                <td class="col-left">
                    {include file="controllers/products/multishop/checkbox.tpl" field="description_short" type="tinymce" multilang="true"}
                    <label>{l s='Short description:'}<br /></label>
                    <p class="product_description">({l s='Appears in the product list(s), and on the top of the product page.'})</p>
                </td>
                <td style="padding-bottom:5px;">
                        {include file="controllers/products/textarea_lang.tpl"
                        languages=$languages
                        input_name='description_short'
                        input_value=$product->description_short
                        max=$PS_PRODUCT_SHORT_DESC_LIMIT}
                    <p class="clear"></p>
                </td>
            </tr>
            <tr>
                <td>
                     **Your HERE** ;)
                </td>
            </tr>
            <tr>
                <td class="col-left">
                    {include file="controllers/products/multishop/checkbox.tpl" field="description" type="tinymce" multilang="true"}
                    <label>{l s='Description:'}<br /></label>
                    <p class="product_description">({l s='Appears in the body of the product page'})</p>
                </td>
                <td style="padding-bottom:5px;">
                        {include file="controllers/products/textarea_lang.tpl" languages=$languages
                        input_name='description'
                        input_value=$product->description
                        }
                    <p class="clear"></p>
                </td>
            </tr>

从那里你需要复制整个文本区域块并根据功能查找和复制(不确定在哪里)