Signup

What is the ZapietId and how do I hide it?

If you are using our Rates functionality, the line item property called ZapietId will appear. The ZapietId is used to determine which rates we should display to the customer within the Shopify checkout process. This makes it a crucial part of our app's rates functionality.

ZapietId can appear in the cart page/ajax cart and will appear on one of the products in the Shopify order view.


What is the meaning of the ZapietId?

Deciphering the ZapietId shows what the customer selected in the widget.

  1. M=P means checkout method is pickup. P stands for pickup, D for delivery, and S for shipping.
  2. L=145045 means location with the id 145045.
  3. D=2020-12-24 means the date the customer selected is December 24th, 2020.
  4. T3:00 PM:00Z means they’ve selected 3 PM

Testing if ZapietId appears in the cart page

ZapietId will be added as a line item property on one of the products in the cart, after the details in our widget are selected.

To test if it's appearing in the cart page

  1. Add a product to the cart.
  2. Go to the cart page.
  3. Select the details in our widget.
  4. Go to checkout.
  5. Go back to the cart.
  6. If you are using a drawer cart, check if it's  showing there, too.

If you see the ZapietId, it needs to be hidden. If you don't see it, no further action is needed.


Hiding the ZapietId from the cart page

We automatically try to hide the ZapietId from appearing on your shopping cart page, but depending on the theme you are using, it may need to be done manually. 

Considerations

  • There are different variations of the code—find the one that appears on your theme. 
  • The code may also appear twice in the cart file—search for all the instances of the code. 

Note

Please reach out to us at support@zapiet.com—we’ll be happy to hide the ZapietId for you. Only proceed if you are comfortable editing code yourself.

Option 1.a

  1. Within your cart file (cart.liquid, cart-template.liquid, main-cart.liquid, etc.), find the following code:
    {% unless p.last == blank %}
  2. Replace the code above with the following code:
    {% unless p.last == blank or p.first == '_ZapietId' %}

Option 1.b

  1. Within your cart file (cart.liquid, cart-template.liquid, main-cart.liquid, etc.), find the following code:
    {%- unless p.last == blank -%}
  2. Replace the code above with the following code:
    {%- unless p.last == blank or p.first == '_ZapietId' -%}

Option 2

  1. Within your cart file (cart.liquid, cart-template.liquid, main-cart.liquid, etc.), find the following code:
    {% if p.last != blank %}
  2. Replace the code above with the following code:
    {% if p.last != blank and p.first != "_ZapietId" %}

Option 3

  1. Within your cart file (cart.liquid, cart-template.liquid, main-cart.liquid, etc.), find the following code:
    {% unless property.last == blank %}
  2. Replace the code above with the following code:
    {% unless property.last == blank or property.first == '_ZapietId' %}

If the code you found already has some additions to it, only append the code below:

or p.first == "_ZapietId"
and p.first != "_ZapietId"
or property.first == '_ZapietId'

Example: 

If none of the options match your use case, contact us at support@zapiet.com, and we'd be happy to help!


Removing the ZapietId from the order 

It's not possible for us to automatically remove the ZapietId from the order due to restrictions with Shopify's API. 

If needed, you can remove it by clicking the Delete button which appears when you hover over the ZapietId.



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.