From 426c491fc287bcdb27abf0dc50c3c060e487fa9e Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 12 Mar 2018 21:18:28 +0200 Subject: [PATCH] Support setting qty w/buy now links --- app/Http/Controllers/OnlinePaymentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/OnlinePaymentController.php b/app/Http/Controllers/OnlinePaymentController.php index 418d7cdce0..66b91b8b5c 100644 --- a/app/Http/Controllers/OnlinePaymentController.php +++ b/app/Http/Controllers/OnlinePaymentController.php @@ -390,7 +390,7 @@ class OnlinePaymentController extends BaseController 'product_key' => $product->product_key, 'notes' => $product->notes, 'cost' => $product->cost, - 'qty' => 1, + 'qty' => request()->quantity ?: (request()->qty ?: 1), 'tax_rate1' => $product->tax_rate1, 'tax_name1' => $product->tax_name1 ?: '', 'tax_rate2' => $product->tax_rate2,