Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › ASP product search based on Geo location
This topic contains 20 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years, 3 months ago.
- AuthorPosts
- May 21, 2020 at 12:48 pm #27484
Hello Team,
Greetings to you. I am working on a multivendor pathology center website. I am using Geo My WP for identifying Geo current location of my users and registered vendors. Geo my WP also adds location to each post/product. I also have a category of City each product is tagged with.I am using ASP for search and filter. In a typical scenario I have my vendors spread across 2 cities (say New Delhi and Kolkata). So when a user from any city (say New Delhi) opens site and searches in ASP search bar she should see results only from that city post/ product. This should automatically pre-populate once current location of user is identified. One should not see post/product of another city. Please let me how can this be achieved. Your advice is appreciated.
Many Thanks
SandyMay 21, 2020 at 1:15 pm #27489Hi Sandy,
Unfortunately this is not possible with this plugin, at least not yet. Geo-location related filters are in development, should be implemented later this year.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 21, 2020 at 1:31 pm #27493Hi Ernest,
Thank you for your prompt response. I will be waiting eagerly for Geo filters with ASP to be released.
For the time being as a workaround, if I create city names as category and I want this category to be dynamically selected on the run based on value from a pop-up form on page load, is this possible?
Many thanks
SandyMay 21, 2020 at 2:03 pm #27494Hi,
Well, that could be possible, but definitely requires custom coding to select the category value within the box. Possibly a javascript event trigger in the pop-up to change the value in condition to the selection.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 24, 2020 at 9:25 am #27527Hi Ernest,
Thank You. Your insight is much appreciated.
I did some progress by creating a custom taxonomy and used ASP frontend search settings shortcode to show this custom taxonomy to users with elementor pop-up on page load. Please see the screenshot: https://ibb.co/7kDcdqt . Now once I select an option and close the popup it does not reflect on the ASP search bar. Also it fails to retain search settings on page reload.
Please visit my website to get a clear picture. I hope to get your attention soon. Have a good one.
Many thanks
Sandy-
This reply was modified 4 years, 3 months ago by
sanmita0957.
Attachments:
You must be logged in to view attached files.May 26, 2020 at 8:48 am #27545Hi,
The settings will not retain on page load, as it is not an expected behavior (and it would also create certain conflicts).
Best,
You might also want to check this option, if you don’t want to include any results, that does not have the given taxonomy assigned.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 26, 2020 at 1:48 pm #27557Hi Ernest,
Thank you, it did solve 50% of my issues. You are awesome. For understanding the other part of issue please see this screenshot :Launch URL : http://www.pathologybazaar.in
Step 1 : https://ibb.co/Y7gFnJ6
Step 2: https://ibb.co/QMD9rkXIn step 1 I selected a custom taxonomy from filter shortcode and closed popup (page does not reload) . In step 2 I clicked to see search on header but filter settings not retained.
Many thanks
Sandy.May 26, 2020 at 3:07 pm #27563Hi Sandy,
It looks all right to me at the moment.
The issue is, that if you have two different search instances, then changing the settings on one, will not change the settings on the other one – as they are separate search bars. You probably had a different search bar in the header, and a different search settings shortcode in the pop-up.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 26, 2020 at 5:18 pm #27568Hi Ernest,
I am afraid to say so but I did check and rechecked and found that both settings on popup and theme header search point to same instance of ASP.
I checked shortcode on popup here: https://ibb.co/xFXgyvR
on the ASP main page: https://ibb.co/ChSV5cj
and on the Custom Settings position shortcode here: https://ibb.co/QXjPQRM
both point to same instance.Please login to my wordpress admin to see yourself with credentials above. https://www.pathologybazaar.in/wp-admin/
Many thanks
Sandy-
This reply was modified 4 years, 3 months ago by
sanmita0957.
May 27, 2020 at 8:01 am #27576Hi Ernest,
Adding to my comments above I continued my testing today and figured out that 2 instances of same search bar on the same page is creating issues. On home page I have a popup that shows settings of one instance and another instance as the search header of same search bar, I find on page load the settings is populated correctly on popup but the header search detaches the setting to be never shown again there. But when on a page there is only one instance of ASP ( example on header) running it shows perfectly with settings intact.
I am not sure why this is happening and how this can be fixed. Please help.
Many thanks
SandyMay 27, 2020 at 12:21 pm #27583Hi Sandy,
That is the expected behaviour with one instance. The settings shortcode moves the search settings for the given search instance. In your case the settings was moved to the pop-up content. Since the pop-up is not visible after closing, the settings are not visible either.
I tried to test two instances to see what exactly happens, but I am getting the following error when visiting your site: https://i.imgur.com/HTaRRUp.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 27, 2020 at 12:28 pm #27584Hi Ernest,
Thankyou, Please try again, I have cleared the cache.
Many thanks
SandyMay 27, 2020 at 12:53 pm #27585Thank you.
Could you please make perhaps a sample page with a problematic setup? I really don’t want to make direct changes to your site design, in case I mess up something 🙂
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 27, 2020 at 1:09 pm #27586Hi Ernest,
Sure, thankyou for a wonderful plugin.
I have full backup available with me, please feel free to make any changes to my website.
Thanks
SandyMay 27, 2020 at 1:28 pm #27589You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This reply was modified 4 years, 3 months ago by
- AuthorPosts
You must be logged in to reply to this topic.