diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index a2464ba9c..8a9f2e643 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -435,6 +435,7 @@ abstract class PaymentModuleCore extends Module $voucher->id_customer = $order->id_customer; $voucher->quantity = 1; + $voucher->quantity_per_user = 1; if ($voucher->add()) { // If the voucher has conditions, they are now copied to the new voucher