I need to change the color of the wish list & product compare buttons if the item is already in the wish list or the product compare section. I could change the color using css on click, but if user logs out & comes back in, I need to still change the buttons of the items in each of the lists
Are you planning to change to core code or make a plugin ?
For Wishlist You would need to use a routine to check if the Current Product is in the Wishlist and then as you say change the css based on the result See Views\Product\_AddToWishlist.cshtml
For CompareProducts See Views\Product\_CompareProductsButton.cshtml and do similar to above
Are you using a Theme because if so then there maybe alternate files loaded in the theme to change
How do I reference this (Model.UpdatedShoppingCartItemId > 0 && Model.UpdateShoppingCartItemType.HasValue && Model.UpdateShoppingCartItemType.Value == ShoppingCartType.Wishlist) { }
within _productBox when I can only have one model?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hâlen sorularınız mı var veya yardıma mı ihtiyacınız var?