Code

Discussion on Progress Map Wordpress Plugin

Discussion on Progress Map Wordpress Plugin

Cart 6,341 sales
Recently Updated

codespacing supports this item

Supported

This author's response time can be up to 5 business days.

4571 comments found.

Hello! After the update (3.9) my custom code to display a custom description into infobox his broken. More exactly, I include a javascript into that code but it seems to be broken. The javascript works before your update (v3.7)... Can you explain how i repair it, please ? I have a bad English… i’m french user (this is not a excuse;) ) Thanks !!

no it doesn’t work :(

Hi,

Please use the following code instead. Just tried it on my test site and it works great.

function cspm_custom_infobox_description($default_description, $post_id){
    /*Adresse*/
    $p_ouvert = '<p style="font-size:11px">';
    $p_ferme = '</p>';
    $br = '<br />';
    $adresse_depositaire1 = get_post_meta( $post_id, '_pickup_location_address_address_1', true );
    $cp_depositaire = get_post_meta( $post_id, '_pickup_location_address_postcode', true );
    $ville_depositaire = get_post_meta( $post_id, '_pickup_location_address_city', true );
    $phone_depositaire = get_post_meta( $post_id, '_pickup_location_phone', true );
    $pays_depositaire = get_post_meta( $post_id, '_pickup_location_address_country', true );
    $ouverture_depositaire = array($array_ouverture_depositaire);
    if ($pays_depositaire == 'FR'){
        $pays_depositaire = 'France';
    }
    if ($pays_depositaire == 'MC'){
        $pays_depositaire = 'Monaco';
    }
    if ($pays_depositaire == 'AD'){
        $pays_depositaire = 'Andorre';
    }
    if ($pays_depositaire == 'BE'){
        $pays_depositaire = 'Belgique';
    }

    /*Horaire*/
    $lundi = get_field('lundi', $post_id);    
    $mardi = get_field('mardi', $post_id);    
    $mercredi = get_field('mercredi', $post_id);    
    $jeudi = get_field('jeudi', $post_id);    
    $vendredi = get_field('vendredi', $post_id);    
    $samedi = get_field('samedi', $post_id);    

    $lundi_ouvert_fermer = get_post_meta( $post_id, 'lundi_ouvert_fermer_lundi', true);
    $mardi_ouvert_fermer = get_post_meta( $post_id, 'mardi_ouvert_fermer_mardi', true);
    $mercredi_ouvert_fermer = get_post_meta( $post_id, 'mercredi_ouvert_fermer_mercredi', true);
    $jeudi_ouvert_fermer = get_post_meta( $post_id, 'jeudi_ouvert_fermer_jeudi', true);
    $vendredi_ouvert_fermer = get_post_meta( $post_id, 'vendredi_ouvert_fermer_vendredi', true);
    $samedi_ouvert_fermer = get_post_meta( $post_id, 'samedi_ouvert_fermer_samedi', true);

    $magasin = get_the_title($post_id);
    $depositaire_id = get_post_meta( $post_id, 'pickup_location_id', true );

    if( $lundi && $lundi_ouvert_fermer){
        $ouverture_matin_lundi = get_post_meta( $post_id, 'lundi_ouverture_matin_lundi', true);
        $fermeture_matin_lundi = get_post_meta( $post_id, 'lundi_fermeture_matin_lundi', true);
        $ouverture_apres_midi_lundi = get_post_meta( $post_id, 'lundi_ouverture_apres_midi_lundi', true);
        $fermeture_apres_midi_lundi = get_post_meta( $post_id, 'lundi_fermeture_apres_midi_lundi', true);
        $horaire_lundi = 'Lundi : '.$ouverture_matin_lundi.'-'.$fermeture_matin_lundi.', '.$ouverture_apres_midi_lundi.'-'.$fermeture_apres_midi_lundi.'<br />';
    }else{
        $horaire_lundi = 'Lundi : Fermé<br />';
    }
    if( $mardi && $mardi_ouvert_fermer){
        $ouverture_matin_mardi = get_post_meta( $post_id, 'mardi_ouverture_matin_mardi', true);
        $fermeture_matin_mardi = get_post_meta( $post_id, 'mardi_fermeture_matin_mardi', true);
        $ouverture_apres_midi_mardi = get_post_meta( $post_id, 'mardi_ouverture_apres_midi_mardi', true);
        $fermeture_apres_midi_mardi = get_post_meta( $post_id, 'mardi_fermeture_apres_midi_mardi', true);
        $horaire_mardi = 'Mardi : '.$ouverture_matin_mardi.'-'.$fermeture_matin_mardi.', '.$ouverture_apres_midi_mardi.'-'.$fermeture_apres_midi_mardi.'<br />';
    }else{
        $horaire_mardi = 'Mardi : Fermé<br />';
    }
    if( $mercredi && $mercredi_ouvert_fermer){
        $ouverture_matin_mercredi = get_post_meta( $post_id, 'mercredi_ouverture_matin_mercredi', true);
        $fermeture_matin_mercredi = get_post_meta( $post_id, 'mercredi_fermeture_matin_mercredi', true);
        $ouverture_apres_midi_mercredi = get_post_meta( $post_id, 'mercredi_ouverture_apres_midi_mercredi', true);
        $fermeture_apres_midi_mercredi = get_post_meta( $post_id, 'mercredi_fermeture_apres_midi_mercredi', true);
        $horaire_mercredi = 'Mercredi : '.$ouverture_matin_mercredi.'-'.$fermeture_matin_mercredi.', '.$ouverture_apres_midi_mercredi.'-'.$fermeture_apres_midi_mercredi.'<br />';
    }else{
        $horaire_mercredi = 'Mercredi : Fermé<br />';
    }
    if( $jeudi && $jeudi_ouvert_fermer){
        $ouverture_matin_jeudi = get_post_meta( $post_id, 'jeudi_ouverture_matin_jeudi', true);
        $fermeture_matin_jeudi = get_post_meta( $post_id, 'jeudi_fermeture_matin_jeudi', true);
        $ouverture_apres_midi_jeudi = get_post_meta( $post_id, 'jeudi_ouverture_apres_midi_jeudi', true);
        $fermeture_apres_midi_jeudi = get_post_meta( $post_id, 'jeudi_fermeture_apres_midi_jeudi', true);
        $horaire_jeudi = 'Jeudi : '.$ouverture_matin_jeudi.'-'.$fermeture_matin_jeudi.', '.$ouverture_apres_midi_jeudi.'-'.$fermeture_apres_midi_jeudi.'<br />';
    }else{
        $horaire_jeudi = 'Jeudi : Fermé<br />';
    }
    if( $vendredi && $vendredi_ouvert_fermer){
        $ouverture_matin_vendredi = get_post_meta( $post_id, 'vendredi_ouverture_matin_vendredi', true);
        $fermeture_matin_vendredi = get_post_meta( $post_id, 'vendredi_fermeture_matin_vendredi', true);
        $ouverture_apres_midi_vendredi = get_post_meta( $post_id, 'vendredi_ouverture_apres_midi_vendredi', true);
        $fermeture_apres_midi_vendredi = get_post_meta( $post_id, 'vendredi_fermeture_apres_midi_vendredi', true);
        $horaire_vendredi = 'Vendredi : '.$ouverture_matin_vendredi.'-'.$fermeture_matin_vendredi.', '.$ouverture_apres_midi_vendredi.'-'.$fermeture_apres_midi_vendredi.'<br />';
    }else{
        $horaire_vendredi = 'Vendredi : Fermé<br />';
    }
    if( $samedi && $samedi_ouvert_fermer){
        $ouverture_matin_samedi = get_post_meta( $post_id, 'samedi_ouverture_matin_samedi', true);
        $fermeture_matin_samedi = get_post_meta( $post_id, 'samedi_fermeture_matin_samedi', true);
        $ouverture_apres_midi_samedi = get_post_meta( $post_id, 'samedi_ouverture_apres_midi_samedi', true);
        $fermeture_apres_midi_samedi = get_post_meta( $post_id, 'samedi_fermeture_apres_midi_samedi', true);
        $horaire_samedi = 'Samedi : '.$ouverture_matin_samedi.'-'.$fermeture_matin_samedi.', '.$ouverture_apres_midi_samedi.'-'.$fermeture_apres_midi_samedi.'<br />';
    }else{
        $horaire_samedi = 'Samedi : Fermé';
    }

    $bouton = '
    jQuery("#selection_detaillant[data-post-id='.$post_id.']").livequery("click", function() {
        jQuery(".pickup-location-lookup").val("'.$post_id.'").trigger("change");
        jQuery(".pickup-location-address").text("'.$adresse_depositaire1.' '.$ville_depositaire.' '.$cp_depositaire.' '.$pays_depositaire.'");
        jQuery("#selection_detaillant").val("Vous serez livré à cette adresse !");
        jQuery(".detaillant").attr("checked","checked");
        jQuery("#erreur-depositaire").css({ display: "none" });    
        jQuery("#cadre-horaire-magasin").html("'.$horaire_lundi.''.$horaire_mardi.''.$horaire_mercredi.''.$horaire_jeudi.''.$horaire_vendredi.''.$horaire_samedi.'");
    });';

    wp_add_inline_script('cspm_map_js', $bouton);

    $custom_content = '<div style="width:34%;margin-right:4%;margin-left:4%;float:left"><h6 style="font-size:11px;font-weight:bold">ADRESSE</h6>'.$p_ouvert.$adresse_depositaire1.$br.$cp_depositaire.' '.$ville_depositaire.$br.$pays_depositaire.$p_ferme.$p_ouvert.'Tel : '.$phone_depositaire.$p_ferme.'</div><div style="border-left:1px solid #555555;width:54%;margin-right:4%;padding-left:4%;float:left"><h6 style="font-size:11px;font-weight:bold">HORAIRE</h6>'.$p_ouvert.$horaire_lundi.$horaire_mardi.$horaire_mercredi.$horaire_jeudi.$horaire_vendredi.$horaire_samedi.$p_ferme.'</div>';
    $custom_content .= '<div class="form-row"><input type="button" value="Livrer ici !" id="selection_detaillant" data-post-id="'.$post_id.'" required></div>';

    return (!empty($custom_content)) ? $custom_content : $default_description;

}

add_filter("cspm_large_infobox_content", "cspm_custom_infobox_description", 10, 2);

Please note that there’s a PHP error in your code. You may need to fix or remove the following line from your code:

$ouverture_depositaire = array($array_ouverture_depositaire);

Thank you

Yes it works. Many thanks !!!!!!!!

I have made the update of the map from Version2 into version3 and I received the following comment: “Incorrect coordinates!”. The map is visible in the correct way. Coordinates are uploaded correctly. How can I remove the comment? ( Printscreen: https://www.dropbox.com/sh/0ejr9zh6ojj4g7d/AAAONu0FqJ2kJQm-YPLNuHsea?dl=0 )

Hi,

You need to correct the coordinates of the post having the ID “4538” not the ones of the map center. That’s what the message told. There must be something wrong with that post’s coordinates.

Thank you

Hi, I update this plugin and his extension List&Filter with last version, but the new version is not ok on mobile setting! Now the infobox don’t open on maker click and then the title of the posts previews in List & Filter is cut and not displayed well. You can solve the problem? otherwise I try to go back to the old version that was perfect!

Hi,

There’s an issue regarding opening infoboxes on marker click on mobiles. I’ll fix that issue very soon and send the updates to Codecanyon.

About the listings title, please send me the link of your page to check this.

Thank you

Hi, oK thank you very much. I’m waiting for the update then! :) For the infobox of the titles in the preview of List & Filter you can watch here: https://www.sitiarcheologiciditalia.it/epoca-greca/ or in one of the other pages of the site with the map. Also this problem is just in mobile. At a first page opening, the size of the text boxes are not correct and they cut text and title of the preview, then when you refresh the page they return correctly.

Hi,

Can you please update to the latest version 3.9.1 and check again.

Thank you

Hi, my infoboxes have this weird square under them. You can find it here:

http://celiacsanonymous.com/restaurant-locator/

Under the infobox circle, you’ll see this small square instead of the sharp arrow-end seen on demos and in the backend settings.

Can you please tell me how to get rid of that square?

Perfect, thank you!

One other thing, when I implement the short code on my page, the “register” and “login” buttons in the top-right corner of my page disappears. Notice the difference between the maps page (http://celiacsanonymous.com/restaurant-locator/) and any other page (example: http://celiacsanonymous.com/gluten-free-recipes/).

Why is this disappearing? What do I need to do to restore it?

Hi,

It’s a CSS conflict. Please click on the menu “Progress Map” and add the following CSS code in the field “Troubleshooting & configs => Custom CSS” :

.site-header .right-col{display:table-cell !important;}

Thank you

Hi, secondary post types is missing from “Query settings”, I cannot add more than 1 CPT to the maps

Hi,

Sorry for the late response. Please accept my sincere apologies.

About your question. Please note that there was never an option to display multiple post types in one map. I’ll explain.

In the previous version 2, there was no option to create multiple maps. To create a map, there was only one settings panel/page. To create a new map, you had to use the shortcode attributes to override the main map settings.

In that settings panel (v2), you had to connect your main map to a main post type which you can select in the field “Main post type”. The option “Secondary post types” was only available to inform the plugin that you also need to create more maps related to different other (csutom) post types. By selecting secondary post types, the plugin will add a form allowing to add a post/location to the map when you add or edit a post.

To display a map on your frontend page, you had to add the attribute “post_type” to the shortcode and specify the name of your post type. There was no option to add multiple post types!

Here’s a post about using multiple post types in v2. Check it for more info https://codespacing.com/progress-map-version-2/documentation/tutorials-and-how-to/connect-the-plugin-with-multiple-custom-post-types-then-display-posts-of-each-post-type-in-different-maps/

Now in v3, the field “Secondary post types” was removed because now you can create multiple maps, each map have its own settings panel/page. Nothing has changed regarding using multiple post types on the same. You can connect a map to one post type only.

I hope i answered your question.

Thank you for your patience

hello, since the update of this day, there are concerns with the infobox: in bubble mode the image inside is off-center and on a smartphone the infobox no longer appears! to see here: https://www.charme-bretagne.com/decouvrir-la-bretagne-2/ for the bubbles and here for the infobox on a smartphone: https://www.charme-bretagne.com/nos-gites-et-chambres-dhotes-de-charme/ thank for your help

EDIT : I found the solution for the bubbles (a concern of css) but still the same problem with the smartphone, the click on the marker does not appear the infobox

Hi,

Sorry for that issue. I’ll fix it very soon and send the updates to codecanyon.

Thank you

Thanks ! It’s perfect now with the 3.9.1 !

Hi! How can I open the infobox of the item clicked on the carousel?

Hi,

This option is not available. When you click on a carousel item, the map will show the marker but there’s no option to open the infobox. I’ll try to add this option i a future update.

Thank you

Hi, I really like that you added the “auto open” filter option. It works great but I was wondering if it is possible to disable the auto-open on mobile phones? Problem is it takes up too much of the map by default. https://bassltd.com/locations-map/

Hi,

Unfortunately no. This option is not available and there’s no way to that otherwise.

Thank you

Hello! I use Progress Map to show events from EventOn plugin. I created a Locations CPT (in EventOn the location is just a taxonomy and I need a complete post for every location) and linked it with many-to-many relationship with EventOn using Toolset Types. I wanted to set the marker location in Locations only, and show the events on the map. It seems it is not working. Can’t PM load the location from a linked post type? Do I have to set the location inside every event using PM’s marker fields? Before this I tried to set the lat/long fields to be aquired from EventOn directly. I am sure the field names were correct and I regenerated the thumbnails too, but this is not working at all. Please help me find one way so I don’t have to add the same location coordinates a so many times…

Hi,

I think i need to check this directly in your website. I can’t tell what the problem is. Please send me the login of your site to plugin.progressmap@gmail.com and please mention your username (joryuto) and this conversation in your message.

Thank you

Hello, It’s been eight days since I asked you for support because Progress Map plugin broke the additional settings tab in the WP post backend. I’m using Newspaper template by tagdiv. Is it possible to receive an answer from you? I really need to know if there is a solution and would really appreciate some attention from you. Thank you again

Hi,

Very sorry for the late response. I think the plugin conflicts with the theme “Newspaper”. Some customers had the same issue. Unfortunately, i’ll not be able to fix that conflict in the near future. This doesn’t mean that the plugin is bugy nor the theme but the complexility is that it’ll not be that easy to figure out what’s in your theme that conflicts with the plugin and vice versa. If you can, please contact your theme support about this issue, not to fix it, but only to give a hint if they already have an idea.

Thank you for your patience.

Can I use wp all import for importing real estate listings in progress map?

Hi,

You can use wp all import to import your listings to your website not to Progress Map. The plugin doesn’t need an import tool to work. All you’ll have to do next is to create a new map and connect it with your listings (custom) post type and that’s it. The plugin will display your listings on the map.

Thank you

Hi there! Just looking for some help with the plugin. For some reason is loading very slow and not sure what am I doing wrong. I believe I don’t have that many markers?

Also seems that with the latest update the + (plus) and – (minus) icons have disappeared from the map zoom controls? The images for them are there, but looks like they were moved to a SVG sub-folder and don’t know where to update the link.

My URL: http://herethereandaway.com/

Thanks a lot in advance…

Correction on the icons. Was able to adjust that on the map settings :)

Hi,

Sorry for the late response. I’ve also noticed that using AJAX to get the locations details is becoming a very slow process recently. This wasn’t an issue before so i started working on a new approche which required so many changes and so many working hours on the plugin and its add-ons. That’s why i was absent all this period of time and i would to apology to you and all customers about the absence.

So, i’ve checked your website and see that you’ve already updated the plugin to the latest version. You’ll now see the changes and how fast everything is loading. I hope you like the improvements.

Thank you for your patience

hallo, I understand that the plugin shows in the map the image set as featured. can the plugin show the first image in the post instead?

thank you

Hi,

Sorry for the late response. Please accept my sincere apologies.

You can do that using a custom PHP code, otherwise, the plugin will always use the featured image. The custom code can be added to the file “functions.php” of your theme. Update it to your needs:

The following example shows how you can use a custom image stored as a custom field:

function cspm_custom_img($default_thumb, $post_id, $width, $height){

    $my_custom_img = get_post_meta($post_id, "YOUR_CUSTOM_FIELD_NAME", true);

    $post_thumbnail = !empty($my_custom_img ) ? $my_custom_img : $default_thumb;

    return '<img src="'.$post_thumbnail.'" style="width:'.$width.'px; height:'.$height.'px" />';

}
add_filter('cspm_post_thumb', 'cspm_custom_img', 10, 4);

Thank you

Is it possible to show different info boxes by category?

Hi,

Sorry for the late response. Please accept my sincere apologies.

Unfortunately no. There’s no option to do that now but it’ll be available in a future update.

Thank you

Hello, I’ve just purchased Progress Map plugin and I’m trying to set up my first map, but I’m having a big problem. I use the Newspaper template by tagdiv. It seems that Progress Map broke the additional settings tab in the WP post backend. Please tell me if there is a solution, as I really need your plugin and its add-ons, but if the problem persists I will have to uninstall it. Thank you in advance

Hi,

Very sorry for the late response. I think the plugin conflicts with the theme “Newspaper”. Some customers had the same issue. Unfortunately, i’ll not be able to fix that conflict in the near future. This doesn’t mean that the plugin is bugy nor the theme but the complexility is that it’ll not be that easy to figure out what’s in your theme that conflicts with the plugin and vice versa. If you can, please contact your theme support about this issue, not to fix it, but only to give a hint if they already have an idea.

Thank you for your patience.

Hello,

I have a client who has implemented Progress Map on their site. The site is using WPML for language translation and that all seems to be working well. The only issue is that the custom category markers are not showing up when switching languages. I have tried switching to a language in the admin and then setting the categories in that language and updating. This works except for when I do the same for another language, it seems to override the previous changes. These are things I would like to know:

1. Is this a bug or is translatable category markers not supported? If it’s a bug, do you have it on a timeline for fixing? 2. If my client has support for this plugin, is this something you can fix?

Thank you for your time!

Hi,

I have a travel blog with thousands of users. Now I’m developing a completely new site (place.bg) with your great plug-in, but I have some problems/questions.

If they can be solved, this will be greatest map plugin for me:

1. How to restore the original google MAP functionality “Use ctrl + scroll to Zoom the map” when I use plugin on PC? 2. How can I use Search tab with my current location instead of manualy enter address or GPS possition (it will be great, if there is a button to automaticaly enter my current location in search field)? 3. Is it possible to autoaticly close previously opened tab when I click on new (Map elements) or somewhere on the map. Now they opened one over another and I need to close them manualy, which is quite uncomfortable? 4. Is it possible (on PC) to show title of placemark as Alt text “On mouse over” event (as it is in my current map: https://goo.gl/S6QXee), so I know if I want to click on it for more information? 5. Is there a possibility when I click on cluster to center the place of cluster on screen and smooth zoom it without reloading the map (as it is in my current map: https://goo.gl/S6QXee)? Now the map reloads and the user loses the location of the cluster and its objects. 6. Is there a possibility when I click on cluster to limit Map zoom (as it is in my current map: https://goo.gl/S6QXee)? Now when I have cluster with 2 objects and user click on it, maps zooms while the objects in the cluster occupy the all entire screen and user loses them. 7. Is there a possibility, when I point to a map marker (“On mouse hover”), the carousel to display marker info centered rather than as it is now – at the top / left edge?

Thanks in advance.

Hi,

Sorry for the late response. Please accept my sincere apologies.

1. How to restore the original google MAP functionality “Use ctrl + scroll to Zoom the map” when I use plugin on PC?

- This is an option that be set from the “Map settings” menu. Please check this post for more info https://codespacing.com/wordpress-plugins/progress-map/documentation/user-guide/#zoom-the-map-using-the-mouse-scroll-wheel

2. How can I use Search tab with my current location instead of manualy enter address or GPS possition (it will be great, if there is a button to automaticaly enter my current location in search field)?

- First, please update the plugin to the latest version 3.9.1. I’ve previously added the possibility to add the user’s current location when adding or editing a post.

3. Is it possible to autoaticly close previously opened tab when I click on new (Map elements) or somewhere on the map. Now they opened one over another and I need to close them manualy, which is quite uncomfortable?

- I’ll try to do so in a future update.

4. Is it possible (on PC) to show title of placemark as Alt text “On mouse over” event (as it is in my current map: https://goo.gl/S6QXee), so I know if I want to click on it for more information?

- I’ll try to add this option in a future update.

5. Is there a possibility when I click on cluster to center the place of cluster on screen and smooth zoom it without reloading the map (as it is in my current map: https://goo.gl/S6QXee)? Now the map reloads and the user loses the location of the cluster and its objects.

- Actually, the map doesn’t reload at all. It only zoom in to show all locations inside the cluster.

6. Is there a possibility when I click on cluster to limit Map zoom (as it is in my current map: https://goo.gl/S6QXee)? Now when I have cluster with 2 objects and user click on it, maps zooms while the objects in the cluster occupy the all entire screen and user loses them.

- I’ll see what i can do to improve the cluster system.

7. Is there a possibility, when I point to a map marker (“On mouse hover”), the carousel to display marker info centered rather than as it is now – at the top / left edge?

- Unfortunately, there’s no option to do that. The carousel item that displays the marker info will be scrolled to the first position (the left).

Thank you

Hello,

I just installed the Progress map and the Progress map list & filters plugin. Now I want to add locations to my map, but in my menu (& the settings drop down) there is no item called “listings”. I only can add posts and pages. Why do I not have the option to create listings?

Hi,

Sorry for the late response. Please accept my sincere apologies.

Please note that the plugin doesn’t provide a listings menu or a custom post type (listings). The one i use in the demo site was created using the free plugin ”Toolset types”. “Progress Map” was designed to be used with any post type. Please install the plugin ”Toolset types” and create a new custom post type in which you can add your locations.

https://wordpress.org/plugins/types/

Thank you

is it possible to set carousel items description or list item description based on if the field or custom field is filled or has a specific value?

Hi, we are having big problems with the map on firefox. On Firefox the map is really slow (when loading and browsing) We are Progress Map by CodeSpacing V. 3.5.1 and Progress Map, List & Filter by CodeSpacing V. 2.4. Is there any solution?

Thank you

Hi,

Please update to the latest version 3.9.1. The slow loading issues are now fixed.

Thank you

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey