Vendor Page – Custom Marker Disappear

WCMp Core

Tagged: , , , ,

Resolved
Viewing 14 reply threads
  • Author
    Posts
    • #124792
      Gimmy88
      Participant

      Hi,

      I have a custom marker on the Vendor map which every time (about once a week) disappear, so I have to manually insert the icon image under /htdocs/wp-content/plugins/dc-woocommerce-multi-vendor/assets/images each time.

      How can I avoid this problem?

      Regards,
      Andrea

    • #124825

      Hello, Thank you for getting in touch with us.
      Can you please make a video or a screenshot to explain this, so we can guide you better .

      • #124831
        Gimmy88
        Participant

        Hi,

        please find attached the screenshot where you can see the folder where I upload my custom marker (htb-marker.png). Every x days it happens that the file htb-marker.png disappears and the map on the vendors page is shown without markers, so I have to upload every time my custom marker via FTP.

        It seems like there is some refresh of some script or what else that delete my custom marker under the folder /htdocs/wp-content/plugins/dc-woocommerce-multi-vendor/assets/images.

        Let me know if it is clear or if you need more explanations.

        Regards,
        Andrea

    • #124841

      @Andrea, it will be really helpful if you can capture a video and explain the issue, becasue we are not sure what marker and where are you referring?

    • #124847
      Gimmy88
      Participant

      Hi,

      in the attached video I show the FTP folder where I have putted the custom marker and the vendor page where I can see my custom marker on the vendors map.

      Now, every x days (I don’t know if it is every week, every four days, every two weeks or more), it happens that the file htb-marker.png disappear from the folder /htdocs/wp-content/plugins/dc-woocommerce-multi-vendor/assets/images, so I have to manually upload every time the file to make the custom marker be visible on the vendors map.

      As I have previously said, it seems that there is some refresh/batch or what else on the images folder that delete my custom marker file.

      Regards,
      Andrea

    • #124909
      Gimmy88
      Participant

      So what is the correct way to set a custom icon marker for the vendor map avoiding that it disappear every time?

    • #124962

      Hi, as shared in the earlier thread, you have to use wordpress by default hooks /filters or template overriding to add a permanent solution .

    • #124963
      Gimmy88
      Participant

      Sorry, but how can I use wordpress hooks/filters or template to add a permanent solution to change the icon marker on the vendors page?

      As far as I know, there is no way to do this with WooCommerce or other plugins, since vendors map page and icon marker are strictly related to your wcmp plugin.

      So, again, how can I change the icon marker on the vendors map avoiding it disappear every time?

    • #124994

      Gimmy, let me consult with the developer regarding this. We will keep you posted.

    • #124999

      Hi,
      For doing that you need to do custom code. We have the flexibility to do this for developers. First, you need to know about hooks and filters. Here you need to use filters. Here is the WordPress filters doc – https://developer.wordpress.org/reference/functions/apply_filters/ ,https://developer.wordpress.org/reference/functions/add_filter/.
      Step 1: Create your plugin or child theme
      Step 2: Add your custom marker image file on that plugin/theme
      Step 3: By wcmp_vendor_list_script_data_params use this filter you can change the existing marker file path ( marker_icon array key name ).
      Thanks

    • #125024
      Gimmy88
      Participant

      Hi,

      the problem is that I have already added custom code to show the custom icon marker on the vendors map, but I still face the issue that the custom icon marker disappear randomly.

    • #125106

      @Gimmy88, We would love to help you out, but debugging a custom code is beyond our support and frankly, we don’t have much bandwidth.

      So, if you need coding guidance our team will definitely help you out with that. But you need to do the full code and corresponding debugging on your end.

    • #125110
      Gimmy88
      Participant

      Sorry, but I have already followed your guidelines and instructions to add the custom icon marker (full topic here) and it works; for the umpteenth time the problem is not that I cannot add a custom marker but is that after I have added a custom marker on the child team it disappear randomly.

    • #125170

      @Gimmy88, it seems like you faced this issue suddenly?
      Did, you update any plugin/theme recently.

    • #125304
      Gimmy88
      Participant

      Hi,

      yes, but I have tried updating plugin/theme and the icon results still visible, while other times they disappear without any plugin/theme update.

    • #125325

      Gimmy, I would love to help you out, however as we can see this code was working previously. But something is causi8ng some issue on your end, which is resulting in this error.

      Now, please do check which modifictaion and update has started this yes.

Viewing 14 reply threads

The topic ‘Vendor Page – Custom Marker Disappear’ is closed to new replies.