• Hello, I am using distance shipping and the Google maps api and when I complete the purchase, only the billing address appears, that is, you are not getting the address chosen in geolocation. can you help me?

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author WC Lovers

    (@wclovers)

    , only the billing address appears

    – Where?

    Do you have shipping fields and “Delivery Location” fields at checkout?

    Plugin Author WC Lovers

    (@wclovers)

    Be sure, you are not working with a “virtual” type product.

    Thread Starter venp

    (@venp)

    They have the fields “Billing location” and “Delivery location” at checkout and we would like to disable the billing location so that the customer chooses only the delivery location according to the geolocation map.

    Plugin Author WC Lovers

    (@wclovers)

    WooCommerce does not allow to place order without “Billing Address” fields.

    Thread Starter venp

    (@venp)

    The problem is that the address we selected on Google Maps (place of delivery) is not being saved. It should be saved at the Shipping Address. At the moment, it is only used to calculate the value of the delivery.
    After completing the purchase, the address we put in the “Billing Address” is copied to the “Shipping Address”.

    Plugin Author WC Lovers

    (@wclovers)

    The problem is that the address we selected on Google Maps (place of delivery) is not being saved.

    – It saved and show to vendor and delivery person as delivery location.

    Thread Starter venp

    (@venp)

    I already solved the previous problem, but I have another one:
    1) In the “New Order” email sent to the seller, it does not show the delivery address for Google Maps.
    2) I need to add the Order Notes (from the checkout) in the “New Order” email. It also does not appear in the order details on the seller’s dashboard.
    How do I enter this information in these places?

    Plugin Author WC Lovers

    (@wclovers)

    1) In the “New Order” email sent to the seller, it does not show the delivery address for Google Maps.

    – No, this visible in order details page.

    2) I need to add the Order Notes (from the checkout) in the “New Order” email. It also does not appear in the order details on the seller’s dashboard.

    – Add this snippet to your site –

    add_action( 'wcfm_order_totals_after_total', function( $order_id ) {
    	$order = wc_get_order( $order_id );
    	if ( $order->get_customer_note() ) {
    		?>
    		<tr>
    			<th class="td" scope="row" colspan="2" style="text-align:right; width:75%; border-bottom: 1px solid #eee;"><?php esc_html_e( 'Note:', 'woocommerce' ); ?></th>
    			<td class="td" style="text-align:center; border-bottom: 1px solid #eee;"><?php echo wp_kses_post( nl2br( wptexturize( $order->get_customer_note() ) ) ); ?></td>
    		</tr>
    		<?php
    	}	
    }, 50, 1 );

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin – https://wordpress.org/plugins/code-snippets/

    I’d like to add to this. Is it possible to please make the billing location = Google Maps Delivery location.

    I only want the customer to fill out the location of delivery on the google maps API at checkout, and we should copy that information and put it in the “Billing Address” to make Woocommerce happy. It is absurd that the customer has to put the same location 2 times.

    Plugin Author WC Lovers

    (@wclovers)

    OK, you may do so.

    Can you explain how I do this?

    @venp can you explain how you fixed your problem? I too would like for the shipping address to be equal to the address set google maps address input.

    Thanks in advance,
    Alex

    Thread Starter venp

    (@venp)

    Hello @plantiimanagedev. I was unable to make this change.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Delivery address’ is closed to new replies.