@@ -85,11 +85,12 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
...
@@ -85,11 +85,12 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
),
),
array(
array(
'title'=>self::__('Order number format'),
'title'=>self::__('Order number format'),
'desc'=>self::__('The format for the order numbers (variables can be entered as [...], the counter is indicated by the #). To use a different counter name than displayed, put the custom counter name after a |, e.g. "[year]-[month]/#|[year]" to use the month in the order number, but reset the counter only yearly.'),
'desc'=>self::__('The format for the order numbers (variables can be entered as [...], the counter is indicated by the #). To use a different counter name than displayed, put the custom counter name after a |, e.g. "[year]-[month]/#|[year]" to use the month in the order number, but reset the counter only yearly. Advanced settings for the counter can be added as [#####:start/step], e.g. [#:100] to start new counters at 100, or [#/5] to increment the counter by 5. The number of # in the format determine how many digits are shown at least, e.g. [########] will always show at least 8 digits for the counter, e.g. 00000014.'),
'desc_tip'=>true,
'desc_tip'=>true,
'id'=>'ordernumber_format',
'id'=>'ordernumber_format',
'default'=>'#',
'default'=>'#',
'type'=>'text',
'type'=>'text',
'css'=>'width: 100%',
),
),
array(
array(
'title'=>self::__('Use global counter'),
'title'=>self::__('Use global counter'),
...
@@ -97,32 +98,32 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
...
@@ -97,32 +98,32 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
'desc_tip'=>true,
'desc_tip'=>true,
'id'=>'ordernumber_global',
'id'=>'ordernumber_global',
'type'=>'checkbox',
'type'=>'checkbox',
'default'=>'no'
'default'=>'no',
),
array(
'title'=>self::__('Counter Digits'),
'desc'=>self::__('Minimum number of digits for the number'),
'desc_tip'=>true,
'id'=>'ordernumber_padding',
'type'=>'number',
'default'=>'0'
),
array(
'title'=>self::__('Counter Start'),
'desc'=>self::__('Start value for each new counter'),
'desc_tip'=>true,
'id'=>'ordernumber_start',
'type'=>'number',
'default'=>'1'
),
array(
'title'=>self::__('Counter step'),
'desc'=>self::__('By how much the counter will be increased after each order. Typically 1.'),
'desc_tip'=>true,
'id'=>'ordernumber_step',
'type'=>'number',
'default'=>'1'
),
),
// array(
// 'title' => self::__( 'Counter Digits'),
// 'desc' => self::__( 'Minimum number of digits for the number'),
// 'desc_tip' => true,
// 'id' => 'ordernumber_padding',
// 'type' => 'number',
// 'default' => '0'
// ),
// array(
// 'title' => self::__( 'Counter Start'),
// 'desc' => self::__( 'Start value for each new counter'),
// 'desc_tip' => true,
// 'id' => 'ordernumber_start',
// 'type' => 'number',
// 'default' => '1'
// ),
// array(
// 'title' => self::__( 'Counter step'),
// 'desc' => self::__( 'By how much the counter will be increased after each order. Typically 1.'),
/* replace the variables in the given format. $type indicates the type of number, currently only 'ordernumber', because WooCommerce does not support invoices or customer numbers. We might allow the shop owner to customize the order password, though. */
/* replace the variables in the given format. $type indicates the type of number, currently only 'ordernumber', because WooCommerce does not support invoices or customer numbers. We might allow the shop owner to customize the order password, though. */