WordPress.org

Forums

WooCommerce German (de_DE)
[resolved] Change "Proceed to checkout" Button (9 posts)

  1. chrisgeist
    Member
    Posted 1 year ago #

    Hi

    I don´t know where to change the "proceed to checkout" button in "Zum Warenkorb". I use "Codestyling Lokalisierung" to translate some english phrases in my theme but can´t translate that button:
    http://www.paragliding-academy.com/Proceed%20to%20Checkout.JPG

    Maybe it can be solved with the "wcde-helfer-funktion.php"??? but i don´t know where to copy it.

    thanks for your help.

    cheers, chris

    https://wordpress.org/plugins/woocommerce-de/

  2. chrisgeist
    Member
    Posted 1 year ago #


  3. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @chrisgeist:
    Hi Chris,
    thanks for your feedback!

    "Codestyling Localization" is not compatible with WooCommerce, see FAQ of my plugin http://wordpress.org/plugins/woocommerce-de/faq/ --> Nr. 20

    I guess this button comes from your theme -- because in my translations it is included (as "Zur Kasse gehen"). If it comes from your theme, what I believe, then it needs own translation, THIS ONE should work with Codestyling plugin then :-)

    The helper functions doesn't work here!

    Since this string is filterable in WooCommerce, you have to try theme translation first, if not possible, use own templates (change hardcoded...) or maintain own plugin translations for WooCommerce.

    Thanks, Dave :)

  4. chrisgeist
    Member
    Posted 1 year ago #

    hi dave

    thanks for the fast answer. i will ask the theme authors.
    anyway: where do i have to put the "helper" file or code to work?

    thanks,

    chris

  5. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Chris,

    the code of the helper functions goes in your functions.php of the theme or child theme - but make backup of that file before!

    And don't copy the opening "<? php", leave that out :)

    This should help.

    --Dave :)

  6. carloskk
    Member
    Posted 1 year ago #

    Hi Chris,

    Probably your theme use _e( 'Proceed to Checkout' ), while the .po file use Proceed to Checkout &rarr;.

    Replace _e( 'Proceed to Checkout' ) with _e( 'Proceed to Checkout &rarr;' ) and it should work :-)

  7. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @carloskk:
    Issue already resolved :)

    Regarding your suggestion: it may work if using WooCommerce 2.1.x with older, custom templates via your theme. But it is not recommended, as WooCommerce 2.1.x changed all strings with arrows markup to remove this markup which is good. So future proof way is to update your templates as well as translations. At least that's my opinion based on experiences with clients... :)

  8. wkrt
    Member
    Posted 1 year ago #

    Hi Dave,

    same problem here:
    'Proceed to Checkout →' is not translated.

    As the domain of the _e function is 'woocommerce' I assume it should be translated by your plugin, or am I wrong?

    <?php _e( 'Proceed to Checkout &rarr;', 'woocommerce' ); ?>

    Thanks!

  9. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @wkrt:
    The correct answer is already in my answer to the other user above :)

    WooCommerce removed all "→" markup from strings therefore, my translations for WooCommerce 2.1.x will not work in this case.

    Better change textdomain to that of your theme's! And then translate the theme. This is more future proof!

    Themes relying on the "woocommerce" textdomain do it wrong, as for the tiniest change in WooCommerce it will not work any longer.

    Thanks, Dave :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.