• Resolved jucapuna

    (@jucapuna)


    Hello friend, your plugin is very good, it was just what I was looking for.
    but I have a problem, it is not a bad thing.
    I am using the Checkout Field Editor for WooCommerce plugin, everything except your map appears in the list, I would like it to be possible for me to have a visual in this plugin to be able to move it from a position that can go above the shipping address but below the first and second names , which I can not do, and with this plugin make a delivery conditional that only appears if the package is going to be sent, because in my store I also have local collection.
    Might you help me ?

    https://prnt.sc/1tfgrjv

    Also change the position of the search location button at the top of the map, since if we move the red pin the direction changes automatically, which is greatly appreciated.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter jucapuna

    (@jucapuna)

    They tried to help me but they tell me this.
    look at this screenshot.
    https://prnt.sc/1tfiv7j

    screenshot-lh5.googleusercontent.com-2021.09.23-18_00_46.png

    Plugin Author Uriahs Victor

    (@uriahs-victor)

    @jucapuna The second screenshot you tried to link doesn’t work: screenshot-lh5.googleusercontent.com-2021.09.23-18_00_46.png

    Please try to upload the screenshot they attached in the email to a site like this one: https://pasteboard.co/ and then send me the link here.

    Regarding your other points:

    – The plugin has an option to set where you want the map to appear, it sets it using WooCommerce hooks available on the checkout page. Unfortunately the plugin does not currently have support for Checkout Field Editor that lets you put it after any field you want.

    – It’s currently possible to hide the map based on shipping class, I’ll look into making it possible to hide the map based on the shipping method selected (pickup,delivery etc).

    – You can change the location of the “Detect Current Location” button with some custom javascript but I’ll add an option to change it’s position in a future update to the plugin

    Thread Starter jucapuna

    (@jucapuna)

    https://pasteboard.co/kQxRkAhx5Ay0.png

    the people at Checkout Field Editor for WooCommerce are helping me to move, but they tell me you have a syntax error.

    Plugin Author Uriahs Victor

    (@uriahs-victor)

    That wasn’t actually a syntax error. It’s just a strict return type checking.

    You can change the orientation of the map on the checkout page using some JavaScript if it’s not in the area you want it to be.

    The map isn’t actually a WooCommerce checkout field, so that’s why it wouldn’t show in the list of fields in the Checkout Field Editor plugin. You can let the devs know that.

    The latest version of the plugin allows you to hide or show the map based on the selected shipping method that a user chooses at checkout.

    Regarding the orientation of the “Detect Location” button you can change it using the following code (update to the latest version of the plugin for this to work)

    function change_markup( $old_mark_up, $user_id ){
    	
    	$new_markup = <<<MAP
    		<div id="lpac-map-container" class='woocommerce-shipping-fields__field-wrapper'>
    			<button id='lpac-find-location-btn' type='button'>Detect Current Location</button>
    			<div class='lpac-map'></div>
    			<div class='lpac-map-controls'>
    			<div style="font-size: 10px">Add your map instructions</div>
    			</div>
    		</div>
    MAP;
    	
    	return $new_markup;
    }
    add_filter('lpac_map_markup', 'change_markup', 10, 2);

    You can create a small custom plugin with the code above using a plugin like this one: https://wordpress.org/plugins/pluginception/ or you can add the code to your child theme’s functions.php file

    NOTE: Using this code you’re directly changing the markup of the map area. The markup is subject to change in the future… so there might be a chance you’d have to update this code if that happens.

    Thread Starter jucapuna

    (@jucapuna)

    ok ok thanks a lot friend.
    again congratulations on the add-on.

    Plugin Author Uriahs Victor

    (@uriahs-victor)

    @jucapuna No problem, please feel free to leave a review for the plugin to help other users find it: https://wordpress.org/support/plugin/map-location-picker-at-checkout-for-woocommerce/reviews/

    Thread Starter jucapuna

    (@jucapuna)

    I am already recommending you in a blog to use your complement. 🙂

    Plugin Author Uriahs Victor

    (@uriahs-victor)

    Great! Thank you, please share a link to the post so I can take a look as well

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Checkout Field Editor for WooCommerce : Please help’ is closed to new replies.