My code: appdesignfrontendZeromy_themeMagento_Wishlisttemplatescatalogproductviewaddtowishlist.phtml <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ // @codingStandardsIgnoreFile /** @var MagentoWishlistBlockCatalogProductViewAddToWishlist $block */ ?> <?php if ($block->isWishListAllowed()) : ?> <?php $_product = $block->getProduct(); ?> <?php $isAdded = $this->helper(‘MagentoWishlistHelperData’)->getWishlistItemCollection()->addFieldToFilter(‘product_id’, $_product->getId())->count(); ?> <?php if($isAdded): ?> <a href=”javascript:void(0)” class=”action towishlist already-added” data-action=”add-to-wishlist”><span><?= $block->escapeHtml(__(‘Added to …
Continue reading “M2 – How to change Wishlist icon color after product added to Wishlist”