Exclude by URL

How does the Exclude By URL work in the Buy Me App?
Exclude By URL In Buy Me


List of Excluded Widget on URLs: If you don’t want to show any widgets like Sticky Buy Me Widget, Sticky Buy Me Cart, Sticky Cart Preview, and/or Quick Buy Me Widget then add the page URL here and select the appropriate widget from the dropdown menu. Later you want to show widgets, then press the delete icon on the right side.

Below are some example conditions where you can use the Exclude By URL feature to hide the widget.

  • If you don’t want to show Sticky Buy Me Widget, Sticky Buy Me Cart, Sticky Cart Preview, and/or Quick Buy Me Widget on certain URLs.
  • If you are selling subscription-based products and you don’t want to show the Sticky Buy Me Widget on certain URLs.
  • If you have pre-order products where you don’t want to show the Sticky Buy Me Widget.
  • If you don’t want to show the Sticky Buy Me Cart on your store’s cart page.

Also, you can exclude the widget(s) for a page or collection(s) of pages by using the wild-card character(*). For example, if you want to exclude the widget for all the products of a specific collection then you can exclude the widget by example.com/collections/collection_name/*

Valid URL Examples:

  • example.com/*
  • example.com/collections/*
  • example.com/products/*
  • example.com/blogs/*
  • example.com/pages/*
  • example.com/accounts/*

Invalid URL Examples:

  • example.com*
  • example.com/collections*
  • example.com/*collections
  • example.com/*products*
  • example.com/*products/*
  • example.com/*/products*

NOTE: Shopify allows two ways to reach the product page:
1) example.com/products/product_name
2) example.com/collections/collection_name/product/product_name

Here, the app will exclude the widget for the URL that you have specified. For example, if you exclude through the first URL, the app will not display the widget on the product page when a customer visits the product page by the first URL.

If the customer visits the product page by the second URL, then the customer will be able to see the widget on the product page.

How to disable the Whole Buy Me App on certain products/pages?

How to disable the Buy Me App on a certain page?
Disable_Buy_Me_App


This is a completely optional setting. If you want to disable the Buy Me app on certain pages like some product(s) or for some URL Based Listing pages then you should need to include this meta to your page where you want to disable the Buy Me app.

So if you want to disable the Buy Me app on one or more product(s) page then simply add <meta name=’buy-me:active’ content=’false’ /> to Products -> Select Product -> Description -> Click <> icon and just paste <meta name=’buy-me:active’ content=’false’ /> to Description section and save the product.

If you want to disable the Buy Me app on other pages like a Home page or any static pages. Just include <meta name=’buy-me:active’ content=’false’ /> on that page only from Online Store -> Themes -> Current Theme -> Click on Actions button -> Edit Code -> Just find that page from the left side list and put <meta name=’buy-me:active’ content=’false’ /> code at last.

So in the same way, you can disable the Buy Me app on any page. You simply need to add this code to that page and we will disable the Buy Me app on those pages.