• Resolved cawalle

    (@calexwalle)


    Hi,

    I have two questions regarding the popup(s):

    1. Show only one kind of Popup
    Is it possible to only show the popup to guest users (, who are trying to add a product to wishlist),
    and NOT to logged in users (when they add or remove a product from the list)?

    Here is a description of what I mean in a little more detail:
    – The wishlist itself should only be visible to logged in users. (I checked/activated “Require Login” in the settings for that)
    – Guests should see a popup notice, when they click on the “heart +” telling them they need to login/register to add products to wishlist. (checked “Show successful notice in popup” for that)
    – However, logged in users should NOT see a pop up, when they add or remove a item from the wishlist. (I am using the “Heart +” Symbol, which changes to the “heart checkmark” symbol, and I find this effect as visual feedback to be sufficient.)
    => So basically, I want the pop-up function to only show as a “login/register popup”, when a guest tries to add an item to the wishlist.

    2. Change the Link(s) in the popups

    2.1 Login Link:
    The Login link now forwards to the account page. Is there a way of customizing that? (Or is there a hook, I could refer to in functions.php, in order to change that link?)

    2.2 View Wishlist Link:
    I know that I can select a “Wishlist Page” in the general settings of the plugin. But since I have integrated the Wishlist into a tab of the account page, I can only select “domain.com/account” and not “domain.com/account/wishlist”. Is there a way to solve that?

    I hope, that somebody can help me out with that or point me into the right direction. Thanks!

    Alex

    • This topic was modified 5 years, 7 months ago by cawalle.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author templateinvaders

    (@templateinvaders)

    Hi @calexwalle

    I’ll try to answer all your questions below:

    1. It’s not possible from the box but you can set options like “require login” as true, “redirect to login page” as false, “remove a product from wishlist on second click” as true, “show successful notice in popup” as true. After that add the next snippet to functions.php of the current theme to hide popups for logged users:
    https://gist.github.com/doozy/56dfa04ccf13524a27f26549a47266d0

    2.1 You can set a custom link for login button with a next snippet:
    https://gist.github.com/doozy/188d5c9455b02e4820fdf2684503343f

    the “redirect” argument is optional to return the user to the previous page in case you custom login form following WordPress standards.

    2.2 Wishlist requires to know on what page shortcode placed because of this page handle some additional request with managing products on it. So putting wishlist shortcode on My account endpoint is a bad idea currently. We are still can’t decide how to properly handle this feature because of site owners mostly uses wishlist for guests that can’t access my account endpoint.

    Kind regards.

    Plugin Author templateinvaders

    (@templateinvaders)

    Hi @calexwalle

    We are now closing this topic and mark it as resolved due to inactivity. If you have further questions please, fill free to re-open it at any time.

    Thread Starter cawalle

    (@calexwalle)

    Thanks for your very detailed answers.
    Helped me find a solution ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Only show “login required popup” (not “successful/error notice popup”)’ is closed to new replies.