Support » Plugin: My Wish List » How to update two links of the same post?

  • Hi! I have two “add My List” links on page for each posts: on posts list and on popup quick view. It’s work correctly only for link which was clicked: datebase updates, text in link is changes. But second link don’t change. How can I fixed it?

Viewing 1 replies (of 1 total)
  • Never mind, I solved it.

    Just create dublicate of buttons templates with another id (btn-add-2 & btn-remove-2 in gd-mylist\template), hook it in gd-mylist-code.php in $templates_html = array(… Than dublicate action and function creating add/remove buttons. Use different actions to call myList’s button in each case.

    In js/gd-script.js dublicate all srtings which contain “$(“#mylist-” and change for “$(“#mylist-2-“.
    That’s all. Thans for plugin, it’s realy great!

Viewing 1 replies (of 1 total)
  • The topic ‘How to update two links of the same post?’ is closed to new replies.