https://www.ads-software.com/support/topic/work-with-conditional-payments-for-woocommerce/
This post describe the workflow
Some orders need manual approval and here we use conditional payments
But the order approval keep hiding other payment options even when condition is set to hide Order Approval, so what we need, when condition set to hide Order Approval then other payment options appear normally
]]>I’m using this plugin’s free version from past few months but I really want to know that how to show all payment methods by default and when user fills the address completely it removes the desired payment methods according to the conditions set up.
]]>Hi there
I have set that with lockal pickup the consumer can ONLY see the payment on delivery, while if he chooses the other shipping methods he can see the other payment methods (except Cod). However, I noticed that if I switch a shipping method, to correctly see the enabled payment method I have to reload the page, the refresh is not immediately
Best regards
]]>Hi and thanks for looking into my query.
This is the ruleset I’ve applied: https://pasteboard.co/Ck6DNhqOqssa.png
And as you can see the page that fits this conditions displays this as the payment methods: https://pasteboard.co/55zK87kD36jS.png
Other pages look like this: https://pasteboard.co/wY2YNI1A38xd.png
If someone could help figuring out why the creditcard options remains and how I could go about fixing it, that would be fantastic.
Thanks!
the condition works fine at checkout if it’s a new order – but if the customer goes to checkout via their my account – customer payment page the condition fails to execute giving them all payment options.
]]>Condition For Payment Plugin is not working well on my checkout page sir.
here is the screen record and screenshot of condition.
I want to disable Cash on delivery payment when customer type “Yangon” in City(billing). But it only work when i click one of the payments.
https://anycallmobilemm.com/wp-content/uploads/2023/12/Screen-Recording-2023-12-08-at-4.52.25-PM.mov
]]>I get a fatal error on my woocommerce cart-page when the plugin ‘Conditional Payment Methods For WooCommerce’ is active. But I need this plugin on my checkout page. How can I fix this? Is this an error in the plugin itself? How can I get rid of it?
Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, bool given in /data/sites/web/ytabe/www/wp-content/plugins/conditional-payment-methods-for-woocommerce/includes/rules/class-wc-cpm-by-location.php:178 Stack trace: #0 /data/sites/web/ytabe/www/wp-content/plugins/conditional-payment-methods-for-woocommerce/includes/rules/class-wc-cpm-by-location.php(178): array_keys(false) #1 /data/sites/web/ytabe/www/wp-content/plugins/conditional-payment-methods-for-woocommerce/includes/class-wc-cpm-controller.php(177): WC_CPM_By_Location->validate(Array) #2 /data/sites/web/ytabe/www/wp-includes/class-wp-hook.php(310): WC_CPM_Controller->filter_payment_gateways(Array) #3 /data/sites/web/ytabe/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #4 /data/sites/web/ytabe/www/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(163): apply_filters(‘woocommerce_ava…’, Array) #5 /data/sites/web/ytabe/www/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3921): WC_Payment_Gateways->get_available_payment_gateways() #6 /data/sites/web/ytabe/www/wp-includes/class-wp-hook.php(310): wc_get_pay_buttons(”) #7 /data/sites/web/ytabe/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array) #8 /data/sites/web/ytabe/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /data/sites/web/ytabe/www/wp-content/plugins/woocommerce/templates/cart/cart-totals.php(107): do_action(‘woocommerce_pro…’) #10 /data/sites/web/ytabe/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/data/sites/web…’) #11 /data/sites/web/ytabe/www/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2174): wc_get_template(‘cart/cart-total…’) #12 /data/sites/web/ytabe/www/wp-includes/class-wp-hook.php(310): woocommerce_cart_totals(”) #13 /data/sites/web/ytabe/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #14 /data/sites/web/ytabe/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /data/sites/web/ytabe/www/wp-content/plugins/woocommerce/templates/cart/cart.php(191): do_action(‘woocommerce_car…’) #16 /data/sites/web/ytabe/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/data/sites/web…’) #17 /data/sites/web/ytabe/www/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-cart.php(99): wc_get_template(‘cart/cart.php’) #18 /data/sites/web/ytabe/www/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Cart::output(Array) #19 /data/sites/web/ytabe/www/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(85): WC_Shortcodes::shortcode_wrapper(Array) #20 /data/sites/web/ytabe/www/wp-includes/shortcodes.php(433): WC_Shortcodes::cart(”, ”, ‘woocommerce_car…’) #21 [internal function]: do_shortcode_tag(Array) #22 /data/sites/web/ytabe/www/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(woocom…’, ‘do_shortcode_ta…’, ‘[woocommerce_ca…’) #23 /data/sites/web/ytabe/www/wp-includes/class-wp-hook.php(310): do_shortcode(‘[woocommerce_ca…’) #24 /data/sites/web/ytabe/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[woocommerce_ca…’, Array) #25 /data/sites/web/ytabe/www/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘<!– wp:shortco…’) #26 /data/sites/web/ytabe/www/wp-content/themes/kpot-theme/page.php(13): the_content() #27 /data/sites/web/ytabe/www/wp-includes/template-loader.php(106): include(‘/data/sites/web…’) #28 /data/sites/web/ytabe/www/wp-blog-header.php(19): require_once(‘/data/sites/web…’) #29 /data/sites/web/ytabe/www/index.php(17): require(‘/data/sites/web…’) #30 {main} thrown in/data/sites/web/ytabe/www/wp-content/plugins/conditional-payment-methods-for-woocommerce/includes/rules/class-wc-cpm-by-location.php
]]>Hi and thanks for the decent plugin.
I have a condition that applys to certain products (in this case courses) which I choose by variation-name (text), which works perfect.
As mentioned above, is it possible to add the condition to ALL products/courses that have this specific text in their variation? So I don′t have to choose every single product manually? There are many of them and there are 11 new courses every week, so it′s a lot of work ??
Thanks in advance!
Regards
Uli
]]>Hi there,
We’re having the following issue: our online getaway provider allows to show certain ‘featured’ payment options on the checkout as shown here:
https://snipboard.io/HOsS5C.jpg
The issue is, that these payment methods are escaping filtering by your plugin, see the screenshot here:
https://snipboard.io/J3vnCX.jpg
They should be hidden for COD delivery (they’re all online payments) yet after setting the filters like below:
https://snipboard.io/QjBLW2.jpg
(kurier pobranie = COD) they still appear on the checkout furthermore, there’s no option to choose eg. przelewy24_extra_154
Until recently everything was working correctly, we didn’t change anything in the shipping/payment settings for quite some time and discovered the faul when a client reported that she managed to order via COD and paid for the order via online getaway (so she paid two time – first time online and second time to the courier)
Your assistance on the above will be greatly appreciated!
]]>how can I implement this?
Scenario
Hi guys,
I just read the latest Woocommerce announcements, and the one regarding the HPOS caught my eye.
I wanted to activate the feature but I found your plugin listed as incompatible.
Is there a plan to make the plugin compatible in the future?
Thanks,
Ch
Hi there,
I met this issue for over 2 months, I set around 90-100 rules, but when I test it at checkout page, it won’t block any rule I set, my rule set mainly set based on address keyword and zip code, I tried to deactive all plugin except woocommerce and elementor, also default it to WP 2023 theme, still won’t block any rule I set. this is an old site over 3 years.
Could you help me to figure it out?
Thanks
]]>I want to enable only one payment method if a special shipping method is chosen. This works fine.
But the problem is that we sell gift cards without a shipping method (or another shipment method!) because they’re sent via email. When the ruleset is enabled, there is no payment method in the checkout for the gift cards. We use PW WooCommerce Gift Cards https://de.www.ads-software.com/plugins/pw-woocommerce-gift-cards/ for the gift cards
hi, great plugin but u have a doubt. option City (billing or shippping) rule “Contains” only support 1 city? i have tried several cities separated by comma and does not work, rule only works with a single city. Am doing something wrong?
]]>Plugin does not seem to work when creating manual orders with Woocommerce. I create an order, add items, fill in both billing/shipping details, and email invoice to customer. However, they get a link to pay and the plugin blocks payment options. (even when all conditions are met to allow payment options).
Basic functionality is working as intended. I set it up to include certain products. These products default to free shipping. Actions: disable payment method.
]]>we have an issue with Payment Method Fee, which is not showing on the total computation when changing shipping method and with only 1 payment method
We are using Pro vesion
]]>Our payment gateway disappeared from the checkout page for all customers (https://snipboard.io/DWtHdV.jpg). After doing some troubleshooting, I’ve identified the Conditional Payments for WooCommerce plugin as the culprit. Disabling other plugins and switching theme did not work. When I enable the “Disable all rulesets” option (https://snipboard.io/S9jOTw.jpg), the payment gateway reappears (https://snipboard.io/Xy6dsF.jpg). Deactivating the plugin also causes the gateway to reappear.
Interestingly, we were able to install a secondary gateway that is NOT affected by this plugin. With all rulesets enabled, notice that “Credit/Debit Card #1” (from the original screenshot) is still not showing, but “Credit/Debit Card #2” (the secondary gateway) is available (https://snipboard.io/xbVwYZ.jpg). The primary gateway is the only one used in the plugin rulesets.
We updated the plugin from version 2.3.2 to 2.4.1 on March 6. We first noticed the issue on March 11. I tried rolling the plugin back to version 2.3.2 which was unsuccessful.
Any ideas as to what might be happening? Thanks in advance for your help!
]]>Hi there!
Thanks for the plugin, it works but it generates the following error in the error_log file:
[16-Mar-2023 08:59:44 UTC] get_cart was called incorrectly. The Get cart function should not be called before the wp_loaded action. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action( ‘init’), WP_Hook->do_action, WP_Hook->apply_filters, WooCommerce_Multi_Inventory_Taxonomy->init, WooCommerce_Multi_Inventory_Taxonomy->add_custom_meta_fields, WC_Payment_Gateways->get_available_payment_gateways, apply_filters(‘woocommerce_available_payment_gateways’), WP_Hook->apply_filters, Woo_Conditional_Payments_Frontend->filter_payment_methods, Woo_Conditional_Payments_Frontend->filter_payment_methods validated, Woo_Conditional_Payments_Filters::filter_products, Woo_Conditional_Payments_Filters::_get_order_products, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
Could you please help me fix this?
Thank you.
]]>For the last two days the plugin is crashing several of our sites when the WooCommerce Paypal Plugin is installed and activated – different configurations. I had to deactivate the Paypal Plugin for the moment.
Very frustrating since they all are depended on the sales in the shops.
Really excited if others expierence these problems too at the moment.
First example: sing-jazz.de
Errorcode:
Fatal error: Uncaught Error: Call to a member function raw_price_filter() on null in /homepages/30/d41010632/htdocs/clickandbuilds/SingJazzmitAndreaVernier/wp-content/plugins/woocommerce-multilingual/inc/wcml-core-functions.php:110 Stack trace: #0 /homepages/30/d41010632/htdocs/clickandbuilds/SingJazzmitAndreaVernier/wp-content/plugins/conditional-payments-for-woocommerce/includes/frontend/class-woo-conditional-payments-frontend.php(296): wcml_convert_price(750) #1 /homepages/30/d41010632/htdocs/clickandbuilds/SingJazzmitAndreaVernier/wp-includes/class-wp-hook.php(308): Woo_Conditional_Payments_Frontend->convert_price(750) #2 /homepages/30/d41010632/htdocs/clickandbuilds/SingJazzmitAndreaVernier/wp-includes/plugin.php(205): WP_Hook->apply_filters(750, Array) #3 /homepages/30/d41010632/htdocs/clickandbuilds/SingJazzmitAndreaVernier/wp-content/plugins/conditional-payments-for-woocommerce/includes/class-conditional-payments-filters.php(419): apply_filters(‘wcp_convert_pri…’, 750) #4 /homepages/30/d41010632/htdocs/clickandb in /homepages/30/d41010632/htdocs/clickandbuilds/SingJazzmitAndreaVernier/wp-content/plugins/woocommerce-multilingual/inc/wcml-core-functions.php on line 110
With the following other plugins (WP 6.1.1)
Active PluginsAkismet Anti-Spam – 5.0.2By AutomatticConditional Payments for WooCommerce – 2.4.0By Lauri Karisola / WP TrioDisable & Remove Google Fonts – 1.5.2By Fonts PluginElementor – 3.11.2By Elementor.comElementor Pro – 3.11.3By Elementor.comEventON – 4.3.4By AshanJayGermanized for WooCommerce – 3.11.3By vendideroGermanized for WooCommerce Pro – 3.5.3By vendiderointellicon Elementor-KlickTipp Plugin – 1.19By Intellicon GmbHLearnDash LMS – 4.5.1.2By LearnDashLearnDash LMS – Elementor – 1.0.3By LearnDashLearnDash LMS – ProPanel – 2.1.4.2By LearnDashLearnDash LMS – WooCommerce Integration – 1.9.5By LearnDashLoco Translate – 2.6.3By Tim WhitlockMatomo Analytics – Ethical Stats. Powerful Insights. – 4.13.5By MatomoOne Stop Shop for WooCommerce – 1.3.5By vendideroPDF Invoices & Packing Slips for WooCommerce – 3.4.0By WP OvernightRank Math SEO – 1.0.109By Rank MathRank Math SEO PRO – 3.0.31By Rank MathUpdraftPlus – Backup/Restore – 1.22.24By UpdraftPlus.Com, DavidAndersonWooCommerce – 7.4.1By AutomatticWooCommerce Multilingual & Multicurrency – 5.1.2By OnTheGoSystemsWooCommerce Payments – 5.5.1By AutomatticWooCommerce Product Add-ons – 3.7.0By WooCommerceWPML Multilingual CMS – 4.5.14By OnTheGoSystemsWPML String Translation – 3.2.3By OnTheGoSystems
Second example: https://www.froach.de
Error Code: Just the common one. (Site is back, when the Paypal plugin or Conditional Payments are deactivated)
Es gab einen kritischen Fehler auf deiner Website.
Erfahre mehr über die Problembehandlung in WordPress.
With the following other plugins (WP 6.1.1)
Akismet Anti-Spam – 5.0.2By AutomatticBorlabs Cookie – Cookie Opt-in – 2.2.62By Borlabs GmbHConditional Payments for WooCommerce – 2.4.0By Lauri Karisola / WP TrioContact Form 7 – 5.7.4By Takayuki MiyoshiContact Form 7 Multilingual – 1.2.1By OnTheGoSystemsDisable & Remove Google Fonts – 1.5.2By Fonts PluginDuplicate Page – 4.5.1By mndpsingh287Elementor – 3.11.2By Elementor.comElementor Pro – 3.11.3By Elementor.comElementor Pro Form Widget – Pipedrive CRM – Integration – 1.7.0By itgalaxycompanyEssential Addons for Elementor – 5.6.0By WPDeveloperEssential Addons for Elementor – Pro – 5.4.5By WPDeveloperGermanized for WooCommerce – 3.11.3By vendiderohCaptcha for WordPress – 2.5.1By hCaptchaHummingbird Pro – 3.4.3By WPMU DEVMaspik – Spam blacklist – 0.7.9By yonifrePDF Invoices & Packing Slips for WooCommerce – 3.4.0By WP OvernightPrintful Integration for WooCommerce – 2.1.35By PrintfulRank Math SEO – 1.0.109By Rank MathRank Math SEO PRO – 3.0.31By Rank MathSendy Elements – 2.0.0By Jose SoteloSmush Pro – 3.12.5By WPMU DEVUltimate Carousel For Elementor – 2.1.7By Nasir AhmadUpdraftPlus – Backup/Restore – 2.16.21.1By UpdraftPlus.Com, DavidAndersonWooCommerce – 7.4.1By AutomatticWooCommerce Multilingual & Multicurrency – 5.1.2By OnTheGoSystemsWooCommerce Shipping & Tax – 2.2.3By WooCommerceWoo Discount Rules – 2.5.4By FlycartWP IE Buster – 1.4.1By QracWPML Media – 2.7.1By OnTheGoSystemsWPML Multilingual CMS – 4.5.14By OnTheGoSystemsWPML String Translation – 3.2.3By OnTheGoSystemsWPMU DEV Dashboard – 4.11.18By WPMU DEV
Tried to restrict paypal based on product in cart but I could still see paypal.
]]>Thanks for the great plugin, but it seems that it’s not compatible with price field, by adding a field with price into the checkout form.
any solution?
]]>Wrong plugin sorry
]]>Hi,
I’m using Conditional Payments to prevent Direct Bank Transfer from appearing under certain cart value thresholds (under those thresholds, Paypal/Stripe appear instead). However, sometimes I get a specific user who requests DBT for purchases under the default threshold I’ve set. It would be nice if I could enable a condition that allows me to specify a specific email/username as a condition, so I could enable DBT on a user-by-user basis, regardless of cart value.
Thanks!
]]>Hi,
This plugin creates several php errors without WP_DEBUG being activated and they are totally unnecessary for any user.
Please, remove them as they don’t make sense and are useless, except to fill the error log and confuse the user.
Thanks!
]]>Hi, What condition should I apply for the below:
Consider,
Product A (Need Cash on Delivery and Online payment both enable)
Product B (Need Online payment only enable).
Thank you
]]>Hi!
Really useful and great plugin.
Just wanna know if is it compatible with the last Woocommerce 6.0.0.
P.S. It will be nice if you can write the compatibility in the Detail Tab
]]>Plugin was awesome but Category based conditions is missing. Please update the plugin with the category based conditions.
]]>I often get this error in server logs, Here are some examples:
AH01071: Got error ‘PHP message: No shipping method in the order’, referer: https://www.endscuoio.com/wp-admin/
AH01071: Got error ‘PHP message: No shipping method in the order’, referer: https://www.endscuoio.com/wp-admin/edit.php?post_type=shop_order
AH01071: Got error ‘PHP message: No shipping method in the orderPHP message: No shipping method in the order’, referer: https://www.endscuoio.com/wp-admin/admin.php?page=convert-pro
AH01071: Got error ‘PHP message: No shipping method in the order’, referer: https://www.endscuoio.com/wp-admin/admin-ajax.php?action=wp_service_worker
AH01071: Got error ‘PHP message: No shipping method in the order’, referer: https://www.endscuoio.com/wp-admin/admin.php?page=convert-pro
AH01071: Got error ‘PHP message: No shipping method in the order’
Hi, I’m using the plugin and I have only applied a payment method in one product and another method in another.
The problem comes when those two products are put together in the cart. In that case, it would show the common payment methods if any, but since there are no common ones, no payment method is shown.
It also happened to me that all payment methods are displayed. Voiding the condition.
Does anyone know how to fix it?
Thanks
]]>After activating this plugin, there are a lot of error messages :
[Oct 22, 21:48:33] No products in the order
[Oct 22, 21:48:33] No products in the order
[Oct 22, 21:48:32] No products in the order
[Oct 22, 21:48:32] No products in the order
[Oct 22, 21:48:14] No products in the order
[Oct 22, 21:48:14] No products in the order
[Oct 22, 21:48:05] No products in the order
[Oct 22, 21:48:05] No products in the order
[Oct 22, 21:46:51] No products in the order
[Oct 22, 21:46:51] No products in the order
[Oct 22, 21:46:40] No products in the order
[Oct 22, 21:46:40] No products in the order
[Oct 22, 21:44:06] No products in the order
[Oct 22, 21:44:06] No products in the order
I would be very grateful for your help on this. Thank you.
]]>