[ 'id' => 'vat_rate_tab_title', 'name' => esc_html__("Configure Additional VAT rate for Everyone",'additional-fees-for-woocommerce'), 'desc' => esc_html__("Configure Additional VAT or TAX for Your Products That Your Castomers Will See in The Checkout Page and They Have to Pay The Extra",'additional-fees-for-woocommerce'), 'type' => 'title' ], 'dynamic_vat_rate' => [ 'id' => 'additional_fees_for_wc_payment_gateway_static', 'name' => esc_html__("Dynamic VAT", 'additional-fees-for-woocommerce'), 'desc' => esc_html__("Add a Number and The Percentage of Your Provided Number Will be Added to The Cart Total", 'additional-fees-for-woocommerce'), 'type' => 'text' ], 'flate_vat_rate' => [ 'id' => 'additional_fees_for_wc_payment_gateway_dynamic', 'name' => esc_html__("Flate VAT", 'additional-fees-for-woocommerce'), 'desc' => esc_html__("Add a Number That Will Be Added to Your Cart Total as Flate Rate", 'additional-fees-for-woocommerce'), 'type' => 'text' ], 'section_end' => [ 'id' => 'vat_rate_tab_sectionend', 'type'=> 'sectionend' ] ]; return apply_filters("additional_fees_for_woocommerce_tab_fields", $settings); } /** * Returning Fields in HTML for The WooCommerce * Settings Extra Fee Tab * */ public function settings_tab(){ woocommerce_admin_fields($this->vat_rate_tab_fields()); } /** * Updating The Data in The Database * */ public function update_settings_tab(){ woocommerce_update_options($this->vat_rate_tab_fields()); } }