Skip to content

Commit 76c3a01

Browse files
Fix for quantity field not loading when inventory payment is turned off
1 parent 8bdb503 commit 76c3a01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/class-paystack-forms-public.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,8 +947,8 @@ function kkd_pff_paystack_form_shortcode($atts)
947947
<select class="form-control" id="pf-quantity" name="pf-quantity" >';
948948
$max = $quantity + 1;
949949

950-
if($max > ($inventory +1) && $useinventory == 'yes'){
951-
$max = $inventory + 1 ;
950+
if($max > ($stock +1) && $useinventory == 'yes'){
951+
$max = $stock + 1 ;
952952
}
953953
for ($i=1; $i < $max; $i++) {
954954
echo ' <option value="'.$i.'">'.$i.'</option>';

0 commit comments

Comments
 (0)