Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter miguelmd

    (@miguelmd)

    Hi there any uodates?

    Did you try your code and work with insufficient credits?

    Thanks

    Thread Starter miguelmd

    (@miguelmd)

    Hi 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,

    Thread Starter miguelmd

    (@miguelmd)

    Yep. 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.
    Thread Starter miguelmd

    (@miguelmd)

    Yes 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.”

    Thread Starter miguelmd

    (@miguelmd)

    This 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

    Thread Starter miguelmd

    (@miguelmd)

    Thanks a lot!!! and wait for your help.

    • This reply was modified 3 years, 10 months ago by miguelmd.
    Thread Starter miguelmd

    (@miguelmd)

    It 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 2
    • This reply was modified 3 years, 10 months ago by miguelmd.
    • This reply was modified 3 years, 10 months ago by miguelmd.
    Thread Starter miguelmd

    (@miguelmd)

    In funciones php code snipets

    Thread Starter miguelmd

    (@miguelmd)

    Thanks for the code but says.

    error fatal in line 1:

    syntax error, unexpected ‘&’

    All the best,

    Thread Starter miguelmd

    (@miguelmd)

    Just 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,

Viewing 10 replies - 1 through 10 (of 10 total)