Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heart Icon is displayed as none , when changed to block nothing happens on click #21

Open
Cybrarist opened this issue Aug 31, 2020 · 2 comments

Comments

@Cybrarist
Copy link

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.

@pablo-sg-pacheco
Copy link
Contributor

Hi @YnwaFawzy ,
I didn't receive any complaints so far about this.

But thanks!
I'll look into it

@Cybrarist
Copy link
Author

no problem

may I add that I tried to reactivate the plugins, also reinstall everything but nothing changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants