简体   繁体   English

如何在订单清单Opencart中添加列?

[英]How to add column in order list Opencart?

How to add column in this table of opencart in the admin dashboard? 如何在管理控制台的opencart表格中添加列? Because I want to insert the 'company name' in the middle of 'Customer' and 'Status'? 因为我想在“客户”和“状态”中间插入“公司名称”?

What file should I edit to make it done? 我应该编辑哪个文件才能完成?

订单

Whenever you need to add a column to a list view in OpenCart, you need to... 每当您需要在OpenCart中将列添加到列表视图时,都需要...

  • Add a language definition for each relevant language ("column_xyz") 为每种相关语言添加语言定义(“ column_xyz”)
  • Make sure the column is selected in the SQL Query, which you can find in the Model layer 确保在“ SQL查询”中选择了该列,您可以在“模型”层中找到该列
  • Re-map the database-column to a view-column in the controller function 在控制器功能中将数据库列重新映射到视图列
  • Show the title and values in the HTML table 在HTML表中显示标题和值
  • Implement sorting and filtering, which will have more effects on your view, controller and model. 实现排序和过滤,这将对您的视图,控制器和模型产生更大的影响。

This is just a quick checklist I use for planning. 这只是我用于计划的快速清单。 Each step is more complex than one sentence can explain. 每个步骤都比一个句子可以解释的更为复杂。 You should absolutely check the OpenCart Community Forum for more detailed manuals. 您绝对应该查看OpenCart社区论坛以获取更多详细手册。 One example I found would be here , they want to show a different column but the principles are the same. 我发现这里有一个例子,他们想显示另一列,但原理相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM