Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WooCommerce Deutsch (de_DE), für Plugin-Version 3.1.5 oder höher: benutzerdefinierter Text für AGB/ Widerruf bei "Kasse" (Checkout):
<?php
/** Do NOT include the opening php tag */
add_filter( 'wcde_filter_terms_conditions_string', 'wcde_custom_string_terms_conditions', 10, 1 );
/**
* String swap for "Cart Subtotal:" string in WooCommerce.
*
* NOTE: This snippet relies on active "WooCommerce German (de_DE)" plugin,
* version 3.1.5 or higher!
*
* @author David Decker - DECKERWEB
* @link http://deckerweb.de/twitter
* @link https://gist.github.com/deckerweb/8c1a5a0398fd4719befb
*
* @param string $string
*
* @return string Custom string text.
*/
function wcde_custom_string_terms_conditions( $string ) {
/** Bail early if no WCDE */
if ( ! function_exists( 'ddw_wcde_custom_strings_via_l10n_global' ) ) {
return;
} // end if
/** Build custom strng */
$string = 'Ich habe folgende Bedingungen gelesen und bestätige diese hiermit: <a href=\"%s\" target=\"_blank\">Liefer- und Zahlungsbedingungen (AGB) inkl. Widerrufsbelehrung</a>';
/** Output string */
return $string;
} // end function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment