Body: <p>I have an adjuster I am trying to get to work, but the order has to come from a specific site in order for the adjuster to be applied. The siteId is 2, but when I try to get the siteId from the Order Model I always get one.</p>
  
  <pre><code>public function adjust(Order $order): array
  {
      die($order-&gt;siteId); // returns 1 no matter what site I created the order on
      if($order-&gt;siteId == 2){
          // code here
      }
  }
  </code></pre>
  
  <p>Do I need to be passing the Site Id when creating the order? Or am I possibly messing something up somewhere?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-03-19T22:04:24.403Z
Comments.Text: Assuming this is for Commerce, what version?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-03-25T14:08:31.313Z
Comments.Text: Commerce 3.0.12
Comments.UserDisplayName: Darryl Hardin
Tags: <craft3><multi-site><modules><plugin-craftcommerce3>
Title: At what point is siteId set for orders?
ThreadText: # At what point is siteId set for orders?
  
  (Asked by: username_0 on 2020-03-19)
  
  I have an adjuster I am trying to get to work, but the order has to come from a specific site in order for the adjuster to be applied. The siteId is 2, but when I try to get the siteId from the Order Model I always get one.
  
  ```
  public function adjust(Order $order): array
  {
      die($order->siteId); // returns 1 no matter what site I created the order on
      if($order->siteId == 2){
          // code here
      }
  }
  
  ```
  
  Do I need to be passing the Site Id when creating the order? Or am I possibly messing something up somewhere?
  
  **Tags:** craft3, multi-site, modules, plugin-craftcommerce3
  
  > **Comments:**
  > **username_1**: Assuming this is for Commerce, what version?  
  > **username_0**: Commerce 3.0.12  
  
  ---
  
  ## 0 answers
  
  