• Resolved pnaa

    (@pnaa)


    I have a theme template that is being applied to the results page using GeoMyWp Version 3.7.2.2 and choosing Results Template – “custom”

    However, if updating to the new v4 I loose the ability to maintain this template, just having the option of 3 responsive template.

    Is there any way I can keep the same template as in my current version?

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

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @pnaa

    Nothing had changed in regards to the custom templates. So you should still be able to select your custom template.

    1. Did you create that custom template or is it part of your theme? If so, which theme?
    2. Which folder that custom template is located?

    Thread Starter pnaa

    (@pnaa)

    Hi there,

    1. The template is from a theme, matico
    2. I have a child theme in place if it makes any difference

    From the source code of the theme template:
    The template for displaying product content within loops.
    This template can be overridden by copying it to yourtheme/woocommerce/content-product.php.

    Thread Starter pnaa

    (@pnaa)

    This is how it looks after an update without changing nothing.

    https://imgur.com/a/weYOBmQ

    Plugin Author Eyal Fitoussi

    (@ninjew)

    Can you please provide a link to the live page with the form?

    Thread Starter pnaa

    (@pnaa)

    Do you mean the wp-admin backoffice or frontend?

    If you mean frontend, you can use the same URL as in the first post here, I’ve just updated my staging area for the new plugin version:

    https://dev.yomashi.pt/servicos/?post%5B0%5D=product&tax%5Bproduct_cat%5D%5B0%5D=110&distance=20&units=metric&per_page=10&lat&lng&form=1&action=fs

    • This reply was modified 1 year, 2 months ago by pnaa.
    • This reply was modified 1 year, 2 months ago by pnaa.
    Plugin Author Eyal Fitoussi

    (@ninjew)

    Yes, that’s what I meant. I didn’t realize you have already posted it.

    I now see that you mean that you are using the core template file named “custom”. I thought that you were using a custom template file, so I got confused.

    Now, that’s how the “Custom” template suppose to look like. It is a very simple/basic template file. Did you add your own styling that effect that template?

    Thread Starter pnaa

    (@pnaa)

    Any customization came from the theme “matico” that I’ve acquired.

    Before the update to v4, there was not a problem, it is using the proper template as you can see in production env

    https://yomashi.pt/servicos/?post%5B0%5D=product&tax%5Bproduct_cat%5D%5B0%5D=110&distance=20&units=metric&per_page=10&lat&lng&form=1&action=fs

    Plugin Author Eyal Fitoussi

    (@ninjew)

    When I look in the browser’s console of your live site I can see that the name of the results template is “default”, not “custom”. It also appears that that template was modified.

    I think that the core template file of GEO my WP was modified and it is being overridden when you update the plugin.

    Would you please check for the name of the search results template in the live site? and also see if it shows “custom: ” before the name of the template.

    Thread Starter pnaa

    (@pnaa)

    This is the configuration tab on live site >> https://imgur.com/a/FufMUDG

    Plugin Author Eyal Fitoussi

    (@ninjew)

    Thanks.

    I am pretty sure the core template file of GEO my WP was modified.

    I suggest you follow the steps below and see if it fixes the issue:

    1. Connect to the live site via FTP and copy the folder named “custom” from wp-content/plugins/geo-my-wp/plugins/posts-locator/templates/search-results/custom.
    2. Connect via FTP to the staging site and place the “custom” folder that you copied above in your-child-theme-folder/geo-my-wp/posts-locator/search-results/
    3. Also in the staging site, go to the search results tab of the form editor, and in the “Results template” dropdown box you should see a folder named “Custom: custom”. Select that folder and see if that works.

    Let me know how that goes.

    Thread Starter pnaa

    (@pnaa)

    Good call, it worked!
    Thanks!

    Plugin Author Eyal Fitoussi

    (@ninjew)

    You are welcome.

    Thread Starter pnaa

    (@pnaa)

    Hello again,

    After making the styling changes, there are 2 issues that I’ve noticed.
    1. Even I choose Portugal as default region, it shows New York
    2. When I submit the search form, the page turns blank.

    Staging site:
    https://dev.yomashi.pt/servicos/?post%5B0%5D=product&tax%5Bproduct_cat%5D%5B0%5D=110&distance=20&units=metric&per_page=10&lat&lng&form=1&action=fs

    Live site is still running on the latest v3.x.x

    • This reply was modified 1 year, 2 months ago by pnaa.
    Plugin Author Eyal Fitoussi

    (@ninjew)

    Hi @pnaa,

    1. The default region option is for geocoding proposes and for the language of the map. It does not affect the default location of the map. However, once there are markers on the map the map would zoom on those locations. Now, you probably need to update your custom results template. That is most likely why the markers are not showing on the map. So you should look at one of the core template files that’s included in GEO my WP core plugin and update your template based on that. Some changes were made to the structure of the template and a few functions and important hooks were added.
    2. Do you have an error log to look for any errors? Otherwise, do you know how to set WP_DEBUG to true in the wp-config.php file? Doing so should display errors, if any, on the page.
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Single Post Results’ is closed to new replies.