Help Centre Forum

TOTECS Forums

Add favourite onclick doesn't update favourites_product_class and/or favourites_product_is_added hook until page reload
Author
Thread

Author anonymous
12th July 2016
In a product search record, the function onclick="$favourites_product_add_onclick$" doesn't update the hooks $favourites_product_class$ and/or $favourites_product_is_added$ from N to Y until page reload.

This means currently we can't use CSS to change the state of a fav button when the user clicks it, meaning the user may think it didn't work

null