This article lists steps to configure Smart Wishlist App on Shopify Stores using Sunrise theme. While we have taken utmost care in documenting the steps, these might vary slightly across stores. If you face any issues, please do not hesitate to contact us.
Product Page
Location: templates/product.liquid or sections/product-template.liquid
<div id="smartwishlist" data-product="{{ product.id }}" data-variant="{{ product.variants.first.id }}"></div>
Collection Page
Location: snippets/product-price.liquid
<span class="smartwishlist" data-product="{{ product.id }}" data-variant="{{ product.variants.first.id }}"></span>
WISHLIST PAGE LINK
The best way to place the link in the Navigation Menu using Shopify Admin.
In case you want to place it somewhere else, it has to be hardcoded in the theme. You can follow the below instructions to hardcode the link to Wishlist Page
DESKTOP LINK
The target is to place it just before the expanded Search input field in the header.
Location: sections/header.liquid
<a href="/a/wishlist" id="smartwishlist_desktop_link" title="My Wishlist">Wishlist</a>
MOBILE LINK
You can place it either at the top (left of cart) or in the Menu. To place it at the top, use the following instructions.
Location: sections/header.liquid
<a href="/a/wishlist" id="smartwishlist_mobile_link" title="My Wishlist" class="menu-user"><i class="fa fa-heart"></i></a>
Extra CSS
Additionally, you should add the following CSS code to your theme’s CSS file e.g. assets/styles.scss.liquid. It can also be added to Extra CSS tool in App’s Merchant Console.
a#smartwishlist_mobile_link .topbadge {
display: none !important;
}
span.topbadge {
padding: 1px 5px;
}