• Hi,

    In you code

    $order->add_order_note( sprintf( __( ‘License delivery failed: Could not find enough licenses in stock (Current stock: %d | Required %d)’ ), $neededAmount, $availableStock ) );

    Current stock and Required are mixed up.
    Also please add a product name, because order can contains few products.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Note when there are no enough keys’ is closed to new replies.