All Collections
General
What is the ZapietId and how do I hide it?
What is the ZapietId and how do I hide it?

Meaning of the ZapietId and how to hide if from showing up in the cart page

Marija avatar
Written by Marija
Updated over a week ago

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.

The ZapietId can appear on 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=245748 means the location with the ID 245748.

  3. D=2023-10-04 means the date the customer selected is October 10th, 2023.

  4. T 10:30:00Z means they’ve selected 10:30 AM.


Test if ZapietId appears on 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 on 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.


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

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

Please reach out to us at [email protected]—we’ll be happy to hide the ZapietId for you. Only proceed if you are comfortable editing code yourself.

Option 1a

  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 1b

  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 [email protected], and we'd be happy to help!


Remove 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 this answer your question?