Title: About use
Last modified: June 26, 2020

---

# About use

 *  [gce7](https://wordpress.org/support/users/gce7/)
 * (@gce7)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/about-use/)
 * 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](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/about-use/#post-13077028)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-distance-based-fee_aed8c0.svg)
 * [WebData Distance Based Fee for WooCommerce](https://wordpress.org/plugins/woo-distance-based-fee/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-distance-based-fee/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-distance-based-fee/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-distance-based-fee/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-distance-based-fee/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-distance-based-fee/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/about-use/#post-13077028)
 * Status: not resolved