# Shopify - Netsuite, Change Shipping Method based on meta data

**URL:** <https://connective.celigo.com/t/shopify-netsuite-change-shipping-method-based-on-meta-data/5695>\
**Category:** Integration Apps\
**Tags:** export, json, handlebars, shopify, netsuite\
**Created:** [October 14, 2025, 6:50pm UTC](https://connective.celigo.com/t/shopify-netsuite-change-shipping-method-based-on-meta-data/5695 "2025-10-14T18:50:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cb\_bbi](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cb\_bbi](https://connective.celigo.com/u/cb_bbi)\
**Post date:** [October 14, 2025, 6:50pm UTC](https://connective.celigo.com/t/shopify-netsuite-change-shipping-method-based-on-meta-data/5695/1 "2025-10-14T18:50:02Z")

</div>

I tagged this with a handlebar expression tag because I think it might be the solution but I am new to customizations in Celigo.

I have a boolean meta field in Shopify for Orders that is set to ‘true’ when an address field parses to a “PO Box”. I’d like to use this data to then override the Shipping Method default mapping when exporting to Netsuite. The Shipping Method itself is not used in Shopify. The Shipping Method should still use the mappings setup in the integration when meta field is ‘false’ or NULL.

Any guidance on how to set this up would be appreciated.

---

<div class="post-metadata">

**Author:** ![Ovina\_Peiris](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/ovina_peiris/32/8197_2.png) [@Ovina\_Peiris](https://connective.celigo.com/u/Ovina_Peiris)\
**Post date:** [October 15, 2025, 1:48am UTC](https://connective.celigo.com/t/shopify-netsuite-change-shipping-method-based-on-meta-data/5695/2 "2025-10-15T01:48:03Z")

</div>

The best way to do this is the lookup.

- See below

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/b/bb11ef4d76f94c575a6deb7eba8540a8ed580c11.png)

I could be wrong but because Celigo does not have eq function in handlebar it will be difficult to do this via a handlebar.

Link to available handlebars:[https://docs.celigo.com/hc/en-us/articles/360039326071-Handlebars-helper-reference#handlebars-helper-reference-0](https://docs.celigo.com/hc/en-us/articles/360039326071-Handlebars-helper-reference#handlebars-helper-reference-0)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [October 15, 2025, 2:01am UTC](https://connective.celigo.com/t/shopify-netsuite-change-shipping-method-based-on-meta-data/5695/3 "2025-10-15T02:01:40Z")

</div>

The compare block handlebar lets you do equals or other operators:  
[https://docs.celigo.com/hc/en-us/articles/39750593050907--compare-helper#UUID-8bfeeb4e-2888-bd28-6af4-4e3c13de311a](https://docs.celigo.com/hc/en-us/articles/39750593050907--compare-helper#UUID-8bfeeb4e-2888-bd28-6af4-4e3c13de311a)

---

<div class="post-metadata">

**Author:** ![Ovina\_Peiris](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/ovina_peiris/32/8197_2.png) [@Ovina\_Peiris](https://connective.celigo.com/u/Ovina_Peiris)\
**Post date:** [October 15, 2025, 3:18am UTC](https://connective.celigo.com/t/shopify-netsuite-change-shipping-method-based-on-meta-data/5695/4 "2025-10-15T03:18:08Z")

</div>

One to the notebook! Can confirm the below is working fine.

```handlebars
{{#compare ShippingAddress.PostalCode "===" true}}000001{{else}}{{#compare ShippingAddress.PostalCode "===" "true"}}000001{{else}}000002{{/compare}}{{/compare}}

```

000001 and 000002 are internal IDs of shipping methods.

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [October 18, 2025, 12:29am UTC](https://connective.celigo.com/t/shopify-netsuite-change-shipping-method-based-on-meta-data/5695/5 "2025-10-18T00:29:03Z")

</div>

You can simplify it as well by using [else compare](https://docs.celigo.com/hc/en-us/articles/39750593050907--compare-helper#compare-with-else-2):

```handlebars
{{#compare ShippingAddress.PostalCode "===" true}}000001{{else compare ShippingAddress.PostalCode "===" "true"}}000001{{else}}000002{{/compare}}

```

---

<div class="post-metadata">

**Author:** ![cb\_bbi](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cb\_bbi](https://connective.celigo.com/u/cb_bbi)\
**Post date:** [October 20, 2025, 2:01pm UTC](https://connective.celigo.com/t/shopify-netsuite-change-shipping-method-based-on-meta-data/5695/6 "2025-10-20T14:01:43Z")

</div>

Thanks so much for providing a solution but now I am failing to implement. What I have is a meta field on the Shopify Order set by a Flow. But it seems the meta fields don’t appear on the .json of the order so I am unable to do the compare. I am not seeing a way to update meta field “custom.po\_box” to the Shipping\_Lines or Shipping\_Address groups on the json. Is the only way to do this through order.tags then? I was hoping to make it somewhere unobtrusive and immutable.
