__( 'Edit Form', 'formipay' ), 'formipay-product' => __( 'Edit Product', 'formipay' ), 'formipay-coupon' => __( 'Edit Coupon', 'formipay' ), 'formipay-access' => __( 'Edit Access', 'formipay' ) ]; wp_enqueue_style( 'formipay-admin-global', FORMIPAY_URL . 'admin/assets/css/admin-global.css', [], FORMIPAY_VERSION, 'all'); wp_enqueue_style( 'sweetalert2', FORMIPAY_URL . 'vendor/SweetAlert2/sweetalert2.min.css', [], '11.14.4', 'all'); wp_enqueue_script( 'sweetalert2', FORMIPAY_URL . 'vendor/SweetAlert2/sweetalert2.min.js', ['jquery'], '11.14.4', true); if(strpos($current_screen->id, 'formipay') !== false){ wp_enqueue_style( 'formipay-admin-pages', FORMIPAY_URL . 'admin/assets/css/admin-pages.css', [], FORMIPAY_VERSION, 'all' ); wp_enqueue_style( 'choices', FORMIPAY_URL . 'vendor/ChoicesJS/choices.min.css', [], FORMIPAY_VERSION, 'all' ); wp_enqueue_style( 'gridjs', FORMIPAY_URL . 'vendor/GridJS/gridjs.mermaid.min.css', [], '6.2.0', 'all' ); wp_enqueue_script( 'choices', FORMIPAY_URL . 'vendor/ChoicesJS/choices.min.js', [], FORMIPAY_VERSION, true ); wp_enqueue_script( 'formipay-admin-pages', FORMIPAY_URL . 'admin/assets/js/admin-pages.js', ['jquery'], FORMIPAY_VERSION, true ); wp_enqueue_script( 'gridjs', FORMIPAY_URL . 'vendor/GridJS/gridjs.production.min.js', ['jquery'], '6.2.0', true ); } if(in_array($current_screen->post_type, array_keys($formipayCPTs)) && $current_screen->base == 'post'){ wp_enqueue_style( 'formipay-classic-editor', FORMIPAY_URL . 'admin/assets/css/classic-editor.css', [], FORMIPAY_VERSION, 'all' ); wp_enqueue_script( 'formipay-classic-editor', FORMIPAY_URL . 'admin/assets/js/classic-editor.js', ['jquery'], FORMIPAY_VERSION, true); wp_enqueue_script( 'formipay-screen-menu', FORMIPAY_URL . 'admin/assets/js/admin-all-post-type.js', ['jquery'], FORMIPAY_VERSION, true); wp_localize_script( 'formipay-screen-menu', 'formipay_admin', [ 'site_url' => site_url(), 'page_title' => $formipayCPTs[$current_screen->post_type] ] ); } } public function admin_global_custom_js() { global $pagenow, $current_screen; ?> 'thanks', 'thankyou_style' => 'receipt', 'thankyou_page_container_bg_color' => '#808080', 'thankyou_page_wrapper_bg_color' => '#ffffff', 'thankyou_page_wrapper_max_width' => '600', 'thankyou_confirmation_dropzone_color' => '#cccccc', 'thankyou_confirmation_dropzone_text_color' => '#808080', 'thankyou_confirmation_dropzone_instruction' => 'Drag & drop a file here or click to select one', 'thankyou_confirmation_submit_button' => 'Upload', 'cod_instruction_thankyou' => '
Your package will be shipped as soon as possible. Please make sure your cash of {{grand_total}} will be prepared and you can pay it to the courier who delivers your {{product_name}}.
', 'cod_instruction_whatsapp' => 'I will prepare the cash of {{grand_total}} for paying the order to the courier who delivers my {{product_name}}.', 'cod_confirmation_page_group' => '', 'cod_confirmation_page_content' => 'Here is your order details:
{{order_details}}
Please confirm if the package has been arrived
{{confirmation_form}}
', 'cod_confirmation_page_width' => '600', 'cod_confirmation_table_alignment' => 'left', 'cod_confirmation_form_agreement' => 'I have receipt the package and pay as billed to the courier.', 'cod_confirmation_form_button' => 'Confirm', 'notification_email_footer' => 'You got this email because of ordering our products in Formipay.
Ignore this email if it was not you.
Hello Admin,
A new order has been placed and is currently on hold, awaiting payment from the buyer.
Buyer Name: {{buyer_name}}
Order ID: {{order_id}}
Order Status: On Hold
{{order_details}}
Please review the order and follow up with the buyer to encourage them to complete their payment.
Best regards,
Your E-commerce Team
', 'notification_email_buyer_on_hold_group_header' => '', 'notification_email_buyer_on_hold_toggle' => true, 'notification_email_buyer_on_hold_title' => 'Your Order is On Hold: Action Needed', 'notification_email_buyer_on_hold_content' => 'Hello {{buyer_name}},
Thank you for your recent order! Your order is currently on hold because we have not yet received your payment.
Order ID:{{order_id}}
Order Status:On Hold
Payment Timeout:{{payment_timeout}}
{{order_details}}
Please complete your payment within the next {{payment_timeout}} to avoid cancellation. If you have any questions, feel free to reach out.
Thank you for shopping with us!
Best,
Your E-commerce Team
', 'notification_email_admin_payment_confirm_group_header' => '', 'notification_email_admin_payment_confirm_toggle' => true, 'notification_email_admin_payment_confirm_title' => 'Payment Confirmed for Order: Immediate Attention Required', 'notification_email_admin_payment_confirm_content' => 'Hello Admin,
The buyer has confirmed payment for the following order:Buyer Name: {{buyer_name}}
Buyer Name:**Buyer Name:* {{buyer_name}}
Order ID:**Order ID: {{order_id}}
Order Status:Order Status: Payment Confirmed
{{order_details}}
Please take the necessary steps to process this order and prepare for shipment.
Best regards,
Your E-commerce Team
', 'notification_email_buyer_payment_confirm_group_header' => '', 'notification_email_buyer_payment_confirm_toggle' => true, 'notification_email_buyer_payment_confirm_title' => 'Payment Confirmed for Your Order', 'notification_email_buyer_payment_confirm_content' => 'Hello {{buyer_name}},
We\'re excited to let you know that your payment has been confirmed!
Order ID: {{order_id}}
Order Status: Payment Confirmed
{{order_details}}
Our team is now preparing your order for shipment. You will receive another update once your items are on their way!
Thank you for choosing us!
Best,
Your E-commerce Team
Hello Admin,
The following order has been successfully completed:
Buyer Name: {{buyer_name}}
Order ID: {{order_id}}
Order Status: Completed
{{order_details}}
No further action is required. Thank you for your continued support!
Best regards,
Your E-commerce Team
Hello {{buyer_name}},
Thank you for your order! We are pleased to inform you that your order has been completed.
Order ID: {{order_id}}
Order Status: Completed
{{order_details}}
We hope you enjoy your purchase! If you have any feedback or questions, please let us know.
Best,
Your E-commerce Team