• Resolved hussuf

    (@hussuf)


    Hi!

    I’m creating an organization to help pets at risk in Chile, for that reason I’ve created a page to ask for donations and sell products with Woocomerce.

    When I created a “donation product” the checkout process works fine but when I created a normal product without “donation product ticked” at the end of the checkout process the page show me the “donate now” button so…

    1. How can I show donate button on the checkout only for donations products and on the product page show the “buy button” normally?

    2. How can I translate to Spanish this button and other sections on the plugin?

    Best.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonas

    (@flinnn)

    Hi, thank you very much for your message.
    As already explained in the description, the plugin converts WooCommerce into a donation platform, a parallel use as a normal store is only possible to a limited extent, because labels do not fit anymore. I therefore recommend you to use a multisite or multiple WordPress installations to separate donation platform from webshop.

    1. You can change the button text by using the free plugin Loco translate. Alternatively, you can use the following code to change the button text (you can add it with Code snippets). Different button texts depending on which products are in the shopping cart would be relatively complex to implement:

    add_filter( 'woocommerce_order_button_text', 'my_custom_button_text', 11 );
    function my_custom_button_text( $button_text ) {
       return 'Submit'; // new text is here 
    }

    2. For translating I recommend Loco translate. You can find more information about internationalization in the documentation: https://wcdp.jonh.eu/documentation/usage/internationalization-localization-translation/

    Thread Starter hussuf

    (@hussuf)

    Got it!

    Thanks a lot.

    But… recently I installed “Loco translate” plugin and with Donation plugin doesn’t work ?? please see this record https://www.awesomescreenshot.com/video/7992788?key=9837c8743163ccf28b2f7d981380e076

    My current theme support it and other plugins work fine but I don’t know why the Donation plugin doesn’t. Do you?

    • This reply was modified 2 years, 11 months ago by hussuf. Reason: I still have the issue
    Plugin Author Jonas

    (@flinnn)

    Hi, sorry for the inconvenience. I just tried it and Loco translate (language es_ES) works fine for me.
    Please follow this FAQ to track the error: https://localise.biz/wordpress/plugin/faqs/not-showing
    Did you sync the POT file?
    Alternatively you can use the native translation tool of WordPress: https://translate.www.ads-software.com/projects/wp-plugins/wc-donation-platform/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Donation button on product checkout’ is closed to new replies.