Save to Favorites

This topic contains 17 replies, has 4 voices, and was last updated by  Guust 4 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #505523

    Scott Robins
    Free User
    Post count: 100

    Hi Folks

    The save to favorites does not seem to work when you are not logged in.

    https://dev.shoppingonline.ie/

    Click on my saved shops

    I am guessing it should direct you to the login page ?

    Thanks

    Scott

    #505527

    Guust
    Moderator
    Post count: 29970

    That is how it should work indeed. For example see the demo at https://wpgeo.directory/starter/

    If that does not work for you, it may be because of some customizations you made or plugin conflicts.

    I cannot see any listing I can try to favorite on your site.

    Thanks

    #505691

    Scott Robins
    Free User
    Post count: 100

    Hi

    We haze zero customizations and we are don’t believe its any plugins as we are only using standard plugins recommended by you.

    Please investigate as to why this is not working.

    Also, you sent me this link

    https://wpgeo.directory/starter/

    Where on the page can i

    1. Login to test it ?
    2. I don’t see any Favorites button to click on to see the list of favorites.

    Scott

    #505698

    Guust
    Moderator
    Post count: 29970

    Scroll down until you see a heart to favorite, see image.
    You don’t need to login to test it, just click on the heart and you will see you are asked to login then. That should confirm that is how it works.

    If we need to check out your site, post your WP admin details in a private reply.

    Thanks

    #505724

    Scott Robins
    Free User
    Post count: 100

    Hi,

    Sorry, I think you are mis understanding the issue.

    The problem is when you click on the link “My Saved Shops” in the header.

    Kind Regards

    Scott

    #505726

    Scott Robins
    Free User
    Post count: 100

    This is happening only when you are NOT logged in.

    #505794

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    the link you mention is pointing to the users profile, specifically /profile/favorites/

    It is not possible for a user to see his favorites on his profile if the user is not logged in.

    The link you are using is a custom link and will not redirect automatically.

    Instead consider using the “Profile” link from the UsersWP endpoints. That link will only show in your menu if the user is already logged in. You could simply change the title to “My Saved Shops”

    #505799

    Guust
    Moderator
    Post count: 29970

    The link should go to /profile/ but you have set it to go to /profile/favorites which leads to a bad redirect because that page never exists.
    The correct page would be https://dev.shoppingonline.ie/profile/USERNAME/favorites and like Alex says, you cannot link to that. But you can link to /profile/ using the UsersWP endpoints (and make it only available to logged in users).

    You may also need to set up
    UsersWP > Addons tab > GeoDirectory sub-tab > CPT favorites in profile > select SHOPS
    Then go to
    UsersWP > General tab > Profile sub-tab >
    Choose the tabs to display in Profile > Favorites

    Then your favorites will be listed at https://dev.shoppingonline.ie/profile/scott/favorites

    Thanks

    #509930

    Scott Robins
    Free User
    Post count: 100

    Thanks we resolved this, one other thing though, there are no thumbnail images showing, why is this ?

    See attachment.

    #510046

    Guust
    Moderator
    Post count: 29970

    What is the URL of that page please?
    And can you also post WP admin details in a private reply?
    Thanks

    #510074

    Scott Robins
    Free User
    Post count: 100
    #510075

    Scott Robins
    Free User
    Post count: 100
    This reply has been marked as private.
    #510081

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #510318

    Kiran
    Moderator
    Post count: 7069

    Hi Scott,

    The issue has been fixed.

    There was a bug in your child theme. In /wp-content/themes/listimia-child/shortcodes/tabs_header.php it has used following code to show that “Save Shop” button.

    <a class="geodir-addtofav-icon" href="javascript:void(0);" onclick="if (!window.__cfRLUnblockHandlers) return false; javascript:gd_fav_save(<?php echo $post->ID; ?>)" title="Add to Favorites"><i class="fas fa-heart"></i> <span class="geodir-fav-text">Save Shop</span></a>

    In this code you have used

    if (!window.__cfRLUnblockHandlers) return false;

    which preventing to execute button action.

    I have removed that line and now favorite/unfavorite is working fine.

    Let us know.

    Regards,
    Kiran

    #510325

    Scott Robins
    Free User
    Post count: 100

    Hi Kiran

    Unfortunately i am still not seeing the thumbnail images.

    See attachment.

    Scott

Viewing 15 posts - 1 through 15 (of 18 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket