Commit cdae04ef authored by Reinhold Kainhofer's avatar Reinhold Kainhofer

Implement basic ordernumber assignment, properly add options to WooCommerce settings pages;

What is still missing is the detection whether an order is new or not. Old orders without ordernumbers should NOT be assigned a new ordernumber... No idea how I can find out this aspect
parent b46a2440
<div class="wrap">
<h2>OpenTools Advanced Ordernumbers</h2>
<form method="post" action="options.php">
<?php @settings_fields('create_ordernumbers-group'); ?>
<?php @do_settings_fields('create_ordernumbers-group'); ?>
<table class="form-table">
<tr valign="top">
<th scope="row"><label for="customize_ordernumbers">Customize Order Numbers</label></th>
<td><input type="text" name="customize_ordernumbers" id="customize_ordernumbers" value="<?php echo get_option('customize_ordernumbers'); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row"><label for="ordernumber_format">Order Number Format</label></th>
<td><input type="text" name="ordernumber_format" id="ordernumber_format" value="<?php echo get_option('ordernumber_format'); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row"><label for="ordernumber_counter_scope">Scope of the Counter</label></th>
<td><input type="text" name="ordernumber_counter_scope" id="ordernumber_counter_scope" value="<?php echo get_option('ordernumber_counter_scope'); ?>" /></td>
</tr>
</table>
<?php @submit_button(); ?>
</form>
</div>
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment