How to Add a Wishlist Feature to Your Shopify Store

Table of Contents
ToggleIntroduction
This article explains in detail how to add a wishlist feature and wishlist list page to Shopify using StoreCRM, including setup steps and points to note.
Adding a wishlist feature to your e-commerce site helps improve the customer experience by allowing users to save products they like, reducing the need to search again and increasing exposure to related products or offers.
For store owners, understanding customer interests and needs allows for more accurate marketing strategies and the opportunity to drive additional sales through cross-sell or upsell based on wishlist data.
With StoreCRM, there’s no need for other wishlist apps — everything from wishlist functions to marketing based on wishlist datacan be achieved with just this app.
Implementing the wishlist feature benefits both customers and store owners, so we highly recommend it.
This article uses the free 'Dawn' theme as an example.
Paid or customized themes may have a different file structure. In such cases, please contact StoreCRM Customer Support for implementation assistance.
Implementing the Wishlist Feature (Button)
Goal of this Section
First, let’s take a look at the completed wishlist button feature that will be implemented.
*The red box highlights the wishlist button.
Open Theme Customization Screen for Implementation
Since you will be editing the theme in the following steps, we recommend duplicating the theme and editing the copy if you're unsure.
➀Open the list of themes by going to [Shopify Admin] > [Sales Channels] > [Online Store] > [Themes].
Click [Customize] on the theme you want to edit.
➁Click [Customize] to open the theme customization screen. Since we will edit the product detail page, click [Homepage] > [Product] at the top of the page.
③ Click [Product] to view the template list, then select the template where you want to add the wishlist button feature.
To apply the wishlist button to specific products only, create a new template by copying an existing one using [Create template].In this case, we’ll create and apply a template named [default product].
Add App Block for Wishlist Feature (Button)
- If you’re using Theme 2.0 or later, no coding is required to implement the Favorites feature (Favorites button).
- You can add it by inserting the app’s theme block, which will be explained in this section.
- If you’re using Theme 1.0, you’ll need to add code to the product detail page.
➀ First, decide where you want to place the restock notification button.
In this example, we will place it below the [Product Price]. Start by clicking [Product Information] > [Add Block] in the left-hand menu.
* If the Favorites button is not displayed, please check again to ensure that steps ① through ② were followed correctly.
If you’re using Theme 1.0
- If you’re using Theme 1.0, please add the following code to the product detail page.
- You can find the product detail page by going to Shopify > [Sales Channels] > [Online Store] > [Themes] > [Edit Code], then searching for “product”.
- The file name varies depending on your Shopify theme. Typically, it is something like
main-product.liquid
, but if there’s aproduct.json
file, the actual file name will be listed inside it (e.g.,filename.liquid
). - If you want to place the code above the [Add to Cart] button, try searching for terms like “buy-button” to locate the correct insertion point.
If you only want to add the Favorites icon
<div class="storecrm-button" data-type="wishlist-button" data-product-id="{{ product.id }}" data-variant-id="{{ product.variants[0].id }}" data-product-tags="{{ product.tags | json | escape }}" data-variants="{{ product.variants | json | escape }}"></div>
If you want to add both the Favorites icon and a label such as “Favorites”
<div class="storecrm-button" data-type="wishlist-button" data-product-id="{{ product.id }}" data-variant-id="{{ product.variants[0].id }}" data-product-tags="{{ product.tags | json | escape }}" data-no-label data-variants="{{ product.variants | json | escape }}"></div>
Implementing the Favorites Feature (Favorites List Page)
Goal of This Section
Set the URL of the Favorites List Page in the Header Menu
➀From the [Shopify Admin Panel], go to [Content] > [Navigation] to open the list of menus.
In this example, we will add a link to the header menu, so click [Main menu].
➁Click [Add menu item].
③A form will appear to enter the name and link.
You can choose any name you like, but in this example, we will enter [Favorites List Page].
For the URL, please enter the following. Once completed, click [Add].
/apps/obake/favorites
* If the Favorites button is not displayed, please double-check that steps ① through ④ were completed correctly.
Customizing the Favorites Button and Favorites List Page
Customization of the Favorites Button and Favorites List Page
StoreCRM provides a simple, unobtrusive design for the Favorites button and the Favorites List Page by default, making it suitable for any type of store.
However, for those who want to fine-tune the design to match their site more closely or make the Favorites button stand out more, customization options are available directly from the app page.
➁You can customize the text, color, and size of the Favorites button and Favorites List Page to your preference while checking the preview on the right side.
Once you finish customizing, be sure to click the Save button at the bottom of the page to save your changes.
After saving, check your store or theme preview to make sure the customizations have been applied as expected.