You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was developing a site where suddenly the heart icon stopped working without any notice.
i checked the source code for the html page and the block was right there but hidden, so i changed the display to block , now the heart icon shows but nothing happens on click.
i said it might be a problem with importing the scripts , so i imported the script manually and it started showing but with errors of some variables are undefined and izitoast is missing.
i've added the izitoast to the header and i searched for each variable default values and added the to the header like this
<script>
var alg_wc_wl_toggle_btn = {"btn_class":".alg-wc-wl-btn","btn_data_action":"alg-wc-wl-toggle","btn_icon_class":"fa fa-heart"};
var alg_wc_wl = {"ajaxurl":"\/wp-admin\/admin-ajax.php","fa_icons":{"copy":"fas fa-copy"}};
var alg_wc_wl_toggle_btn = {"btn_class":".alg-wc-wl-btn","btn_data_action":"alg-wc-wl-toggle","btn_icon_class":"fa fa-heart"};
var alg_wc_wl_ajax = {"action_toggle_item":"alg_wc_wl_toggle_item"};
var alg_wc_wl_get_wl_ajax_action = "alg_wc_wl_get_wish_list";
var alg_wc_wl_notification = {"desktop":"1","mobile":"1","ok_button":"1","copied_message":"Wish List URL copied to clipboard"};
</script>
so i am not sure what is the problem exactly , is it a misconfig in functions file , woocommerce or something else ,but anyway this seems to fix it and everything is working fine.
The text was updated successfully, but these errors were encountered:
I was developing a site where suddenly the heart icon stopped working without any notice.
i checked the source code for the html page and the block was right there but hidden, so i changed the display to block , now the heart icon shows but nothing happens on click.
i said it might be a problem with importing the scripts , so i imported the script manually and it started showing but with errors of some variables are undefined and izitoast is missing.
i've added the izitoast to the header and i searched for each variable default values and added the to the header like this
so i am not sure what is the problem exactly , is it a misconfig in functions file , woocommerce or something else ,but anyway this seems to fix it and everything is working fine.
The text was updated successfully, but these errors were encountered: