Skip to content

Commit b205a9f

Browse files
authored
Merge pull request #57 from lukman008/master
Fix for quantity field not loading when inventory payment is turned off
2 parents ee4ab92 + 7b16a35 commit b205a9f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

paystack-forms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Payment Forms for Paystack
44
Plugin URI: https://github.com/PaystackHQ/Wordpress-Payment-forms-for-Paystack
55
Description: Payment Forms for Paystack allows you create forms that will be used to bill clients for goods and services via Paystack.
6-
Version: 3.3.5
6+
Version: 3.3.5.1
77
Author: Paystack
88
Author URI: http://paystack.com
99
License: GPL-2.0+

public/class-paystack-forms-public.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,8 @@ function kkd_pff_paystack_form_shortcode($atts)
947947
<input type="hidden" value="'.$amount.'" id="pf-qamount"/>
948948
<select class="form-control" id="pf-quantity" name="pf-quantity" >';
949949
$max = $quantity + 1;
950-
if($max > ($stock +1)){
950+
951+
if($max > ($stock +1) && $useinventory == 'yes'){
951952
$max = $stock + 1 ;
952953
}
953954
for ($i=1; $i < $max; $i++) {

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://paystack.com/demo
44
Tags: paystack, recurrent payments, nigeria, mastercard, visa, target, Naira, payments, verve, donation, church, NGO, form, contact form 7, form
55
Requires at least: 3.1
66
Tested up to: 5.2
7-
Stable tag: 3.3.5
7+
Stable tag: 3.3.5.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

0 commit comments

Comments
 (0)