true, 'enhanced_select' => true, 'placeholder' => __( 'Select one or more statuses', 'woocommerce-pdf-invoices-packing-slips' ), ) ), array( 'type' => 'setting', 'id' => 'display_shipping_address', 'title' => __( 'Display shipping address', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'select', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'display_shipping_address', 'options' => array( '' => __( 'No' , 'woocommerce-pdf-invoices-packing-slips' ), 'when_different'=> __( 'Only when different from billing address' , 'woocommerce-pdf-invoices-packing-slips' ), 'always' => __( 'Always' , 'woocommerce-pdf-invoices-packing-slips' ), ), // 'description' => __( 'Display shipping address (in addition to the default billing address) if different from billing address', 'woocommerce-pdf-invoices-packing-slips' ), ) ), array( 'type' => 'setting', 'id' => 'display_email', 'title' => __( 'Display email address', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'checkbox', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'display_email', ) ), array( 'type' => 'setting', 'id' => 'display_phone', 'title' => __( 'Display phone number', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'checkbox', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'display_phone', ) ), array( 'type' => 'setting', 'id' => 'display_customer_notes', 'title' => __( 'Display customer notes', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'checkbox', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'display_customer_notes', 'store_unchecked' => true, 'default' => 1, ) ), array( 'type' => 'setting', 'id' => 'display_date', 'title' => __( 'Display invoice date', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'select', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'display_date', 'options' => array( '' => __( 'No' , 'woocommerce-pdf-invoices-packing-slips' ), 'invoice_date' => __( 'Invoice Date' , 'woocommerce-pdf-invoices-packing-slips' ), 'order_date' => __( 'Order Date' , 'woocommerce-pdf-invoices-packing-slips' ), ), ) ), array( 'type' => 'setting', 'id' => 'display_number', 'title' => __( 'Display invoice number', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'select', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'display_number', 'options' => array( '' => __( 'No' , 'woocommerce-pdf-invoices-packing-slips' ), 'invoice_number' => __( 'Invoice Number' , 'woocommerce-pdf-invoices-packing-slips' ), 'order_number' => __( 'Order Number' , 'woocommerce-pdf-invoices-packing-slips' ), ), 'description' => sprintf( '%s %s %s', __( 'Warning!', 'woocommerce-pdf-invoices-packing-slips' ), __( 'Using the Order Number as invoice number is not recommended as this may lead to gaps in the invoice number sequence (even when order numbers are sequential).', 'woocommerce-pdf-invoices-packing-slips' ), __( 'More information', 'woocommerce-pdf-invoices-packing-slips' ) ), ) ), array( 'type' => 'setting', 'id' => 'next_invoice_number', 'title' => __( 'Next invoice number (without prefix/suffix etc.)', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'next_number_edit', 'section' => 'invoice', 'args' => array( 'store' => 'invoice_number', 'size' => '10', 'description' => __( 'This is the number that will be used for the next document. By default, numbering starts from 1 and increases for every new document. Note that if you override this and set it lower than the current/highest number, this could create duplicate numbers!', 'woocommerce-pdf-invoices-packing-slips' ), ) ), array( 'type' => 'setting', 'id' => 'number_format', 'title' => __( 'Number format', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'multiple_text_input', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'number_format', 'fields' => array( 'prefix' => array( 'placeholder' => __( 'Prefix' , 'woocommerce-pdf-invoices-packing-slips' ), 'size' => 20, 'description' => __( 'to use the invoice year and/or month, use [invoice_year] or [invoice_month] respectively' , 'woocommerce-pdf-invoices-packing-slips' ), ), 'suffix' => array( 'placeholder' => __( 'Suffix' , 'woocommerce-pdf-invoices-packing-slips' ), 'size' => 20, 'description' => '', ), 'padding' => array( 'placeholder' => __( 'Padding' , 'woocommerce-pdf-invoices-packing-slips' ), 'size' => 20, 'type' => 'number', 'description' => __( 'enter the number of digits here - enter "6" to display 42 as 000042' , 'woocommerce-pdf-invoices-packing-slips' ), ), ), 'description' => __( 'note: if you have already created a custom invoice number format with a filter, the above settings will be ignored' , 'woocommerce-pdf-invoices-packing-slips' ), ) ), array( 'type' => 'setting', 'id' => 'reset_number_yearly', 'title' => __( 'Reset invoice number yearly', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'checkbox', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'reset_number_yearly', ) ), array( 'type' => 'setting', 'id' => 'my_account_buttons', 'title' => __( 'Allow My Account invoice download', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'select', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'my_account_buttons', 'options' => array( 'available' => __( 'Only when an invoice is already created/emailed' , 'woocommerce-pdf-invoices-packing-slips' ), 'custom' => __( 'Only for specific order statuses (define below)' , 'woocommerce-pdf-invoices-packing-slips' ), 'always' => __( 'Always' , 'woocommerce-pdf-invoices-packing-slips' ), 'never' => __( 'Never' , 'woocommerce-pdf-invoices-packing-slips' ), ), 'custom' => array( 'type' => 'multiple_checkboxes', 'args' => array( 'option_name' => $option_name, 'id' => 'my_account_restrict', 'fields' => $this->get_wc_order_status_list(), ), ), ) ), array( 'type' => 'setting', 'id' => 'invoice_number_column', 'title' => __( 'Enable invoice number column in the orders list', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'checkbox', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'invoice_number_column', ) ), array( 'type' => 'setting', 'id' => 'disable_free', 'title' => __( 'Disable for free orders', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'checkbox', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'disable_free', 'description' => sprintf(__( "Disable document when the order total is %s", 'woocommerce-pdf-invoices-packing-slips' ), function_exists('wc_price') ? wc_price( 0 ) : 0 ), ) ), array( 'type' => 'setting', 'id' => 'use_latest_settings', 'title' => __( 'Always use most current settings', 'woocommerce-pdf-invoices-packing-slips' ), 'callback' => 'checkbox', 'section' => 'invoice', 'args' => array( 'option_name' => $option_name, 'id' => 'use_latest_settings', 'description' => __( "When enabled, the document will always reflect the most current settings (such as footer text, document name, etc.) rather than using historical settings.", 'woocommerce-pdf-invoices-packing-slips' ) . "
" . __( "Caution: enabling this will also mean that if you change your company name or address in the future, previously generated documents will also be affected.", 'woocommerce-pdf-invoices-packing-slips' ), ) ), ); // remove/rename some fields when invoice number is controlled externally if( apply_filters('woocommerce_invoice_number_by_plugin', false) ) { $remove_settings = array( 'next_invoice_number', 'number_format', 'reset_number_yearly' ); foreach ($settings_fields as $key => $settings_field) { if (in_array($settings_field['id'], $remove_settings)) { unset($settings_fields[$key]); } elseif ( $settings_field['id'] == 'display_number' ) { // alternate description for invoice number $invoice_number_desc = __( 'Invoice numbers are created by a third-party extension.', 'woocommerce-pdf-invoices-packing-slips' ); if ( $config_link = apply_filters( 'woocommerce_invoice_number_configuration_link', null ) ) { $invoice_number_desc .= ' '.sprintf(__( 'Configure it here.', 'woocommerce-pdf-invoices-packing-slips' ), esc_attr( $config_link ) ); } $settings_fields[$key]['args']['description'] = ''.$invoice_number_desc.''; } } } // allow plugins to alter settings fields $settings_fields = apply_filters( 'wpo_wcpdf_settings_fields_documents_invoice', $settings_fields, $page, $option_group, $option_name ); WPO_WCPDF()->settings->add_settings_fields( $settings_fields, $page, $option_group, $option_name ); return; } } endif; // class_exists return new Invoice(); Winkel - Suskes Baby & Kinderproducten

Winkel

Home/Winkel

Toont alle 4 resultaten

Sort by:
Shopping Cart
Close

Geen producten in de winkelwagen.