• Hi. First of all Thanks for nice plugin.
    It is very useful this plugin.
    I want store address -> billing address

    so I updated some code. and It looks operate well.

    function hide_show_fee_based_shipping( $rates, $package ) {
    global $woocommerce;
    $originCity = WC()->customer->get_billing_city();
    $originAddress = WC()->customer->get_billing_address();
    $originPostcode = WC()->customer->get_billing_postcode();
    $originAdressSettings =

    esc_attr(get_option(‘wc_distance_fee_origin_address’));
    $originZipSettings = esc_attr(get_option(‘wc_distance_fee_origin_zip’));
    $originCitySettings = esc_attr(get_option(‘wc_distance_fee_origin_city’));

    $to_address = esc_attr(get_option(‘wc_distance_fee_to_address’));
    if($to_address == ‘shipping’) {
    $destinationCity = WC()->customer->get_shipping_city();
    $destinationAddress = WC()->customer->get_shipping_address();
    $destinationPostcode = WC()->customer->get_shipping_postcode();
    }

    but
    I have error log store address(missing)
    also
    when I login another user id, not working.It appear
    Shipping : There are no shipping options available. Please ensure that your address has been entered correctly, or contact us if you need any help.

    only working when admin login or no login.

    can you fix that? what is problem?

    Thank you in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author Gaylord Focker

    (@webdata)

    Hi,

    Since you are using custom code, this goes beyond the scope of this plugin’s support, but you should check all fields returns valid values and Google’s API is able to find them. Just a guess, but it may be you have stored those settings on your admin user but not for the other user.

    Kim

Viewing 1 replies (of 1 total)
  • The topic ‘About use’ is closed to new replies.