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
In your Shopify admin, go to Sales Channels > Online Store > Themes
Click the three dots (or “More options”) next to your current theme
Select Edit code.
2. Edit the theme.liquid
File
In the left sidebar, open the
theme.liquid
fileUse 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!