Save to Favorites
This topic contains 17 replies, has 4 voices, and was last updated by Guust 5 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
August 29, 2019 at 1:19 pm #505523
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
August 29, 2019 at 1:27 pm #505527That 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
August 30, 2019 at 10:15 am #505691Hi
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
August 30, 2019 at 11:56 am #505698Scroll 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
August 30, 2019 at 2:38 pm #505724Hi,
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
August 30, 2019 at 2:39 pm #505726This is happening only when you are NOT logged in.
August 30, 2019 at 11:31 pm #505794Hello,
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”
August 31, 2019 at 12:25 am #505799The 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 > FavoritesThen your favorites will be listed at https://dev.shoppingonline.ie/profile/scott/favorites
Thanks
September 24, 2019 at 8:45 am #509930Thanks we resolved this, one other thing though, there are no thumbnail images showing, why is this ?
See attachment.
September 24, 2019 at 6:17 pm #510046What is the URL of that page please?
And can you also post WP admin details in a private reply?
ThanksSeptember 24, 2019 at 7:49 pm #510074September 24, 2019 at 7:49 pm #510075This reply has been marked as private.September 24, 2019 at 8:48 pm #510081This reply has been marked as private.September 26, 2019 at 7:42 am #510318Hi 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,
KiranSeptember 26, 2019 at 8:57 am #510325Hi Kiran
Unfortunately i am still not seeing the thumbnail images.
See attachment.
Scott
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket