• Resolved jani20

    (@jani20)


    HI,

    Just installed the plugin in a Polish site and found out that after you choose card processing payment option you see untranslated “Place order” button. No problem yet, but I tried to translate it with Loco and it is not found when scanning the plugin files for translatable strings. Does it come dynamically from somewhere else?

    Enable it for translating please.

    To pinpoint the place I cite below the HTML from the browser:

    <button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="Kupuj? i p?ac?" data-value="Kupuj? i p?ac?">Kupuj? i p?ac?</button>
    		<div id="ppcp-hosted-fields" style="display:none;">
                            <button class="button alt">Place order</button>
                        </div><div id="payments-sdk__contingency-lightbox"></div><style id="ppcp-hide-dcc">.payment_method_ppcp-credit-card-gateway {display:none;}</style>
    		<input type="hidden" id="woocommerce-process-checkout-nonce" name="woocommerce-process-checkout-nonce" value="a2a9a67215" /><input type="hidden" name="_wp_http_referer" value="/checkout/" />	</div>
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @jani20

    We have tested this and can reproduce this issue (also in other languages), so this is not just an issue with your WP setup.
    The problem seems to be caused by our plugin that hard codes the “place order” button for the button when PayPal Card Processing is used. We believe that we can fix this by using pulling the label from a WooCommerce template instead of hardcoding it as we do now.

    For this, I will open a bug ticket and get it reviewed by our dev team for a possible next release.

    Thank you for point out this issue to us; we hope we can get this fixed as soon as possible. No adjustment from your side would be needed; it would simply show up correctly in your web store, once the updated plugin has been installed.

    Kind regards,
    Joost

    Thread Starter jani20

    (@jani20)

    Hi @joostvandevijver ,

    Thank you for the last reaction.

    I updated now the plugin to 1.4.0, but the problem is not resolved.

    There is a change: LOCO now finds the string “Place order” to be translated, but when I translate it (so proper .po file is created for pl_PL) still “Place order” is displayed on the front end.

    The same refers to error notifications of the type “Unfortunately, your credit card details are not valid.” Found and translated by LOCO to PL still appear on the front end in the original EN version. The site language is set to Polish:

    WordPress
    Wersja 5.8
    J?zyk witryny pl_PL
    J?zyk u?ytkownika pl_PL

    For now I use the ‘gettext’ filter hook to replace the EN text to PL, but it is just a temporary solution, since I want the site to be ultimately trilingual and have to have text version dependent on the chosen language using regular method of .pot/.po files.

    best regards

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @jani20

    this is completely correct, the issue with the place order button has not been fixed in the 1.4.0 release. The development ticket is open, but since it is only a graphical issue it does not have the same priority as the functional payment issues we are also working on.

    If you have a temporary solution for this, please keep it in place, since this could take some time before we get to it. Apologies for not being clear about the timing of the development of this possible fix.

    Kind regards,
    Joost

    • This reply was modified 3 years, 4 months ago by Syde Joost.

    It is only a graphical issue it does not have the same priority as the functional payment issues

    I’m speechless. Version 1.5.1 and the issue is still here.

    There are other languages in the world other than english, and such an issue can be a trouble for many people.

    This issue can make my ecommerce loose money. Money!!! It’s not only a graphical issue, how can’t developers understand this?

    • This reply was modified 3 years, 2 months ago by DeepVoid.
    • This reply was modified 3 years, 2 months ago by DeepVoid.

    Workaround from the web while waiting for a real fix:

    add_filter( 'gettext', 'misha_custom_paypal_button_text', 20, 3 );
    
    function misha_custom_paypal_button_text( $translated_text, $text, $domain ) {
    
        if( $translated_text == 'Place order' ) {
            $translated_text = 'Your_custom_text_here'; // new button text is here
        }
    
        return $translated_text;
    }

    To be placed in your theme’s functions.php file. Tested, it works.

    • This reply was modified 3 years, 2 months ago by DeepVoid.
    • This reply was modified 3 years, 2 months ago by DeepVoid.
    WebSimple

    (@websimple)

    I have the same problem, Everything in my setup is in french and the button in in English.
    Would be great to be able to edit this button as we please in your next version
    Meanwhile I will try the patch from Alex…
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“Place order” button not translatable’ is closed to new replies.