How to Add a Favorite Button to the Shopify Collection Page

Table of Contents
ToggleIntroduction
This article explains the process using the free Dawn theme.
Paid themes or customized themes may have different file structures. Please contact StoreCRM customer support for implementation assistance.
Feel free to contact us via the inquiry form at Contact us.
Add Favorite Button to Collection Page
Goal of This Section
Let’s start by checking the final look of the favorite button that we will implement.
Open the code editor for the implementation section
In the following steps you’ll edit your theme. If you’re unsure, we recommend selecting 'Duplicate' to make a copy and edit the duplicated version.
③At line 207,{% render 'price', product: card_product, price_class: '', show_compare_at_price: true %}
paste the following code below.You can choose whether to include text on the favorite button depending on your store’s design.
Be sure to save your changes just in case.
[Version with Text]
<div class="storecrm-favorite" data-product-id="{{ card_product.id }}" data-variant-id="{{ card_product.first_avaiable_variant.id }}" data-variant-selector data-variants="{{ card_product.variants | json | escape }}"></div>
[Version without Text]
<div class="storecrm-favorite" data-product-id="{{ card_product.id }}" data-variant-id="{{ card_product.first_avaiable_variant.id }}" data-no-label data-variant-selector data-variants="{{ card_product.variants | json | escape }}"></div>
④Open [asset] → [component-card.css].
⑤ [.card__heading a::after]でsearch and modify line 350 frombottom: 0; → bottom: 50;
and change it as shown below.
Be sure to save your changes just in case.
⑥Check the collection page to confirm the favorite button is displayed correctly.
Summary
Using StoreCRM, you can implement strategies like the favorite feature introduced here without the need for separate apps or MA integrations.
We are also preparing scenarios that utilize the favorite registration information introduced here, so stay tuned.
StoreCRM also offers free setup support and sales consulting for customers who adopt the app.
Feel free to contact us via the inquiry form at Contact us。