This topic contains 3 replies, has 4 voices, and was last updated by Anindo Anindo 1 year, 1 month ago.

  • Author
    Posts
  • #50810
    williams.jackj
    williams.jackj
    Participant

    I have products sourced all over the U.S. Is there any way to specify the origin on a per product basis?

  • #50850
    Lorenzo
    Lorenzo
    Keymaster

    Hi William,

    To achieve this you’ll have to add a shipping class for those products which have different shipping origin, And use the following code snippet https://www.xadapter.com/switch-ups-account-based-shipping-class-ups-woocommerce-shipping/

    Add the code snippet in functions.php in Appearance->Editor

    You’ll have to edit the code snippet with the class slug name and the ship from address for that shipping class.

    Let me know if you face any issues.

    Regards,
    Lorenzo
    Team Xadapter

    • #78016
      Benjamin
      Benjamin
      Participant

      Hi Lorenzo, I have the same problem,

      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).

      Thank you a lot !!

  • #78033
    Anindo
    Anindo
    Keymaster

    Hi Benjamin,

    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.

You must be logged in to reply to this topic.