For the complete documentation index, see llms.txt. This page is also available as Markdown.

Step 3: Update your cart

Once you have tagged your prices, while still in preview mode, you should add a tested product to the cart.

In certain cases, you may notice an issue in the cart when you do this, for example:

  • There may be a few visible line item properties in the cart

  • The compare-at price shows as the control group's price instead of the correct compare-at amount

Follow the steps below to troubleshoot:

Remove Hidden Line Item Properties

Most Shopify stores use a convention that states that any line item property with a leading underscore should not be displayed in the cart. Intelligems uses the line item property _igp, so as long as this convention is set up for your store, the Intelligems line item property will be automatically hidden.

If this convention is not already set up for your store, You may see something like this in the cart when you test it in preview mode:

Here is an example of how you can fix this by implementing the below in a liquid cart (e.g. cart-line-items.liquid or a similar file). The key lines are as follows:

This code should be implemented in a loop over each item property. In context, the code block may look something like the below:

You can learn more about this here under 'Hide line item properties (optional)'.

Displaying the Correct Strikethrough Price in the Cart

Typically, you should not tag any prices within your cart. However, if you do display a strikethrough price in the cart, you'll want to tag it to ensure the correct compare-at price shows up for each group.

Last updated

Was this helpful?