Product Favourites
Product favourites let logged-in shoppers save products with a heart icon and review them later. This feature is off by default and is turned on with a single setting.
Enabling favourites
Section titled “Enabling favourites”- Open Reign Options > WCFM Marketplace > General.
- Turn on Mark Products As Favourite.
- Save.
This sets product_favourite in the shared theme option.
Where the heart icon appears
Section titled “Where the heart icon appears”When the setting is on and a visitor is logged in, a heart icon is added in two places:
- On the single product page (via
woocommerce_single_product_summary). - On each product in the shop and archive loops (via
woocommerce_before_shop_loop_item_title).
The icon is only rendered for logged-in users. Visitors who are not logged in do not see it, and there is no non-logged-in favourite action.
How favouriting works
Section titled “How favouriting works”Selecting the heart sends an AJAX request that toggles the product in and out of the shopper’s favourites:
- A hollow heart (
heart.svg) means the product is not yet saved. Selecting it saves the product and swaps the icon to a filled heart (heart-fill.svg). - A filled heart means the product is already saved. Selecting it removes the product and swaps back to the hollow heart.
The request is validated with a nonce, and the product ID is checked to be a real product post before anything is stored. Repeated clicks cannot create duplicate entries, and un-favouriting removes every stored copy of the product, so the saved list stays compact.
The Favourite profile tab
Section titled “The Favourite profile tab”When BuddyPress is active and favourites are on, each member gets a Favourite tab on their own profile that lists every product they have saved, three columns wide, paginated. The tab is only shown to the member viewing their own profile. If the member has saved nothing, the tab shows a “No products were found matching your selection” notice.
See BuddyPress profile tabs for more on the profile tabs.
What gets stored
Section titled “What gets stored”- Each shopper’s saved product IDs are stored in the
rwcfma_favourite_productsuser meta. - Each product also records which users favourited it, in the
rwcfma_user_favourite_productpost meta.
See Data storage for the full list of keys.

