Skip to main content

Fix: Mixed Cart Warning Showing on All Pages Instead of Just the Cart

Updated over a month ago

Show the Mixed Cart Warning Only on the Cart Page

By default, the Mixed Cart Warning may show up on other pages like the homepage, product pages, or collections. To make sure it only appears on the cart page, follow these steps:

1. Open Your Theme Code

  1. In your Shopify admin, go to Sales Channels > Online Store > Themes

  2. Click the three dots (or “More options”) next to your current theme

  3. Select Edit code.

2. Edit the theme.liquid File

  1. In the left sidebar, open the theme.liquid file

  2. Use Ctrl + F (Windows) or Cmd + F (Mac) to find </head>

  • Just before the </head> tag, paste the following code:

{% if template contains 'index' or template contains 'collection' or template == "product" %}
<style>
#pn-mixed-cart-warning{
display: none !important;
}
</style>
{% endif %}

3. Save Your Changes

Click Save in the top-right corner to apply the update.

If you have any questions or need further help, feel free to reach out to our support team!

Did this answer your question?