I have some featured products on the home page. When a customer adds one of these products to their comparison list it changes the comparison list button color.
On page load i am trying to write a function to get the products that are in the comparison list so i can color the buttons accordingly based on whether its in their comparison list or not.
I have some featured products on the home page. When a customer adds one of these products to their comparison list it changes the comparison list button color.
On page load i am trying to write a function to get the products that are in the comparison list so i can color the buttons accordingly based on whether its in their comparison list or not.
Has anyone had any experience with this?
What are you looking forward to in response? Pls share what you have tried already?
I have some featured products on the home page. When a customer adds one of these products to their comparison list it changes the comparison list button color.
On page load i am trying to write a function to get the products that are in the comparison list so i can color the buttons accordingly based on whether its in their comparison list or not.
With this solution, when a product added to the compare list, the system will adds "in-compare-list" CSS class to the root tag of the product details / product box view. So that, based on this class, you can style every child elements.