aimeos / ai-admin-jqadm

Aimeos e-commerce Vue.js+Bootstrap based admin interface
https://aimeos.org
GNU Lesser General Public License v3.0
182 stars 43 forks source link

Update additional field for users #263

Closed unnimaya-seeroo closed 1 year ago

unnimaya-seeroo commented 1 year ago

Added some extra fields for users in database, we could able to show the values in Admin->users->customer->detail page. But when we edit the details the newly added fields not get updated. We are working on the file Admin/jqadm/customer/standard.php Please explain the steps to update newly created fields from Admin ->user->customer module

We have change the sql query in Mshop/customer.php file but getting "Invalid parameter number: number of bound variables does not match number of tokens" Please explain @aimeos

aimeos commented 1 year ago

If you want to extend the customer manager to store additional data, create a decorator like described here: https://aimeos.org/docs/latest/models/extend-managers/

unnimaya-seeroo commented 1 year ago

I created a decorator as per the document , and included in mshop.php file but it seems like it checking on mshop_customer table, and when i add additional fields in mshop_customer table it retruns the error Item with ID "2" in "customer.id" not found. please advice !! @aimeos