• Resolved p4rker

    (@p4rker)


    Hi,
    we are very happy with your plugin – thanks a lot!
    We would also happily upgrade to the pro-version if that would help to fix the following problem (any suggestions are welcome!):

    We try to get the shop http://www.kracht.berlin certified by “Händlerbund”. After a bunch of other requirements that we have solved there are two last issues that keeps them from giving us the thumbs up:

    1) the order confirmation email contains a system generated paragraph that I cannot figure out how to modify.
    Email-Problem: IMAGE

    2) they would like us to remove the account information (“Unsere Bankverbindung”) on the “bestellung-erhalten (order received)” page.
    Image here

    I have attached the suggestions from Händlerbund (image links).
    Any help would be appreciated, my php skills are limited, and I do not dare messing with the code without instructions…

    Thank you!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi,

    1) You may translate emails by using Plugins like LocoTranslate (these strings come from WooCommerce language packs) or by overriding the template within your child theme (see WooCommerce > Settings > Emails or https://docs.woothemes.com/document/template-structure/).

    2) This info comes from the bacs payment gateway. You may unhook the instructions by adding this to your functions.php

    remove_all_actions( 'woocommerce_thankyou_bacs' );

    for further customizations you may need to contact a developer to implement things to your needs.

    cheers

    Thread Starter p4rker

    (@p4rker)

    Thanks a million for your quick answer.

    changing the email via poedit has worked like a charm, but adding remove_all_actions( 'woocommerce_thankyou_bacs' );
    to functions.php did not make a difference – I first added it to the theme’s general functions.php file , and then also to woocommerce-functions.php … which did not change anything either, this is the way I see the “Bestellung erhalten” as a result:
    http://www.kracht.berlin/kasse/bestellung-erhalten/1177/?key=wc_order_56ccb8210c2eb

    should I insert it in a particular line / place / file / … / somewhere else?

    Thanks again…
    And 5 stars for plugin and support!

    Thread Starter p4rker

    (@p4rker)

    Sorry to be a nudge, but unhooking the bank details still does not work.
    To make sure that I am not messing up the wrong files I have installed a plugin to add functions
    This is what I tried:
    adding your code
    remove_all_actions( 'woocommerce_thankyou_bacs' );
    adding a code I found here
    remove_action( 'woocommerce_thankyou_bacs', 'action_woocommerce_thankyou_bacs', 10, 2 );

    unfortunately none of these attempts make a difference, the thank you page is still displaying the account details…

    Plugin Author vendidero

    (@vendidero)

    Hi,

    then maybe try to load the hook a little bit later, like this:

    add_action( 'template_redirect', 'my_theme_thankyou_removal' );
    
    function my_theme_thankyou_removal() {
    	$gateways = WC()->payment_gateways()->payment_gateways();
    	remove_action( 'woocommerce_thankyou_bacs', array( $gateways[ 'bacs' ], 'thankyou_page' ) );
    }

    cheers

    Thread Starter p4rker

    (@p4rker)

    Awesome. You are a lifesaver.
    Thank you – resolved…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove account details from thankyou page & order confirmation email’ is closed to new replies.