Post by Daniel » Sat Dec 15, 2012 1:26 am

Starting to work on adding a new feature called Custom field system

these are the db tables i have come up with so far:

custom_field
- custom_field_id
- location (customer / address)
- type
- value
- required
- position
- date_added

custom_field_description
- custom_field_id
- language_id
- name

custom_field_value
- custom_field_value_id
- custom_field_id
- sort_order

custom_field_value_description
- custom_field_value_id
- language_id
- custom_field_id
- name

custom_field_to_customer_group
- custom_field_id
- customer_group_id

customer_field
- customer_id
- custom_field_id
- custom_field_value_id
- name
- value
- sort_order

address_field
- address_id
- custom_field_id
- custom_field_value_id
- name
- value
- sort_order

order_field
- order_id
- custom_field_id
- custom_field_value_id
- name
- value
- sort_order

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by straightlight » Sun Dec 16, 2012 8:07 am

custom_field_description
- custom_field_id
- language_id
- name

custom_field_value
- custom_field_value_id
- custom_field_id
- sort_order

custom_field_value_description
- custom_field_value_id
- language_id
- custom_field_id
- name

custom_field_to_customer_group
- custom_field_id
- customer_group_id
Only one table seem to be missing: custom_field (the main table to handle custom fields).

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Daniel » Mon Dec 17, 2012 9:31 pm

just added it.

i need to finish the upgrade system before continuing with this.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by straightlight » Fri Dec 21, 2012 1:02 am

Daniel wrote:just added it.

i need to finish the upgrade system before continuing with this.
While indicating:

Code: Select all

- location (customer / address)
from the custom_field table, perhaps a more reliable approach could be used with:

Code: Select all

- address_id (customer address / affiliate address / admin address (if needed)).

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by madimar » Sun Apr 28, 2013 6:36 am

What about this custom field system? There are some traces of it in 1.5.5.1... but as far as I understand it is not yet a fully working feature, am I right?

M

Daniel wrote:just added it.

i need to finish the upgrade system before continuing with this.

-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------


User avatar
Active Member

Posts

Joined
Thu Sep 24, 2009 6:27 pm

Who is online

Users browsing this forum: No registered users and 4 guests