I need some serious help customising this woocommerce xero plugin for my site.
For accounts reasons, in xero, each contact is named after the organisation that orders from us and it’s the actual invoices that have the individual customers names on.
By default, when the woocommerce xero connection plugin creates the contact, it maps the first and last name to the “name” field as well as mapping first name to the first name and last name to the last name. (i hope that makes sense!)
Bellow are the files that do this:
class-wc-xr-contact.php - https://pastebin.com/QBfpSp5f class-wc-xr-invoice.php - https://pastebin.com/hUG9dxJ2 class-wc-xr-contact-manager.php - https://pastebin.com/A21gj0m5 class-wc-xr-invoice-manager.php - https://pastebin.com/TdS6cWWy
What I need to do is have the name field populated with a custom field value that is on each product.
I have very little experience with PHP classes, so I really don’t know how best to approach this! If anyone is willing to help me work through this it would be appreciated as this is quite a steep learning curve!
Thanks for reading 🙂
Read more here: Woocommerce Xero Intergration – change contact name