Closed kenil802 closed 2 years ago
Re-opening this issue
Hence I have re-open this issue
After clicking on the "Remunerate tool" button the things are working fine see the screenshot: https://www.screencast.com/t/oqcLXwlmhn0n
Hence, I have closed the issue and put a fixed label.
The client has shared a fix where the renumerate numbers do not renumber the past subscriptions.
The “Renumerate” tool (that is clunky English – it would be better called “Renumber”) does not renumber past Subscriptions.
When a new subscription is taken out, the parent order and the subscription are correctly given sequential numbers by your plugin, just as they would have without it. But the Renumerate tool only renumbers the parent orders, leaving the subscriptions alone. That could cause a future subscription or order to end up with the same number as a past subscription.
The following simple change will fix the problem:
--- a/includes/class-alg-wc-custom-order-numbers-core.php +++ b/includes/class-alg-wc-custom-order-numbers-core.php @@ -259,7 +259,7 @@ if ( ! class_exists( 'Alg_WC_Custom_Order_Numbers_Core' ) ) : $block_size = 512; while ( true ) { $args = array(
Link: https://wordpress.org/support/topic/renumerate-tool-and-subscriptions/#post-13842603