__('General plugin settings', 'easy-woocommerce-auto-sku-generator'), 'type' => 'title', 'desc' => __('On this page you can configure sku', 'easy-woocommerce-auto-sku-generator'), 'id' => 'skuautoffxfid', ); $ffxf_settings_sku[] = array( 'title' => __('Characters', 'easy-woocommerce-auto-sku-generator'), 'desc_tip' => __('SKU prefix and product ID are not counted', 'easy-woocommerce-auto-sku-generator'), 'id' => 'skuautoffxf_auto_number', 'type' => 'number', 'custom_attributes' => array( 'min' => 0, 'step' => 1, ), 'default' => '5', 'class' => 'manage_stock_field', 'css' => 'display:block; width:50px;', 'desc' => __('Specify the number of characters in SKU', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array( 'name' => __('Prefix SKU', 'easy-woocommerce-auto-sku-generator'), 'type' => 'text', 'default' => '', 'placeholder' => 'For example BN_', 'desc_tip' => __('Characters in the prefix are not assigned to the total number of characters (field above)', 'easy-woocommerce-auto-sku-generator'), 'id' => 'skuautoffxf_auto_prefix', 'css' => 'width:100%;display:block', 'desc' => __('Enter any prefix that will be displayed at the beginning of the SKU.
For example BN_893267', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array( 'name' => __('Select SKU format', 'easy-woocommerce-auto-sku-generator'), 'id' => 'skuautoffxf_letters_and_numbers', 'type' => 'radio', 'default' => 'ffxf_numbers', 'css' => 'color:red', 'options' => array( 'ffxf_numbers' => __('Only numbers, for example - 893267', 'easy-woocommerce-auto-sku-generator'), 'ffxf_letters' => __('Only letters, for example - KSZHGD', 'easy-woocommerce-auto-sku-generator'), 'ffxf_landnum' => __('Letters and numbers, for example - 7SZ4G2', 'easy-woocommerce-auto-sku-generator'), 'ffxf_slug' => __('Use product slug, for example - your-product', 'easy-woocommerce-auto-sku-generator'), ), ); $ffxf_settings_sku[] = array( 'name' => __('Add product ID', 'easy-woocommerce-auto-sku-generator'), 'type' => 'checkbox', 'id' => 'skuautoffxf_auto_ID', 'css' => 'min-width:300px;display:block', 'desc' => __('If checked, product ID will be added to SKU', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array( 'name' => __('Take previous product', 'easy-woocommerce-auto-sku-generator'), 'type' => 'checkbox', 'id' => 'skuautoffxf_previous', 'css' => 'min-width:300px;display:block', 'desc' => __('Take into account the previous product', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array( 'name' => __('Duplicate SKUs', 'easy-woocommerce-auto-sku-generator'), 'type' => 'checkbox', 'id' => 'skuautoffxf_duplicate_sku', 'css' => 'min-width:300px;display:block', 'desc' => __('Allow identical SKUs. If enabled, some SKUs can be identical', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array( 'name' => __('SKU suffix', 'easy-woocommerce-auto-sku-generator'), 'type' => 'text', 'id' => 'skuautoffxf_suffix', 'css' => 'min-width:300px;display:block', 'placeholder' => 'For example "_SUF_"', 'desc_tip' => __('The suffix is set at the end of the SKU and can have different characters. We recommend using the suffix in combination with the "Additional number" option e.g. suffix "_" and additional number "001" then your SKU will have this format BN_893267_001.', 'easy-woocommerce-auto-sku-generator'), 'desc' => __('Enter any suffix that will appear at the end of the SKU.
For example BN_893267_SUF_', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array( 'name' => __('Additional number', 'easy-woocommerce-auto-sku-generator'), 'type' => 'number', 'id' => 'skuautoffxf_number_dop', 'css' => 'min-width:300px;display:block', 'placeholder' => 'For example "001"', 'desc_tip' => __('For example, you can set this field to 001 and then +1 will be added at the end of the SKU when the SKU is generated. In this way you can generate SKUs in order 001, 002, 003. We recommend using the suffix in combination with the "SKU suffix" option', 'easy-woocommerce-auto-sku-generator'), 'desc' => __('This number is applied at the end of the SKU for the mass generator and adds +1 at each step.
For example BN_893267_SUF_001', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array( 'name' => __('Format "Additional number"', 'easy-woocommerce-auto-sku-generator'), 'id' => 'skuautoffxf_format_an', 'type' => 'select', 'default' => 'ffxf_format_an', 'options' => array( 'ffxf_format_an' => __('For example: 008 → 009 → 0010 → 0011', 'easy-woocommerce-auto-sku-generator'), 'ffxf_format_an_up' => __('For example: 008 → 009 → 010 → 011', 'easy-woocommerce-auto-sku-generator'), ), 'desc_tip' => __('This option is experimental, and specifying "0" at the beginning may lead to incorrect results. This functionality will be improved over time', 'easy-woocommerce-auto-sku-generator'), 'desc' => __('In the previous field, you selected a value that starts with "0" so you can choose the generation format', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array( 'name' => __('Enable variant settings', 'easy-woocommerce-auto-sku-generator'), 'type' => 'checkbox', 'id' => 'skuautoffxf_variation_settings', 'css' => 'min-width:300px;display:block', 'desc' => __('If enabled, you can fine-tune the generation of variant SKU more precisely', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array( 'name' => __('Variation Separator', 'easy-woocommerce-auto-sku-generator'), 'type' => 'text', 'default' => '', 'placeholder' => 'For example "-"', 'id' => 'skuautoffxf_variation_separator', 'css' => 'width:100%;display:block', 'desc_tip' => __('This setting is responsible for the separator between the main SKU and the variation number.', 'easy-woocommerce-auto-sku-generator'), 'desc' => __('You can use the characters "/", "\", "|", "-", "--", ".", "&", "#", "$", "@" or another prefix "_var_".
For example BN_893267--01, BN_893267--02
Another example BN_893267_var_01, BN_893267_var_02', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array( 'name' => __('Variable product', 'easy-woocommerce-auto-sku-generator'), 'type' => 'checkbox', 'id' => 'skuautoffxf_auto_variant', 'css' => 'min-width:300px;display:block', 'desc' => __('Turn off generation of variable product', 'easy-woocommerce-auto-sku-generator'), ); $ffxf_settings_sku[] = array('type' => 'sectionend', 'id' => 'skuautoffxf'); return $ffxf_settings_sku; } else { return $settings; } } add_action('admin_print_footer_scripts', 'ffxf_action_javascript', 998); function ffxf_action_javascript() { ?>