WCMp Core
-
AuthorPosts
-
-
July 13, 2021 at 7:39 PM #124792Gimmy88Participant
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 -
July 14, 2021 at 5:43 PM #124825MVX Support NinjaKeymaster
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 .-
July 14, 2021 at 5:53 PM #124831Gimmy88Participant
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
-
-
July 14, 2021 at 7:03 PM #124841NerdySupportExpert MoumitaKeymaster
@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?
-
July 14, 2021 at 7:57 PM #124847Gimmy88Participant
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 -
July 15, 2021 at 7:03 PM #124909Gimmy88Participant
So what is the correct way to set a custom icon marker for the vendor map avoiding that it disappear every time?
-
July 16, 2021 at 1:19 PM #124962MVX Support NinjaKeymaster
Hi, as shared in the earlier thread, you have to use wordpress by default hooks /filters or template overriding to add a permanent solution .
-
July 16, 2021 at 1:28 PM #124963Gimmy88Participant
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?
-
July 16, 2021 at 8:11 PM #124994MVX Support NinjaKeymaster
Gimmy, let me consult with the developer regarding this. We will keep you posted.
-
July 16, 2021 at 8:33 PM #124999Raju The Cool GuyKeymaster
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 -
July 17, 2021 at 9:46 PM #125024Gimmy88Participant
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.
-
July 19, 2021 at 7:40 PM #125106Raju The Cool GuyKeymaster
@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.
-
July 19, 2021 at 7:47 PM #125110Gimmy88Participant
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.
-
July 20, 2021 at 6:40 PM #125170NerdySupportExpert MoumitaKeymaster
@Gimmy88, it seems like you faced this issue suddenly?
Did, you update any plugin/theme recently. -
July 23, 2021 at 3:16 PM #125304Gimmy88Participant
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.
-
July 23, 2021 at 8:08 PM #125325NerdySupportExpert MoumitaKeymaster
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.
-
-
AuthorPosts
The topic ‘Vendor Page – Custom Marker Disappear’ is closed to new replies.