You can change the StoreCRM favorite button's colors, text, icon, width, and other options from the admin. These settings are applied to the favorite button shown on product pages in your store.
Configure the favorite button
- In the StoreCRM admin, open Favorites → Favorite settings.
- Select the [Favorite button] tab.
- Configure the button text, colors, icon, background, and other options.
- Check the preview on the right, then click [Save].
Set the button width as a percentage
Turn on [Use a button background] to select [Percentage of container (%)] under [Button width unit]. Enter a width from 1% to 100%. Without a background, the width adjusts automatically to the content.

Show favorite counts on product pages
Open Favorites → Favorite settings → Favorite button and enable Show favorite count. It is off by default.
- The {count} token is replaced with the count. For example: Favorites: {count}. Set the wording for each storefront language.
- Choose one of eight positions: above, below, left, or right, either outside or inside the button. Set spacing from 0 to 100 px (default: 8 px), and optionally hide a zero count.
- Check the wording, position, and spacing in the preview, then click Save. Reload to confirm the settings persist and check the product page on your store.

Product mode shows active favorites for the whole product; variant mode shows the selected variant. Aggregation delay and caching of up to 60 seconds mean the total is not real-time. Successful standard favorite actions adjust the count on the acting customer’s screen.
Place a count anywhere using code
Duplicate your theme before adding this element to a product template. Output product and variant IDs using Shopify Liquid. Ensure the shared JavaScript is loaded by enabling the StoreCRM shared features app embed where needed.
<span data-storecrm-favorite-count
data-product-id="{{ product.id }}"
data-variant-id="{{ product.selected_or_first_available_variant.id }}"
data-count-text="Favorites: {count}"
data-hide-when-zero="true" hidden>
<span data-storecrm-favorite-count-value></span>
</span>
A separately placed count renders even when the button count setting is off. Adjust its position and spacing with theme CSS. For a custom variant selector, update data-variant-id and call window.storecrm.render(true). The count is hidden if retrieval fails.
Check which features need App Embed
App Embed works even if it is off because the block itself reads common JavaScript.
App Embed [Common Features of StoreCRM] is necessary for a list of favoritess, pages with no product block, a traditional customer account, and all page common widgets. Check the state of the public theme on the StoreCRM settings screen, and select "Reconfirm" only if necessary.


Configure the Favorites page
Change the Favorites page display from the [List page] tab on the same settings screen. You can use Simple mode without code or Advanced mode to edit Liquid and CSS. For detailed editing instructions, seeCustomizing the Favorites page with Liquidfor more information.
Related pages