2 functions within the plugin: WooCommerce PDF Invoices & Packing Slips
- or -
Post a project like this1844
€20(approx. $21)
- Posted:
- Proposals: 2
- Remote
- #2329995
- Awarded
Description
Experience Level: Entry
I need 2 (simple) extra functions within the plugin WooCommerce plugin: "WooCommerce PDF Invoices & Packing Slips".
I clearly explained both tasks in the attached screenshot. So it's easy to understand what I need.
1. An extra function to email the invoice also to other (multiple) email addresses.
2. An extra function to email the packing slip to other (multiple) email addresses. I already have a short function which makes it possible to send a packing slip to the admin email address. This function was not in the standard plugin. See below. So I need an extra function on that.
-------
// Extra feature packing slip
function wps_packing_slip($settings_fields, $page, $option_group, $option_name)
{
$option_name = 'wpo_wcpdf_documents_settings_packing-slip';
$emails['new_order'] = sprintf('%s (%s)', 'New order', __( 'Admin email', 'woocommerce-pdf-invoices-packing-slips' ) );
$settings_fields[] = array(
'type' => 'setting',
'id' => 'attach_to_email_ids',
'title' => __( 'Attach to:', 'woocommerce-pdf-invoices-packing-slips' ),
'callback' => 'multiple_checkboxes',
'section' => 'packing_slip',
'args' => array(
'option_name' => $option_name,
'id' => ['attach_to_email_ids', 'dannymarquering@hotmail.com'],
'fields' => $emails,
'description' => '',
)
);
return $settings_fields;
}
add_filter( 'wpo_wcpdf_settings_fields_documents_packing_slip', 'wps_packing_slip' );
I clearly explained both tasks in the attached screenshot. So it's easy to understand what I need.
1. An extra function to email the invoice also to other (multiple) email addresses.
2. An extra function to email the packing slip to other (multiple) email addresses. I already have a short function which makes it possible to send a packing slip to the admin email address. This function was not in the standard plugin. See below. So I need an extra function on that.
-------
// Extra feature packing slip
function wps_packing_slip($settings_fields, $page, $option_group, $option_name)
{
$option_name = 'wpo_wcpdf_documents_settings_packing-slip';
$emails['new_order'] = sprintf('%s (%s)', 'New order', __( 'Admin email', 'woocommerce-pdf-invoices-packing-slips' ) );
$settings_fields[] = array(
'type' => 'setting',
'id' => 'attach_to_email_ids',
'title' => __( 'Attach to:', 'woocommerce-pdf-invoices-packing-slips' ),
'callback' => 'multiple_checkboxes',
'section' => 'packing_slip',
'args' => array(
'option_name' => $option_name,
'id' => ['attach_to_email_ids', 'dannymarquering@hotmail.com'],
'fields' => $emails,
'description' => '',
)
);
return $settings_fields;
}
add_filter( 'wpo_wcpdf_settings_fields_documents_packing_slip', 'wps_packing_slip' );
Danny M.
100% (5)Projects Completed
5
Freelancers worked with
5
Projects awarded
88%
Last project
15 Oct 2019
Netherlands
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies