Customer Meta - Installation manual
Table of contents
Install app
- Install app.
Copy assets
- Go to app. (Shopify admin -> Apps -> Customer Meta app)
- Go to to Install section.
- Press "Install theme assets" button
- Done. If you don't see wish list and compare icons, check theme files manually. You can ask theme developer for help.
Manual installation (optional)
edit theme.liquid file
a) Insert inside "head" tag following code
{% include 'cm-head' %}
Custom Shopify theme
- Locate "head" tag at your theme.
- Paste above code snippet before closing "head" tag. Or before "{{ content_for_header }}" code.
- Ask your theme developer for help if you are not familiar with code editing.
Free Shopify theme from https://themes.shopify.com/
CustomerMeta app tested with all free themes. And should automatically update all theme files by "Install theme assets" button.
This instructions, just example how edit file manually
- Open code editor. Admin -> Online store -> Themes -> Actions -> Edit code
- Open layout/theme.liquid file.
- Search for {{ content_for_header }} text. You can read code or use ctrl+F (command+F) for quick search.
- Paste code {% include 'cm-head' %} before line '{{ content_for_header }}'
- Save file.
b) Insert just before closing "body" tag following code
{% include 'cm-popups' %}
Custom Shopify theme
- Locate closing "body" tag at your theme.
- Paste above code snippet before closing "body" tag.
- Ask your theme developer for help if you are not familiar with code editing.
Free Shopify theme from https://themes.shopify.com/
CustomerMeta app tested with all free themes. And should automatically update all theme files by "Install theme assets" button.
This instructions, just example how edit file manually
- Open code editor. Admin -> Online store -> Themes -> Actions -> Edit code
- Open layout/theme.liquid file.
- Search for </body> text. You can read code or use ctrl+F (command+F) for quick search.
- Paste code {% include 'cm-popups' %} before line '</body>'
- Save file.
edit product-template.liquid file
Insert after "{% endform %}" tag following code. (after "add to cart" button)
{% include 'cm-product-buttons' %}
Custom Shopify theme
- Locate closing "{% endform %}" tag at your theme.
- Paste above code snippet after "{% endform %}" tag.
- Ask your theme developer for help if you are not familiar with code editing.
Free Shopify theme from https://themes.shopify.com/
CustomerMeta app tested with all free themes. And should automatically update all theme files by "Install theme assets" button.
This instructions, just example how edit file manually
- Open code editor. Admin -> Online store -> Themes -> Actions -> Edit code
- Open sections/product-template.liquid file.
- Search for {% endform %} text. You can read code or use ctrl+F (command+F) for quick search.
- Paste code {% include 'cm-product-buttons' %} before line '{% endform %}'
- Save file.
Uninstall app
-
Remove theme assets
- Uninstall app
Add wishlist and compare icon to collection page (optional)
- Find snippet file for product output at collection page.
- Add following code at the bottom.
<div data-js-product data-product-handle="{{ product.handle }}"
data-product-variant-id="{{ product.selected_or_first_available_variant.id }}"
class="cm-icons">
<a class="cm-icon btn--status js-store-lists-add-wishlist"
{% unless product.selected_or_first_available_variant.available %}disabled="disabled"{% endunless %} >
<span>{% include 'icon-cmheart' %}</span>
<span data-button-content="added">{% include 'icon-cmheart-solid' %}</span>
</a>
<br>
<a class="cm-icon btn--status js-store-lists-add-compare"
{% unless product.selected_or_first_available_variant.available %}disabled="disabled"{% endunless %} >
<span>{% include 'icon-cmcompare' %}</span>
<span data-button-content="added">Remove</span>
</a>
</div>
Assets
What happened when I press "Install theme assets" or "Remove theme assets" buttons?
CustomerMeta app adds or removes needed theme assets and edits two theme assets. Below is full list of files.
Edited files
- layout/theme.liquid
- sections/product-template.liquid
Check Manual installation (optional) section for more info about edits applied to these files
Added / removed files
- assets/cm-app-styles.css
- assets/cm-app.min.js
- snippets/cm-head.liquid
- snippets/cm-popups.liquid
- snippets/cm-product-buttons.liquid
- snippets/cm-product-grid-item.liquid
- snippets/compare.liquid
- snippets/compare-get-product.liquid
- snippets/icon-cmcompare.liquid
- snippets/icon-cmheart.liquid
- snippets/product-get-collections.liquid
- snippets/wishlist.liquid
- templates/cart.compare.liquid
- templates/cart.wishlist.liquid
- templates/collection.compare.liquid
- templates/collection.products_by_handle.liquid
- templates/collection.wishlist.liquid
Support
If you have any questions, or want to request app installation fill free to email me at mpthemes@gmail.com