vyskoczilova / woocommerce-payforpayment

WordPress plugin WooCommerce Pay for Payment
13 stars 10 forks source link

Completely disable this functionality for some payments #46

Closed illycz closed 5 years ago

illycz commented 5 years ago

I have implemented CSOB paymentgateway and within you plugin it's not working. Is it possible completely remove payforpayment functionality for some payments?

This notices from admin maybe help why:

Notice: Undefined index: woocommerce_wc_monet_payment_gateway_pay4pay_item_title in /Users/illy/Sites/_Mamp/wearespell/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay-admin.php on line 255

Notice: Undefined index: woocommerce_wc_monet_payment_gateway_pay4pay_charges_fixed in /Users/illy/Sites/_Mamp/wearespell/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay-admin.php on line 256

Notice: Undefined index: woocommerce_wc_monet_payment_gateway_pay4pay_charges_percentage in /Users/illy/Sites/_Mamp/wearespell/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay-admin.php on line 262

Notice: Undefined index: woocommerce_wc_monet_payment_gateway_pay4pay_charges_minimum in /Users/illy/Sites/_Mamp/wearespell/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay-admin.php on line 263

Notice: Undefined index: woocommerce_wc_monet_payment_gateway_pay4pay_charges_maximum in /Users/illy/Sites/_Mamp/wearespell/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay-admin.php on line 264

Thanks

vyskoczilova commented 5 years ago

Hi, what's your setting page name in the WP admin? My plugin checks for types:

If nothing is matched it should die with a notice.

illycz commented 5 years ago

Sorry Karolina, my mistake, it wasn't a problem within your plugin.