• Resolved rroncero

    (@rroncero)


    Hi,

    I have some orders that have remained pending payment and have generated an order number. I see that this behavior is normal, but I would like to know if it is possible to modify the next order number that must be generated. For example, the order with pending payment status has generated the number 304, so tell the plugin that the next order will generate this number 304 again. I have seen that in the wp_options table there is a field wt_last_order_number that has this number but if I modify it when placing a new order, it ignores it and generates 305. Any solution?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi rroncero,

    Thanks for reaching out.

    Our plugin works on an incremental counter, it checks the last placed order number and generates the next order number accordingly, any changes made to the previous order number will not change the sequence of the next order.

    You may use this code snippet to skip the order with the status “Pending payment” from generating a sequential order number.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.