Hi,
Thank you for looking into this. Please find the answers below:
1. Sure. See the URLs below:
(product2 -- Product added through VM Backend, with custom field vm2geolocator added and location set)
-
andkit01.com/en/
-- scroll down to the "geommunity3 lite - map", do a search for "product2 (added via vm backend)". This should direct to the correct location, but no pin marker is displayed
-
andkit01.com/en/category1/product2-detail
-- this is the product details page for "product2", you can see that here the map, pin marker, and shaded circular area are all shown correctly in the Product Description
(product1 -- Product added through VMVendor Frontend, with location set on the Add Product page)
-
andkit01.com/en/category1/product1-detail
-- here, no map is shown on the Product Description. Also, "product1" cannot be found on the Geommunity3 Lite Map module marker search. It seems that the VMVendor "Product Location" is not linked to the VirtueMart custom field "Coordinates"
Note: The product details pages can also be accessed by clicking the eye icon with the mouse hovering on top of the product boxes (product1 or product2) in
andkit01.com/en/category1
page
2. From the code snippet on the above message (see below), it seems that the code is trying to extract the default latitude/longitude coordinate and default zoom, which should work well. However, the problem seems to be on the $vm2geo_params variable, where instead of containing the full set of variables, it literally has the value "latitude=" (seems truncated or has an error).
$fe_map_width = '100%';
$be_lat = get_between($vm2geo_params, 'default_lat="', '"|');
if(!$be_lat) $be_lat = '0';
$be_lng = get_between($vm2geo_params, 'default_lng="', '"|');
if(!$be_lng) $be_lng = '0';
$be_zoom = get_between($vm2geo_params, 'default_zoom="', '"|');
if(!$be_zoom) $be_zoom = '1';
If you choose the "Add Product" option on
andkit01.com/en/vmv-test/vmv-profile
(login: user1, pswd: user1), you will see that the default map is not set correctly. From the code, if $vm2geo_params contains the complete value that it's supposed to contain, the default latitude/longitude and zoom should be used, the default values are already set on the VM Custom Field backend.