Support » Plugin: Stripe Payments » Translate the checkout page result

  • Resolved MickFrench

    (@mickfrench)


    Thank you for your plugin!
    It works fine ! The translation is ok except for the checkout page result.

    In another topic for changing the language of the Checkout result you said :

    add_filter(‘asp_stripe_payments_checkout_page_result’, ‘custom_stripe_checkout_output’, 10, 2);

    function custom_stripe_checkout_output($output, $post_data)
    {
    //TODO create/add your customized text in the $output variable

    //return the output variable so the plugin can show it
    return $output;
    }
    I am not easy with php…
    1 – Can you write an example into your code above:
    for that line: Thank you for your payment = Merci pour votre paiement
    2 – Where do I put that code ? Which file ?
    Here’s an image for the translation in french.
    Checkout result page
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, here is what the developer shared in the other thread.

    Alternatively, you can directly customize the plugin’s file that outputs that text. Look inside the following file:

    stripe-payments/public/views/checkout.php

    If you customize the above file make sure you keep a copy locally in your computer. The reason being is that every time you update the plugin you will loose your customization.

    Let me know if you need more help.

    Regards

    Thank you !

    I was looking for that file by the dashboard before my post, it is of course into the plugin hosted.
    All is working fine in french now.
    Great plugin !

    PS:I also use wordpress-simple-paypal-shopping-cart which is great too !

    • This reply was modified 3 years, 4 months ago by MickFrench.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translate the checkout page result’ is closed to new replies.