Skip to content
Snippets Groups Projects
Commit b6e94e3a authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Add screenshots for the wordpress plugins repo; TODO for wp_load_alloptions bug

parent 8b39d395
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,8 @@ class OrdernumberHelperWooCommerce extends OrdernumberHelper { ...@@ -81,6 +81,8 @@ class OrdernumberHelperWooCommerce extends OrdernumberHelper {
function getAllCounters($type) { function getAllCounters($type) {
$counters = array(); $counters = array();
$pfxlen = strlen(self::$ordernumber_counter_prefix ); $pfxlen = strlen(self::$ordernumber_counter_prefix );
// TODO: BUG: wp_load_alloptions does NOT load non-autoload options.
// However, we switched all counters to non-autoload, so they will not appear any more!
foreach (wp_load_alloptions() as $name => $value) { foreach (wp_load_alloptions() as $name => $value) {
if (substr($name, 0, $pfxlen) == self::$ordernumber_counter_prefix) { if (substr($name, 0, $pfxlen) == self::$ordernumber_counter_prefix) {
$parts = explode('-', substr($name, $pfxlen), 2); $parts = explode('-', substr($name, $pfxlen), 2);
......
...@@ -69,6 +69,11 @@ The Advanced Ordernumbers for WooCommerce plugin supports some invoicing plugins ...@@ -69,6 +69,11 @@ The Advanced Ordernumbers for WooCommerce plugin supports some invoicing plugins
== Screenshots == == Screenshots ==
1. Different order and invoice numbers are possible. In the free (basic) version, only the "#" format with one running counter is possible. Custom variables like [year] etc. are only supported in the Advanced (paid) version.
2. The configuration screen of the plugin (with annotations/instructions).
3. The advanced version also allows multiple concurrent counters, like counters per customer country.
4. The configuation screen of the advanced (paid) plugin.
5. Custom variable definitions in the advanced (paid) plugin.
== Changelog == == Changelog ==
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment