• Resolved arkentos

    (@arkentos)


    I use this code to show zero taxes in woocommerce-orders

    add_filter( 'woocommerce_order_hide_zero_taxes', '__return_false' );
    add_filter( 'woocommerce_cart_hide_zero_taxes', '__return_false' ); 

    But when admin enter the coupon code in woocommerce-orders, zero total tax disappears, from order. How can I disable hiding the zero tax when entering a coupon code in the admin area?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Abiola Ogodo

    (@oaoyadeyi)

    @arkentos

    Did you add the code to your child theme’s functions.php? If not, you should do that

    Meanwhile,
    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Thread Starter arkentos

    (@arkentos)

    I add this code via Code Snippet plugin.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://madeinlatvia.eu
    Site address (URL): https://madeinlatvia.eu
    WC Version: 5.7.1
    REST API Version: ? 5.7.1
    WC Blocks Version: ? 5.7.2
    Action Scheduler Version: ? 3.3.0
    WC Admin Version: ? 2.6.5
    Log Directory Writable: ?
    WP Version: 5.8.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 7.4.11
    PHP Post Max Size: 256 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 5000
    cURL Version: 7.71.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.5.12-MariaDB-cll-lve
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.7.1
    WC Database Prefix: jfayg_
    Total Database Size: 74.46MB
    Database Data Size: 55.75MB
    Database Index Size: 18.71MB
    jfayg_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    jfayg_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_woocommerce_order_itemmeta: Data: 1.52MB + Index: 0.13MB + Engine InnoDB
    jfayg_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    jfayg_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_actionscheduler_actions: Data: 0.11MB + Index: 0.17MB + Engine InnoDB
    jfayg_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_actionscheduler_logs: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    jfayg_aiowps_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_aiowps_failed_logins: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    jfayg_aiowps_global_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_aiowps_login_activity: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    jfayg_aiowps_login_lockdown: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_aiowps_permanent_block: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_braapf_product_stock_status_parent: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    jfayg_braapf_product_variation_attributes: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    jfayg_braapf_term_taxonomy_hierarchical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    jfayg_braapf_variation_attributes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    jfayg_dpd_barcodes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_dpd_manifests: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_dpd_terminals: Data: 11.52MB + Index: 1.52MB + Engine InnoDB
    jfayg_duplicator_pro_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_duplicator_pro_packages: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_icl_content_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_icl_core_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_icl_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_icl_languages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_icl_languages_translations: Data: 0.20MB + Index: 0.17MB + Engine InnoDB
    jfayg_icl_locale_map: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_icl_message_status: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_icl_mo_files_domains: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    jfayg_icl_node: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_icl_reminders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_icl_strings: Data: 2.52MB + Index: 4.20MB + Engine InnoDB
    jfayg_icl_string_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_icl_string_pages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_icl_string_positions: Data: 1.52MB + Index: 0.16MB + Engine InnoDB
    jfayg_icl_string_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_icl_string_translations: Data: 0.14MB + Index: 0.09MB + Engine InnoDB
    jfayg_icl_string_urls: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_icl_translate: Data: 4.52MB + Index: 0.42MB + Engine InnoDB
    jfayg_icl_translate_job: Data: 0.19MB + Index: 0.08MB + Engine InnoDB
    jfayg_icl_translations: Data: 0.22MB + Index: 0.55MB + Engine InnoDB
    jfayg_icl_translation_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_icl_translation_status: Data: 5.52MB + Index: 0.05MB + Engine InnoDB
    jfayg_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_options: Data: 4.30MB + Index: 0.25MB + Engine InnoDB
    jfayg_payex_transactions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    jfayg_postmeta: Data: 9.52MB + Index: 6.02MB + Engine InnoDB
    jfayg_posts: Data: 1.52MB + Index: 0.53MB + Engine InnoDB
    jfayg_psninja_amdd: Data: 3.30MB + Index: 1.32MB + Engine MyISAM
    jfayg_psninja_amdd_cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    jfayg_psninja_urls: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_rank_math_analytics_objects: Data: 0.16MB + Index: 0.06MB + Engine InnoDB
    jfayg_rank_math_internal_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_rank_math_internal_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    jfayg_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_snippets: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    jfayg_swedbank_orderlist: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    jfayg_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
    jfayg_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    jfayg_term_relationships: Data: 0.22MB + Index: 0.17MB + Engine InnoDB
    jfayg_term_taxonomy: Data: 0.08MB + Index: 0.11MB + Engine InnoDB
    jfayg_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    jfayg_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    jfayg_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    jfayg_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    jfayg_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    jfayg_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jfayg_wc_product_meta_lookup: Data: 0.17MB + Index: 0.39MB + Engine InnoDB
    jfayg_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    jfayg_wfconfig: Data: 0.47MB + Index: 0.00MB + Engine InnoDB
    jfayg_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wffilemods: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    jfayg_wfhits: Data: 0.16MB + Index: 0.05MB + Engine InnoDB
    jfayg_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    jfayg_wfknownfilelist: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    jfayg_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wflogins: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    jfayg_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jfayg_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    jfayg_wfpklist_template_data: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    jfayg_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    jfayg_wfstatus: Data: 0.14MB + Index: 0.09MB + Engine InnoDB
    jfayg_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    jfayg_wpr_rucss_resources: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    jfayg_wpr_rucss_used_css: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    acf-field: 2
    acf-field-group: 3
    attachment: 721
    blocks: 3
    br_filters_group: 1
    br_product_filter: 4
    custom_css: 2
    customize_changeset: 2
    featured_item: 8
    nav_menu_item: 96
    page: 31
    post: 2
    product: 897
    product_variation: 645
    revision: 39
    sa_invoice: 1
    sa_notification: 9
    sa_record: 2
    shop_coupon: 1
    shop_order: 16
    wpcf7_contact_form: 3
    wpforms: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (24) ###
    
    WPML Multilingual CMS: by OnTheGoSystems – 4.5.0
    Advanced Custom Fields Multilingual: by OnTheGoSystems – 1.9.3
    Advanced Custom Fields: by Delicious Brains – 5.10.2
    All 404 Redirect to Homepage: by wp-buy – 3.2
    Cache Enabler: by KeyCDN – 1.8.7
    Code Snippets: by Code Snippets Pro – 2.14.2
    Contact Form 7 Multilingual: by OnTheGoSystems – 1.1.0
    Contact Form 7: by Takayuki Miyoshi – 5.5.2
    Email Templates: by Damian Logghe – 1.3.2.1
    Rank Math SEO: by Rank Math – 1.0.75
    Luminor E-commerce Gateway: by Luminor – 1.1.2
    WooCommerce Shipping - DPD baltic: by DPD – 1.2.5
    Advanced AJAX Product Filters for WooCommerce: by BeRocket – 1.5.6
    Checkout Field Editor for WooCommerce (Pro): by ThemeHigh – 3.1.6
    WooCommerce Composite Products: by SomewhereWarm – 8.1.3 (update to version 8.3.3 is available)
    WooCommerce Conditional Shipping and Payments: by SomewhereWarm – 1.9.3 (update to version 1.10.0 is available)
    WooCommerce Multilingual: by OnTheGoSystems – 4.12.1
    WooCommerce: by Automattic – 5.7.1 (update to version 5.8.0 is available)
    Wordfence Security: by Wordfence – 7.5.6
    WPML Media: by OnTheGoSystems – 2.7.0
    WPML String Translation: by OnTheGoSystems – 3.2.0
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.9.1
    
    WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels (Pro): by WebToffee – 4.3.1
    YITH WooCommerce EU VAT, OSS & IOSS Premium: by YITH – 2.2.1
    
    ### Inactive Plugins (2) ###
    
    Enable jQuery Migrate Helper: by The WordPress Team – 1.3.0
    WP Rocket: by WP Media – 3.9.3
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (1) ###
    
    p3-profiler.php: by  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: composite (composite)
    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: ?
    
    ### WC Pages ###
    
    Shop base: #1201 - /
    Cart: #1206 - /grozs/?lang=lv
    Checkout: #1207 - /maksajums/?lang=lv
    My account: #4867 - /my-account/?lang=lv
    Terms and conditions: #673 - /noteikumi-un-nosacijumi/?lang=lv
    
    ### Theme ###
    
    Name: Flatsome Child
    Version: 3.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.14.3
    Parent Theme Author URL: https://www.uxthemes.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product-cat.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php
    flatsome/woocommerce/content-product_cat.php
    
    ### Composite Products ###
    
    Database Version: 8.1.3
    Loopback Test: ?
    Template Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 428
    Oldest: 2021-10-13 18:11:18 +0000
    Newest: 2021-11-05 14:25:12 +0000
    
    Pending: 1
    Oldest: 2021-11-06 12:03:40 +0000
    Newest: 2021-11-06 12:03:40 +0000
    
    ### Status report information ###
    
    Generated at: 2021-11-06 15:04:01 +03:00
    
    Plugin Support Brad P. a11n

    (@snaacks)

    Since you’re working with custom code this would be more of a development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the following places for more development-oriented questions:

    MayKato

    (@maykato)

    This thread has been inactive for a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Coupon hide zero taxe’ is closed to new replies.