Support

Account

Home Forums Front-end Issues Add Google map to billing address and display value in admin order

Unread

Add Google map to billing address and display value in admin order

  • Hello,

    I’m new to ACF. I add this code below to this template form-edit-address.php inside <form method="post"></div>

    `<?php
    acf_form_head();
    $current_user = wp_get_current_user();
    $options = array(
    ‘post_id’ => ‘user_’.$current_user->ID,
    ‘field_groups’ => array(27836),
    ‘form’ => false,
    );
    acf_form( $options );
    ?>`

    and I save Google map data with the code below

    function action_woocommerce_customer_save_address( $user_id, $load_address ) { 
        acf_form_head();
    
        $current_user = wp_get_current_user();
    	$options = array(
    		    'post_id' => 'user_'.$current_user->ID,
    		    'field_groups' => array(27836),
    		    'form' => false, 
    		);
    	acf_form( $options );
    }; 
    add_action( 'woocommerce_customer_save_address', 'action_woocommerce_customer_save_address', 10, 2 );

    The Google map get saved after hitting Woocommerce save button. The question is how can I display Google map value in the Admin order edit page using this hook woocommerce_ajax_get_customer_details? I’d like to display the Google map value there.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.