Why is there only 10 extr fields is it easy to add more just by going to php my admin or is there other code that needs to be changed to work with more fields then just 10?
You can add more custom fields. You can create the fields in phpMyAdmin and then change the following in application/config/constants.php NUMBER_OF_PEOPLE_CUSTOM_FIELDS
I tried adding 8 custom fields. I changed the constant and added the fields to the customers table. Everything was fine when I edited customers, but when I tried ringing a sale I got a "sales transaction failed" error message. Is there something else I have to change to get the extra custom fields?
I tried that but still got a 500 error. I put it into debugging mode and discovered that I needed to add this to PHPPOSCart.php
public $custom_field_11_value; public $custom_field_12_value; public $custom_field_13_value; public $custom_field_14_value; public $custom_field_15_value; public $custom_field_16_value; public $custom_field_17_value; public $custom_field_18_value;
Comments
8 comments
At this time there is not a way
Why is there only 10 extr fields is it easy to add more just by going to php my admin or is there other code that needs to be changed to work with more fields then just 10?
You can add more custom fields. You can create the fields in phpMyAdmin and then change the following in application/config/constants.php NUMBER_OF_PEOPLE_CUSTOM_FIELDS
I tried adding 8 custom fields. I changed the constant and added the fields to the customers table. Everything was fine when I edited customers, but when I tried ringing a sale I got a "sales transaction failed" error message. Is there something else I have to change to get the extra custom fields?
Doing this requires adding custom fields to ALL tables that have custom fields
phppos_customers
phppos_employees
phppos_item_kits
phppos_items
phppos_receivings
phppos_sales
phppos_sales_work_orders
phppos_suppliers
I tried that but still got a 500 error. I put it into debugging mode and discovered that I needed to add this to PHPPOSCart.php
public $custom_field_11_value;
public $custom_field_12_value;
public $custom_field_13_value;
public $custom_field_14_value;
public $custom_field_15_value;
public $custom_field_16_value;
public $custom_field_17_value;
public $custom_field_18_value;
It seems to work fine now. Thanks
That’s right, but sure where else but did that solve 500?
It fixed the 500 and seems ok. I'll let you know if any other errors pop up.
Please sign in to leave a comment.