We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b47d3a commit 4497baaCopy full SHA for 4497baa
public/class-paystack-forms-public.php
@@ -947,7 +947,8 @@ function kkd_pff_paystack_form_shortcode($atts)
947
<input type="hidden" value="'.$amount.'" id="pf-qamount"/>
948
<select class="form-control" id="pf-quantity" name="pf-quantity" >';
949
$max = $quantity + 1;
950
- if($max > ($stock +1)){
+
951
+ if($max > ($stock +1) && $useinventory == 'yes'){
952
$max = $stock + 1 ;
953
}
954
for ($i=1; $i < $max; $i++) {
0 commit comments