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.
In your Shopify Admin Dashboard, install the MobiLoud Shopify App, found here: https://apps.shopify.com/mobile-push-notifications
To mark products as app-exclusive, you need to make sure the required metafield is created.
Once this is set up, you will be able to assign specific products as app-only.
To ensure app-exclusive products are hidden from the online store but visible in the app, you need to modify your Shopify theme.
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!
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 %}
>
Once you've completed the setup, verify that the feature works as expected:
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.
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.