Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

App Exclusive Products

This guide will walk you through the process of setting up app-exclusive products in your Shopify store using our app. By following these steps, you can ensure that certain products are only visible and purchasable within the mobile app.

Step 1: Install the MobiLoud Shopify App

In your Shopify Admin Dashboard, install the MobiLoud Shopify App, found here: https://apps.shopify.com/mobile-push-notifications

Step 2: Create the Metafield

To mark products as app-exclusive, you need to make sure the required metafield is created.

  1. Open your Shopify admin panel.
  2. Navigate to Apps > MobiLoud
  3. Under Settings, if the metafield is not already created, click Create Metafield.

Once this is set up, you will be able to assign specific products as app-only.

Step 3: Assign Products as App-Exclusive

  1. Open the Products section in your Shopify admin.
  2. Select a product you want to make available only in the app.
  3. Scroll down until you find the "Metafield" area.
  4. In the "Mobile App Exclusive" metafield, set the value to "true"

Step 4: Edit Your Theme

To ensure app-exclusive products are hidden from the online store but visible in the app, you need to modify your Shopify theme.

Enable the App Embed

  1. Go to Online Store > Themes.
  2. Click Customize.
  3. Navigate to App Embeds.
  4. Enable the Mobile App Products embed.
  5. Save the settings.

Step 5: Modify the Theme Template File

This is a more technical step, and if you are not familiar with your theme code, we suggest asking a web developer to implement these changes for you.

MobiLoud is also available to help if needed, just let us know!

  1. In the Online Store > Themes section, click the 3 dots button, then Edit Code.
  2. Locate the appropriate template file where products are listed.
    • In the default Dawn theme, this is found under Sections > main-collection-product-grid.liquid.

Now, you will need to find the "loop" where the products are being displayed, it will usually look like this:

{%- for product in collection.products -%}

Inside that "loop", you will need to find a "wrapper" element, which is usually an HTML tag that wraps all the product related elements, such as title, image, pricing, etc. In the "Dawn" theme, that wrapper looks like this:

<li
  class="grid__item{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}"
  {% if settings.animations_reveal_on_scroll %}
  	data-cascade
  	style="--animation-order: {{ forloop.index }};"
  {% endif %}
>

You will need to adjust the code that is inside the "class" attribute of that wrapper, adding the following right before the closing double quotes:

{% if product.metafields.mobiloud.mobile_app_exclusive %} mobile-app-exclusive {% endif %}

The final code will look like this:

<li
	class="grid__item{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}{% if product.metafields.mobiloud.mobile_app_exclusive %} mobile-app-exclusive {% endif %}"
	{% if settings.animations_reveal_on_scroll %}
		data-cascade
		style="--animation-order: {{ forloop.index }};"
	{% endif %}
>

Step 5: Test the Implementation

Once you've completed the setup, verify that the feature works as expected:

  1. Open the store on a desktop browser.
    • The app-exclusive product should not appear.
  2. Open the store in the mobile app.
    • The app-exclusive product should be visible.

By following these steps, you ensure that certain products are only available in your mobile app, creating a unique shopping experience for your app users.

Important

This feature uses HTML and CSS to hide products on your website; however, these products may still be accessible if a user navigates directly to the product URL.