• Resolved shanzawaheed

    (@shanzawaheed)


    Hi I have a situation on my site where I need to change taxable address according to the pickup location selected. I am using woocommerce_customer_taxable_address to change the address if the shipping method is “custom_local_pickup”. but when I switch to other shipping methods the shipping option get back to local pickup first time. when i do it again it works. here is my code.

    what i am missing, seems like some hook is overriding my functionality for the first time. here is my filter in functions.php

    //tax handling according to local pickup 
    function customer_taxable_address_filter($array)
    {
        $chosen_methods = WC()->session->get('chosen_shipping_methods');
        $chosen_shipping = $chosen_methods[0];
        error_log(print_r('inside woocommerce_customer_taxable_address', true));
        if ($chosen_shipping === 'custom_local_pickup'){ 
    
            global $wpdb;
            $store = $wpdb->get_row("SELECT * from {$wpdb->prefix}posts where ID = '" . $_COOKIE["wp_preferredLocation"] . "' AND post_status = 'publish' AND post_type = 'wsl_stores'", OBJECT);
            if(isset($store) ){
                $wsl_stores_country = get_post_meta($store->ID, 'wsl_stores_country', true);
                if(isset($wsl_stores_country) )
                    $array[0] = $wsl_stores_country;
                $wsl_stores_province = get_post_meta($store->ID, 'wsl_stores_province', true);
                if(isset($wsl_stores_province) )
                    $array[1] = $wsl_stores_province; //error goes away when this line is commented'
                $wsl_stores_zipcode = get_post_meta($store->ID, 'wsl_stores_zipcode', true);
                if(isset($wsl_stores_zipcode) )
                    $array[2] = $wsl_stores_zipcode;
                $wsl_stores_city = get_post_meta($store->ID, 'wsl_stores_city', true);
                if(isset($wsl_stores_city) )
                    $array[3] = $wsl_stores_city;
                
            }
            // error_log(print_r('inside woocommerce_customer_taxable_address', true));
            // error_log(print_r($array, true));
         } 
         else {
            $array[0] = WC()->customer->get_shipping_country();
            $array[1] = WC()->customer->get_shipping_state();
            $array[2] = WC()->customer->get_shipping_postcode();
            $array[3] = WC()->customer->get_shipping_city();
                
        } 
        return $array;
    }
    add_filter('woocommerce_customer_taxable_address', 'customer_taxable_address_filter');

    Here is my system status report

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://shop.printthree.com
    Site address (URL): https://shop.printthree.com
    WC Version: 6.9.1
    REST API Version: ? 6.9.1
    WC Blocks Version: ? 8.3.2
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0.2
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_CA
    External object cache: ?
    
    ### Server Environment ###
    
    Server Info: nginx
    PHP Version: 7.4.30
    PHP Post Max Size: 2 GB
    PHP Time Limit: 1200
    PHP Max Input Vars: 6144
    cURL Version: 7.83.1
    OpenSSL/1.1.1n
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.26-MariaDB-log
    Max Upload Size: 2 GB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.9.1
    WC Database Prefix: wp_
    Total Database Size: 98.95MB
    Database Data Size: 86.70MB
    Database Index Size: 12.25MB
    wp_woocommerce_sessions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.16MB + Index: 0.14MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.06MB + Index: 0.13MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.06MB + Index: 0.09MB + Engine InnoDB
    wp_itsec_bans: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_itsec_dashboard_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_itsec_distributed_storage: Data: 2.52MB + Index: 0.02MB + Engine InnoDB
    wp_itsec_fingerprints: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_itsec_lockouts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_itsec_logs: Data: 1.52MB + Index: 0.11MB + Engine InnoDB
    wp_itsec_mutexes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_itsec_opaque_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_itsec_temp: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_itsec_user_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 4.25MB + Index: 0.08MB + Engine InnoDB
    wp_postmeta: Data: 4.52MB + Index: 3.03MB + Engine InnoDB
    wp_posts: Data: 5.52MB + Index: 0.34MB + Engine InnoDB
    wp_purowebservice_shipments: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_purowebservice_tracking: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders: Data: 1.52MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_slides: Data: 4.52MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_udraw_clipart: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_udraw_clipart_category: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_udraw_customer_designs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_udraw_excel_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_udraw_price_matrix: Data: 0.41MB + Index: 0.00MB + Engine InnoDB
    wp_udraw_price_matrix_in_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_udraw_svg_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_udraw_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_udraw_templates_category: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_udraw_templates_tags: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_udraw_temporary_designdata: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_usermeta: Data: 0.19MB + Index: 0.06MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 1.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 9.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 4.52MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_pickup_locations_geodata: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_woodmart_wishlists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woodmart_wishlist_products: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_actionscheduler_actions: Data: 0.05MB + Index: 0.13MB + Engine InnoDB
    __wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    __wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    __wp_itsec_bans: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_itsec_dashboard_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_itsec_distributed_storage: Data: 3.02MB + Index: 0.02MB + Engine InnoDB
    __wp_itsec_fingerprints: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    __wp_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_itsec_lockouts: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    __wp_itsec_logs: Data: 2.02MB + Index: 0.11MB + Engine InnoDB
    __wp_itsec_mutexes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_itsec_opaque_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_itsec_temp: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    __wp_itsec_user_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_options: Data: 4.20MB + Index: 0.08MB + Engine InnoDB
    __wp_postmeta: Data: 4.52MB + Index: 3.00MB + Engine InnoDB
    __wp_posts: Data: 5.47MB + Index: 0.28MB + Engine InnoDB
    __wp_purowebservice_shipments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_purowebservice_tracking: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
    __wp_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_revslider_sliders: Data: 1.50MB + Index: 0.02MB + Engine InnoDB
    __wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_revslider_slides: Data: 5.16MB + Index: 0.02MB + Engine InnoDB
    __wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_udraw_clipart: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_udraw_clipart_category: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_udraw_customer_designs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_udraw_excel_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_udraw_price_matrix: Data: 0.34MB + Index: 0.00MB + Engine InnoDB
    __wp_udraw_price_matrix_in_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_udraw_svg_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_udraw_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_udraw_templates_category: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_udraw_templates_tags: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_udraw_temporary_designdata: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_usermeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    __wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    __wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_wc_admin_note_actions: Data: 0.03MB + Index: 0.02MB + Engine InnoDB
    __wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_wc_download_log: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    __wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    __wp_wc_order_stats: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    __wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    __wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    __wp_wfconfig: Data: 1.30MB + Index: 0.00MB + Engine InnoDB
    __wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_wffilemods: Data: 9.52MB + Index: 0.00MB + Engine InnoDB
    __wp_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    __wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    __wp_wfknownfilelist: Data: 4.52MB + Index: 0.00MB + Engine InnoDB
    __wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_wflogins: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    __wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    __wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    __wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB
    __wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
    __wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    __wp_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    __wp_woocommerce_order_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    __wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_woocommerce_pickup_locations_geodata: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    __wp_woocommerce_sessions: Data: 0.25MB + Index: 0.02MB + Engine InnoDB
    __wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    __wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    __wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    __wp_woodmart_wishlists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    __wp_woodmart_wishlist_products: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    acf-field: 34
    acf-field-group: 2
    attachment: 788
    cms_block: 47
    custom-css-js: 2
    customize_changeset: 2
    custom_css: 1
    flamingo_contact: 16
    itsec-dash-card: 5
    itsec-dashboard: 1
    mc4wp-form: 1
    nav_menu_item: 97
    page: 137
    portfolio: 9
    product: 54
    revision: 211
    seedprod: 1
    shop_coupon: 1
    shop_order: 70
    wc_pickup_location: 17
    woodmart_sidebar: 2
    woodmart_slide: 36
    wpcf7_contact_form: 1
    wp_global_styles: 1
    wsl_stores: 35
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (29) ###
    
    Advanced Custom Fields PRO: by Delicious Brains – 5.12.3
    Akismet Anti-Spam: by Automattic – 5.0.1
    iThemes Security: by iThemes – 8.1.2
    Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd: by SeedProd – 6.15.4
    Contact Form 7: by Takayuki Miyoshi – 5.6.3
    Simple Custom CSS and JS: by SilkyPress.com – 3.40
    Custom Local Pickup: by SC Digital Media – 1.0.0
    File Upload Types: by WPForms – 1.2.2
    Flamingo: by Takayuki Miyoshi – 2.3
    Jetpack: by Automattic – 11.4-beta
    WPBakery Page Builder: by Michael M - WPBakery.com – 6.6.0
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.9
    Slider Revolution: by ThemePunch – 6.4.8
    Safe SVG: by 10up – 2.0.3
    Woo Store finder: by wpexpertsio – 1.0.2
    Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.35
    Theme Editor: by mndpsingh287 – 2.7
    Web To Print Shop : uDraw - Book Addon: by Racad Tech
    Inc. – 1.0.0
    
    Web To Print Shop : uDraw Upload Proofing: by Racad Tech
    Inc. – 1.0.0
    
    Web To Print Shop : uDraw: by Racad Tech
    Inc. – 3.3.3
    
    WooCommerce Moneris Gateway: by SkyVerge – 2.17.0 (update to version 3.0.1 is available)
    Booster for WooCommerce: by Pluggabl LLC – 5.6.5
    WooCommerce Shipment Tracking: by WooCommerce – 1.7.2 (update to version 1.8.0 is available)
    WooCommerce Store Finder JSON: by SC Digital Media – 1.0.0
    2Ship Rates: by 2Ship – 1.0
    WooCommerce: by Automattic – 6.9.1 (update to version 6.9.4 is available)
    Woodmart Core: by  – 1.0.22
    Wordfence Security: by Wordfence – 7.6.2
    WP Extra File Types: by Davide Airaghi – 0.5.2
    
    ### Inactive Plugins (2) ###
    
    WooCommerce Purolator: by WooCommerce – 2.4.17 (update to version 2.9.2 is available)
    WooCommerce Purolator Webservice Method: by Jamez Picard – 1.4.8
    
    ### Dropin Plugins (2) ###
    
    advanced-cache.php: advanced-cache.php
    object-cache.php: Memcached
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: CAD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: ?
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: #7 - /shop/
    Cart: #8 - /cart/
    Checkout: #9 - /checkout/
    My account: #10 - /my-account/
    Terms and conditions: #3607 - /terms-conditions/
    
    ### Theme ###
    
    Name: Woodmart Child
    Version: 1.0.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Woodmart
    Parent Theme Version: 4.6.0
    Parent Theme Author URL: https://themeforest.net/user/xtemos
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: woodmart-child/woocommerce/archive-product.php
    woodmart/woocommerce/cart/cart-item-data.php
    woodmart/woocommerce/cart/cart.php
    woodmart/woocommerce/cart/cross-sells.php version 3.0.0 is out of date. The core version is 4.4.0
    woodmart/woocommerce/cart/mini-cart.php version 3.7.0 is out of date. The core version is 5.2.0
    woodmart/woocommerce/checkout/form-checkout.php
    woodmart/woocommerce/checkout/thankyou.php
    woodmart/woocommerce/content-product.php
    woodmart/woocommerce/content-single-product.php
    woodmart/woocommerce/content-widget-product.php
    woodmart/woocommerce/global/breadcrumb.php
    woodmart/woocommerce/global/form-login.php
    woodmart/woocommerce/global/quantity-input.php
    woodmart/woocommerce/loop/add-to-cart.php
    woodmart/woocommerce/loop/loop-end.php
    woodmart/woocommerce/loop/loop-start.php
    woodmart/woocommerce/loop/no-products-found.php
    woodmart/woocommerce/loop/orderby.php
    woodmart/woocommerce/loop/pagination.php
    woodmart/woocommerce/loop/sale-flash.php
    woodmart/woocommerce/myaccount/form-login.php version 3.6.0 is out of date. The core version is 6.0.0
    woodmart-child/woocommerce/order/order-details-customer.php
    woodmart/woocommerce/product-searchform.php
    woodmart/woocommerce/single-product/add-to-cart/grouped.php version 4.0.0 is out of date. The core version is 4.8.0
    woodmart/woocommerce/single-product/add-to-cart/variable.php version 3.5.5 is out of date. The core version is 6.1.0
    woodmart/woocommerce/single-product/meta.php
    woodmart/woocommerce/single-product/product-image.php
    woodmart/woocommerce/single-product/product-thumbnails.php
    woodmart/woocommerce/single-product/rating.php
    woodmart/woocommerce/single-product/related.php
    woodmart/woocommerce/single-product/sale-flash.php
    woodmart/woocommerce/single-product/tabs/tabs.php
    woodmart/woocommerce/single-product/title.php
    woodmart/woocommerce/single-product/up-sells.php
    woodmart/woocommerce/single-product.php
    woodmart/woocommerce/content-product_cat.php version 2.6.1 is out of date. The core version is 4.7.0
    
    Outdated Templates: ?
    					
    					
    						Learn how to update
    
    ### Moneris ###
    
    Environment: Production
    Tokenization Enabled: –
    Debug Mode: Off
    Hosted Tokenization Enabled: ?
    Integration Country: ca
    AVS Enabled: –
    CSC Enabled: ?
    CSC Required: –
    CSC Actions: No Match - reject
    					Not Verified - reject
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    new-product-management-experience
    settings
    
    Daily Cron: ? Next scheduled: 2022-09-29 15:40:09 -04:00
    Options: ?
    Notes: 40
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 72
    Oldest: 2022-08-29 09:56:52 -0400
    Newest: 2022-09-29 04:30:30 -0400
    
    Pending: 1
    Oldest: 2022-09-29 14:30:35 -0400
    Newest: 2022-09-29 14:30:35 -0400
    
    ### Status report information ###
    
    Generated at: 2022-09-29 06:10:00 -04:00
    
    • This topic was modified 2 years, 1 month ago by shanzawaheed.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    …when I switch to other shipping methods the shipping option get back to local pickup first time. when i do it again it works. here is my code…

    May I ask can you provide a copy of any fatal error log found under WooCommerce > System Status > Logs (if any)?

    Is the code being added into your functions.php file or are you using a plugin to add the code like Code Snippets?

    Thread Starter shanzawaheed

    (@shanzawaheed)

    No error logs, Yes i am doing it in functions.php

    Hi @shanzawaheed

    What you want to achieve is a bit complex and would require customization to do it. Since custom coding is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    We have our WooCommerce Developer Resources Portal that can help you get going.

    You can also visit the WooCommerce Community Forum, the WooCommerce FB group, or the #developers channel of our Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Another option is to check our customizations page to hire an expert that can create a custom solution for you: https://woocommerce.com/experts/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘after woocommerce_customer_taxable_address the shipping options reset’ is closed to new replies.