When I put the code into my functions.php child-theme, it works,
but I don’t know what values I should modify, and I have another question :
It’s not the account that I want to switch, I need to use the same account.
I need to add multiple addresses (collecting points) because the products are sold from different sellers, or the “Origin address” as you call it.
I can add this option into the UPS website and I was wondering if UPS Xadapter Plugin could do it (notice that I bought the premium version).
UPS has specific condition that one UPS “Account number” will be associated to only one Origin/Ship-from address.
Hence, to switch between different Origin addresses, you would need to have multiple UPS accounts associated with respective Origin address.
Other wise, this snippet will not work.
Hope I was able to explain properly!
Let us know if you have any query.