• Resolved iuliaradu

    (@iuliaradu)


    HI,

    I would like to add a search bar on the home page..and when people write the name of the street, the results shoud come up by the closest location to the address. Is this possible with GEO my WP?

    Thanks.

    Kind regards,
    Iulia

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter iuliaradu

    (@iuliaradu)

    I actually managed to create the search bar but I have an error saying something went wrong. NOt sure how to fix that. And is there any chance the Submit button can be taken out?

    Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @iuliaradu,

    The issue is with your Google Maps Browser API key. It seems that you did not authorize ( or incorrectly authorized ) your site’s URL.

    Please see step 8 of the tutorial -> https://docs.geomywp.com/article/141-generate-and-setup-google-maps-api-keys to learn how to properly authorize your site’s URL.

    As for the Submit button, you can simply hide it using the CSS below:

    
    form.gmw-form[data-id="1"] .gmw-submit-field-wrapper {
        display: none;
    }
    

    I hope this helps.

    • This reply was modified 4 years, 6 months ago by Eyal Fitoussi.
    Thread Starter iuliaradu

    (@iuliaradu)

    HI,

    And thank you ever so much for your quick reply.
    I am ever so sorry but I misunderstood what my client wants, I need to change the Submit text to ‘Cauta’ which is the same thing but in Romanian but I don’t know any coding.

    Also, how do you input the address on the product, in order for GEO WP to know the location of the products and pull it in the search results? Is it through a plugin that allows you to add custom fields? Or..though the single locator form?

    Many thanks again.

    Kind regards,
    Iulia

    Thread Starter iuliaradu

    (@iuliaradu)

    Hi and sorry again. I still have the questions from above.
    I would also like to know whether, if I install Ajax forms, I can make the customers search by keywords and make the products closest to them appear on the search results. They won’t be searching necessarily by location, they might look for certain activities instead.

    Thread Starter iuliaradu

    (@iuliaradu)

    Hi,

    Can you please, please still help me with the above? I am still confused whether I can achieve what I would like to do through this plugin. I am re-writing my questions by importance. But if the plugin cannot sort number 1, you can leave the rest.

    1. I would also like to know whether, if I install Ajax forms, I can make the customers search by keywords and make the products closest to them appear on the search results. They won’t be searching necessarily by location, they might look for certain activities instead.

    2. I would like to change the text button from ‘Submit’ to ‘Cauta’

    3.How do you input the address on the product, in order for GEO WP to know the location of the products and pull it in the search results? Is it through a plugin that allows you to add custom fields? Or..though the single locator form?

    I am so sorry I tried searching on different groups but could not find this anywhere. Because you are the one who developed this, you can tell me if this can/cannot be achieved.

    Many thanks.

    Kind regards,
    Iulia

    Thread Starter iuliaradu

    (@iuliaradu)

    hello @ninjew!

    I managed to do most of the things I was asking above, on my own. The only thing is that when I search, the results don’t come up. API is ok now and forms are completed. https://test.iesilajoaca.ro/ . Can you please help?

    Many thanks.

    Kind regards,
    Iulia

    Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello Lulia,

    I apologize for not replying sooner. I was away from the project for a few days.

    1. The AJAX Forms plugin does not have a keywords search, that would be the Premium Settings extension.

    Please note that in order for the plugin to show results based on the nearest location, the user must enter an address when searching.

    2. Use this script ( in the functions.php file of your theme ) to modify the Submit button label:

    
    function gmw_custom_lable_submit_button( $args ) {
    
    	$args['label'] = 'Cauta';
    
    	return $args;
    }
    add_filter( 'gmw_search_forms_submit_button_args', 'gmw_custom_lable_submit_button', 50 );
    

    3.

    The only thing is that when I search, the results don’t come up.

    I can see that you used GEO my WP shortcode to display the search form in the header.
    Did you also placed the search results shortcode ( [gmw search_results=”form ID”] on that page?

    Thread Starter iuliaradu

    (@iuliaradu)

    Hi,

    Thank you ever so much for replying! I have been trying to sort this out for a month, I mean the functionality.

    I have moved the results to another page called Search Results. I have added on the Search Results page the search results shortcode, but when I try searching on the homepage, it does not redirect me to another page, as it should. I have changed the Results Page sections in both forms and Settings to point to that certain page, but when searching, it’s not generating a new page, I don’t know why.

    Thank you again.

    Kind regards,
    Iulia

    Plugin Author Eyal Fitoussi

    (@ninjew)

    You are welcome, Iulia.

    Are you using the default permalinks structure? If so, that would most likely be the issue.

    Please try changing the permalink structure to anything else but the default and see if the search works.

    Thread Starter iuliaradu

    (@iuliaradu)

    Hi,

    I was, but not anymore. Thank you so much! All working now. I really appreciate your help!

    Kind regards,
    Iulia

    Plugin Author Eyal Fitoussi

    (@ninjew)

    You are very welcome, Iulia.

    I am glad I could help.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Product search by address’ is closed to new replies.