简体   繁体   English

Joomla3组件添加其他注册字段

[英]Joomla3 component add additional registration fields

I am currently creating a shop-like component for Joomla 3. For this component, I will need some additional user-fields (Address) for the processing of the order. 我目前正在为Joomla 3创建类似商店的组件。对于此组件,我将需要一些其他用户字段(地址)来处理订单。

My question is as follows: 我的问题如下:

What would in your opinion be the best way to achieve this: 您认为什么是实现此目标的最佳方法:

  1. Edit the Joomla Login component and add the required fields to the database 编辑Joomla登录组件,并将必填字段添加到数据库中
  2. Use an other already existing component for user management 使用其他现有组件进行用户管理
  3. Implement an own registration part in my component and create the login-module myself 在我的组件中实现自己的注册部分并自己创建登录模块

Which of these possibilities would you suggest and why? 您会建议其中哪些可能性?为什么? Or would you even choose an other solution, then tell me ;) 或者您甚至会选择其他解决方案,然后告诉我;)

  1. Never edit core files or tables, doing so prevents you from being able to upgrade to the latest security releases without loosing all of your work, and constant security updates is one thing Joomla is very proactive about. 切勿编辑核心文件或表,这样做会阻止您升级到最新的安全版本,而又不会失去所有工作,而持续的安全更新是Joomla非常主动的一件事。

  2. Looking at using extended profiles , but remember that other extension also include profile plugins. 着眼于使用扩展配置文件 ,但请记住,其他扩展也包括配置文件插件。

  3. Most existing e-commerce, community or social network extensions extend the base user details by using a second table where records are linked by the core user ID, this way they can extend as much as require while still retaining the benefits of Joomla upgrades and authentication mechanisms. 大多数现有的电子商务,社区或社交网络扩展都通过使用第二个表来扩展基本用户详细信息,在该表中,记录通过核心用户ID进行链接,这样,它们可以按需扩展,同时仍保留Joomla升级和身份验证的好处机制。

  4. Typically in e-commerce solutions you only need the extended information when the user has filled their cart and are in the process of "checking out" this is a low impact point to ask the user for those extra details if you don't find them already stored by Joomla or your component. 通常,在电子商务解决方案中,您仅在用户装满购物车并且正在“结帐”时才需要扩展信息,如果您找不到这些额外的详细信息,则向用户询问这些额外信息的影响很小已由Joomla或您的组件存储。

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

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