Untitled
unknown
plain_text
a month ago
13 kB
3
Indexable
{
"version": "2.0",
"mode": "profiles",
"title": "Invoice Export [PHP Funkcijos]",
"skip_empty_file": true,
"log_results": false,
"from_status": [],
"to_status": [],
"change_order_status_to": "",
"statuses": [
"wc-processing",
"wc-completed",
"wc-refunded"
],
"from_date": "2025-10-01",
"to_date": "2025-10-31",
"sub_start_from_date": "",
"sub_start_to_date": "",
"sub_end_from_date": "",
"sub_end_to_date": "",
"sub_next_paym_from_date": "",
"sub_next_paym_to_date": "",
"from_order_id": "",
"to_order_id": "",
"shipping_locations": [],
"shipping_methods": [],
"item_names": [],
"item_metadata": [],
"user_roles": [],
"user_names": [],
"user_custom_fields": [],
"billing_locations": [],
"payment_methods": [],
"any_coupon_used": "0",
"coupons": [],
"order_custom_fields": [],
"product_categories": [],
"product_vendors": [],
"products": [],
"product_sku": "",
"exclude_products": [],
"product_taxonomies": [],
"product_custom_fields": [],
"product_attributes": [],
"product_itemmeta": [],
"format": "CSV",
"format_xls_use_xls_format": "0",
"format_xls_sheet_name": "Orders",
"format_xls_display_column_names": "1",
"format_xls_auto_width": "1",
"format_xls_direction_rtl": "0",
"format_xls_force_general_format": "0",
"format_xls_remove_emojis": "0",
"format_xls_row_images_width": "50",
"format_xls_row_images_height": "50",
"format_csv_enclosure": "",
"format_csv_delimiter": ";",
"format_csv_linebreak": "\\r\\n",
"format_csv_display_column_names": "0",
"format_csv_add_utf8_bom": "1",
"format_csv_item_rows_start_from_new_line": "0",
"format_csv_encoding": "UTF-8",
"format_csv_delete_linebreaks": "0",
"format_csv_remove_linebreaks": "0",
"format_csv_force_quotes": "0",
"format_tsv_linebreak": "\\r\\n",
"format_tsv_display_column_names": "1",
"format_tsv_add_utf8_bom": "0",
"format_tsv_item_rows_start_from_new_line": "0",
"format_tsv_encoding": "UTF-8",
"format_xml_root_tag": "root",
"format_xml_order_tag": "",
"format_xml_product_tag": "Product",
"format_xml_coupon_tag": "Coupon",
"format_xml_prepend_raw_xml": "",
"format_xml_append_raw_xml": "",
"format_xml_self_closing_tags": "1",
"format_xml_preview_format": "0",
"format_json_start_tag": "[",
"format_json_end_tag": "]",
"format_json_unescaped_slashes": 0,
"format_json_numeric_check": 0,
"format_json_encode_unicode": 0,
"format_pdf_display_column_names": "1",
"format_pdf_repeat_header": "1",
"format_pdf_direction_rtl": 0,
"format_pdf_orientation": "L",
"format_pdf_page_size": "A4",
"format_pdf_font_size": "8",
"format_pdf_header_text": "",
"format_pdf_footer_text": "",
"format_pdf_pagination": "C",
"format_pdf_fit_page_width": "0",
"format_pdf_cols_width": "25",
"format_pdf_cols_align": "L",
"format_pdf_cols_vertical_align": "T",
"format_pdf_page_header_text_color": "#000000",
"format_pdf_page_footer_text_color": "#000000",
"format_pdf_table_header_text_color": "#000000",
"format_pdf_table_header_background_color": "#FFFFFF",
"format_pdf_table_row_text_color": "#000000",
"format_pdf_table_row_background_color": "#FFFFFF",
"format_pdf_logo_source_id": "0",
"format_pdf_logo_source": "",
"format_pdf_logo_width": "0",
"format_pdf_logo_height": "15",
"format_pdf_logo_align": "R",
"format_pdf_row_images_width": "15",
"format_pdf_row_images_height": "15",
"format_pdf_row_images_add_link": "0",
"format_pdf_row_dont_page_break_order_lines": "0",
"format_html_display_column_names": "1",
"format_html_repeat_header_last_line": "0",
"format_html_font_size": "13",
"format_html_header_text": "",
"format_html_footer_text": "",
"format_html_cols_align": "L",
"format_html_header_text_color": "#000000",
"format_html_footer_text_color": "#000000",
"format_html_table_header_text_color": "#000000",
"format_html_table_header_background_color": "#FFFFFF",
"format_html_table_row_text_color": "#000000",
"format_html_table_row_background_color": "#FFFFFF",
"format_html_row_images_width": "100",
"format_html_row_images_height": "100",
"format_html_images_add_link": "0",
"format_html_custom_css": "",
"all_products_from_order": "1",
"skip_refunded_items": "0",
"skip_suborders": "0",
"export_refunds": "0",
"export_matched_items": "0",
"date_format": "Y.m.d",
"time_format": "",
"sort_direction": "DESC",
"sort": "order_id",
"format_number_fields": "1",
"export_all_comments": "0",
"export_refund_notes": "0",
"strip_tags_product_fields": "0",
"strip_html_tags": "0",
"round_item_tax_rate": "0",
"cleanup_phone": "0",
"convert_serialized_values": "0",
"enable_debug": "0",
"billing_details_for_shipping": "0",
"custom_php": "1",
"custom_php_code": "if (!function_exists(\u0027format_order_total\u0027)) {\r\n function format_order_total($value, $order) {\r\n \/\/ Get the _order_total value\r\n $order_total = get_post_meta($order->get_id(), \u0027_order_total\u0027, true);\r\n\r\n \/\/ Replace the decimal point with a comma\r\n $formatted_total = str_replace(\u0027.\u0027, \u0027,\u0027, $order_total);\r\n\r\n return $formatted_total;\r\n }\r\n}\r\n\r\nadd_filter(\u0027woe_get_order_value_order_total_formatted\u0027, \u0027format_order_total\u0027, 10, 2);\r\n\r\n\r\nif (!function_exists(\u0027get_pirkejas_value\u0027)) {\r\n function get_pirkejas_value($value, $order) {\r\n \/\/ Get the value of the \u0027businessname\u0027 field\r\n $businessname = get_post_meta($order->get_id(), \u0027businessname\u0027, true);\r\n\r\n \/\/ Check if \u0027businessname\u0027 has a value\r\n if (!empty($businessname)) {\r\n $value = \u0027\"\u0027 . $businessname . \u0027\"\u0027;\r\n } else {\r\n \/\/ Get first and last names if \u0027businessname\u0027 is empty\r\n $first_name = get_post_meta($order->get_id(), \u0027_billing_first_name\u0027, true);\r\n $last_name = get_post_meta($order->get_id(), \u0027_billing_last_name\u0027, true);\r\n $value = \u0027\"\u0027 . $first_name . \u0027 \u0027 . $last_name . \u0027\"\u0027;\r\n }\r\n\r\n return $value;\r\n }\r\n}\r\n\r\nadd_filter(\u0027woe_get_order_value_pirkejas\u0027, \u0027get_pirkejas_value\u0027, 10, 2);\r\n\r\nif (!function_exists(\u0027calculate_pvm_suma\u0027)) {\r\n function calculate_pvm_suma($value, $order) {\r\n \/\/ Get the value of the \u0027_order_total\u0027 field\r\n $order_total = get_post_meta($order->get_id(), \u0027_order_total\u0027, true);\r\n\r\n \/\/ Calculate the PVM amount using the formula\r\n $pvm_suma = floatval($order_total) - (floatval($order_total) \/ 1.21);\r\n\r\n \/\/ Format the result to two decimal places with a comma as the decimal separator\r\n $value = number_format($pvm_suma, 2, \u0027,\u0027, \u0027\u0027);\r\n\r\n return $value;\r\n }\r\n}\r\n\r\nadd_filter(\u0027woe_get_order_value_pvm_suma\u0027, \u0027calculate_pvm_suma\u0027, 10, 2);\r\n\r\nif (!function_exists(\u0027calculate_suma_be_pvm\u0027)) {\r\n function calculate_suma_be_pvm($value, $order) {\r\n \/\/ Get the value of the \u0027_order_total\u0027 field\r\n $order_total = get_post_meta($order->get_id(), \u0027_order_total\u0027, true);\r\n\r\n \/\/ Calculate the sum without PVM\r\n $suma_be_pvm = floatval($order_total) \/ 1.21;\r\n\r\n \/\/ Format the result to two decimal places with a comma as the decimal separator\r\n $value = number_format($suma_be_pvm, 2, \u0027,\u0027, \u0027\u0027);\r\n\r\n return $value;\r\n }\r\n}\r\n\r\nadd_filter(\u0027woe_get_order_value_suma_be_pvm\u0027, \u0027calculate_suma_be_pvm\u0027, 10, 2);",
"mark_exported_orders": "0",
"export_unmarked_orders": "0",
"summary_report_by_products": "0",
"duplicated_fields_settings": {
"products": {
"repeat": "inside_one_cell",
"populate_other_columns": "1",
"max_cols": "10",
"group_by": "product",
"line_delimiter": "\\n"
},
"coupons": {
"repeat": "inside_one_cell",
"max_cols": "10",
"group_by": "product",
"line_delimiter": "\\n"
}
},
"summary_report_by_customers": "0",
"order_fields": [
{
"segment": "coupons",
"key": "coupons",
"colname": "Coupons",
"label": "Coupons",
"format": "undefined"
},
{
"segment": "products",
"key": "products",
"colname": "Products",
"label": "Products",
"format": "undefined"
},
{
"segment": "common",
"key": "plain_orders_pirkejas",
"label": "pirkejas",
"format": "",
"colname": "Pirkejas"
},
{
"segment": "common",
"key": "order_date",
"label": "Order Date",
"format": "date",
"colname": "Order Date"
},
{
"segment": "ship_calc",
"key": "plain_orders_order_total_formatted",
"label": "order_total_formatted",
"format": "",
"colname": "Order Total (Formatted)"
},
{
"segment": "common",
"key": "order_id",
"label": "Order ID",
"format": "number",
"colname": "Order ID"
},
{
"segment": "common",
"key": "order_date",
"label": "Order Date",
"format": "date",
"colname": "Order Date"
},
{
"segment": "totals",
"key": "plain_orders_pvm_suma",
"label": "pvm_suma",
"format": "",
"colname": "PVM suma"
},
{
"segment": "totals",
"key": "plain_orders_suma_be_pvm",
"label": "suma_be_pvm",
"format": "",
"colname": "Suma be PVM"
},
{
"segment": "totals",
"key": "static_field_2",
"label": "0",
"format": "",
"colname": "0",
"value": "0"
},
{
"segment": "ship_calc",
"key": "plain_orders_businesscode",
"label": "businesscode",
"format": "",
"colname": "Im. Kodas"
},
{
"segment": "ship_calc",
"key": "plain_orders_businessvat",
"label": "businessvat",
"format": "",
"colname": "PVM kodas"
}
],
"order_product_fields": [
{
"label": "SKU",
"format": "string",
"colname": "SKU",
"default": 1,
"key": "sku"
},
{
"label": "Item #",
"format": "number",
"colname": "Item #",
"default": 1,
"key": "line_id"
},
{
"label": "Item Name",
"format": "string",
"colname": "Item Name",
"default": 1,
"key": "name"
},
{
"label": "Quantity",
"format": "number",
"colname": "Quantity",
"default": 1,
"key": "qty"
},
{
"label": "Item Cost",
"format": "money",
"colname": "Item Cost",
"default": 1,
"key": "item_price"
}
],
"order_coupon_fields": [
{
"label": "Coupon Code",
"format": "string",
"colname": "Coupon Code",
"default": 1,
"key": "code"
},
{
"label": "Discount Amount",
"format": "money",
"colname": "Discount Amount",
"default": 1,
"key": "discount_amount"
},
{
"label": "Discount Amount Tax",
"format": "money",
"colname": "Discount Amount Tax",
"default": 1,
"key": "discount_amount_tax"
}
],
"id": 9,
"post_type": "shop_order",
"export_rule_field": "date",
"export_filename": "Flowery-Pardavimai-{from_date}-{to_date}.csv",
"summary_row_title": "Total"
}Editor is loading...
Leave a Comment