Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom fields limited to Products Table #21

Open
mc12345678 opened this issue Apr 26, 2016 · 0 comments
Open

Custom fields limited to Products Table #21

mc12345678 opened this issue Apr 26, 2016 · 0 comments

Comments

@mc12345678
Copy link
Owner

The verification of the custom fields is offered in admin/easypopulate_4.php where if the field is in the products table then it is added to the fields array. This process could be used to allow custom fields to come from other tables as well, if the table was identified in the custom fields entry.

To do this, would recommend a separator be used (ie colon ':') between the table and the field, then if a field is entered without a table it would default to the products table, or products could be used/identified as applicable.

While this could be incorporated, the downstream affect/change needed still needs to be evaluated in making it happen. For example two tables may not relate to one another on any primary key, but may relate to each other through some intermediate table. Without reference to the intermediate table/primary key, subsequent sql could provide conflicting information/sql error. Additionally, if there is an intermediate table, it may have another factor associated with it to provide a unique row such as a language identifier, etc... So some "growth" to be understood before just willy nilly adding the ability have other tables involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant