miguelmd
Forum Replies Created
-
Forum: Plugins
In reply to: [Wallet for WooCommerce] Unset gateway if enough creditsHi there any uodates?
Did you try your code and work with insufficient credits?
Thanks
Forum: Plugins
In reply to: [Wallet for WooCommerce] Unset gateway if enough creditsHi there,
Still code doesnt show Paypal with insufficient credits (“Sorry, it seems that there are no available payment methods for your state…), the rest is OK now.
Thanks for help,
Forum: Plugins
In reply to: [Wallet for WooCommerce] Unset gateway if enough creditsYep. I did it and not worked. I also change the ID gateway for another gateway to try if paypal have somthing else (e.g. COD) and the same. so I think we are missing something to reactivate paypal when insuficcient credits…
How about something like the following at the end, (wether wallet is insuficient and partial payments need paypal to complete transation):
else {
if ( isset( $available_gateways[‘paypal’] ) {
return true;
}Thanks,
- This reply was modified 3 years, 10 months ago by miguelmd.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Unset gateway if enough creditsYes I disabled a snipet code that allow editing text:
“Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.”
and error disapears, but still gateway not showing up to complete partial payment…. and text is still appearing:
“Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.”
Forum: Plugins
In reply to: [Wallet for WooCommerce] Unset gateway if enough creditsThis errors appears only when credits are not enough and need partial payments again:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function change_payment_message(), 1 passed in …/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in …/code-snippets/php/snippet-ops.php(484) : eval()’d code:2 Stack trace: #0 /…/wp-includes/class-wp-hook.php(307): change_payment_message() #1 /home/263040.cloudwaysapps.com/rteckcjjzz/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters() #2 …/wp-content/plugins/woocommerce/templates/checkout/payment.php(33): apply_filters() #3 …/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home/263040.cl…’) #4 …/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2357): wc_get_t in ./wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()’d code on line 2
Forum: Plugins
In reply to: [Wallet for WooCommerce] Unset gateway if enough creditsThanks a lot!!! and wait for your help.
- This reply was modified 3 years, 10 months ago by miguelmd.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Unset gateway if enough creditsIt worked!! Iit was a typo from my end works fine whenever credits are enought, but show an error when dont and neeed the cheackout partial payment again:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function change_payment_message(), 1 passed in .../public_html/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in ---l/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code:2 Stack trace: #0 .../wp-includes/class-wp-hook.php(307): change_payment_message() #1 ---/wp-includes/plugin.php(191): WP_Hook->apply_filters() #2 ---/wp-content/plugins/woocommerce/templates/checkout/payment.php(33): apply_filters() #3 ---/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/263040.cl...') #4 ---/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2357): wc_get_t in ---/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 2Forum: Plugins
In reply to: [Wallet for WooCommerce] Unset gateway if enough creditsIn funciones php code snipets
Forum: Plugins
In reply to: [Wallet for WooCommerce] Unset gateway if enough creditsThanks for the code but says.
error fatal in line 1:
syntax error, unexpected ‘&’
All the best,
Forum: Plugins
In reply to: [Wallet for WooCommerce] Unset gateway if enough creditsJust to clarify:
– I need to disable or hide a gateway whenever the wallet_balance can afford the cart total in the checkout, -this is to force clients to expend wallet balance instead of a normal gateway (wallet goes first), but need also leaving intact the option for partial payments whenever credits are not enough to cover a total cart.
Thanks,