About use
-
Hi. First of all Thanks for nice plugin.
It is very useful this plugin.
I want store address -> billing addressso 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.
- The topic ‘About use’ is closed to new replies.