public function set_customer_account_checkbox_text($translated, $original, $domain) { $search = "Create an account?"; if ($domain == 'woocommerce' && $original == $search) { return wc_gzd_get_legal_text(get_option('woocommerce_gzd_customer_account_text')); } return $translated; }
<?php /** * * @author Vendidero * @package WooCommerceGermanized/Templates * @version 1.0 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly ?> <p class="form-row form-row-wide"> <label for="reg_data_privacy" class="inline"> <input type="checkbox" class="input-checkbox" value="1" name="privacy" id="reg_data_privacy" /> <?php echo wc_gzd_get_legal_text(get_option('woocommerce_gzd_customer_account_text')); ?> <span class="required">*</span> </label> </p>
function woocommerce_gzd_template_checkout_legal() { echo '<p class="form-row legal terms">' . (get_option('woocommerce_gzd_display_checkout_legal_no_checkbox') == 'no' ? '<span class="checkbox-custom"><input type="checkbox" class="input-checkbox" name="legal" id="legal" /><span class="checkout_checkbox"></span></span><label class="checkbox" for="legal">' : '') . ' ' . wc_gzd_get_legal_text() . '</label></p>'; $checkbox_label = get_option('mc4wp_lite_checkbox'); if ($checkbox_label['precheck'] == 1) { $checked = 'checked="checked"'; } else { $checked = ''; } echo '<p class="form-row form-row " id="_mc4wp_subscribe_woocommerce_checkout_field"><span class="checkbox-custom"> <input type="hidden" name="mc4wp-subscribe" value="1" /> <input type="checkbox" class="input-checkbox " name="mc4wp-subscribe" id="mc4wp-subscribe" ' . $checked . '><span class="checkout_checkbox"></span></span><label class="checkbox ">' . $checkbox_label['label'] . '</label></p>'; }
function wc_gzd_get_legal_text_digital_error() { $plain_text = __('To retrieve direct access to digital content you have to agree to the loss of your right of withdrawal.', 'woocommerce-germanized'); if (get_option('woocommerce_gzd_checkout_legal_text_digital_error')) { $plain_text = wc_gzd_get_legal_text(get_option('woocommerce_gzd_checkout_legal_text_digital_error')); } return $plain_text; }
function wc_gzd_get_legal_text_digital() { $plain_text = __('I want immediate access to the digital content and I acknowledge that thereby I lose my right to cancel once the service has begun.', 'woocommerce-germanized'); if (get_option('woocommerce_gzd_checkout_legal_text_digital')) { $plain_text = wc_gzd_get_legal_text(get_option('woocommerce_gzd_checkout_legal_text_digital')); } return $plain_text; }
/** * text legal info within checkout (may contain checkbox) */ function woocommerce_gzd_template_checkout_legal() { echo '<p class="form-row legal terms"><label class="checkbox" for="legal">' . (get_option('woocommerce_gzd_display_checkout_legal_no_checkbox') == 'no' ? '<input type="checkbox" class="input-checkbox" name="legal" id="legal" />' : '') . ' ' . wc_gzd_get_legal_text() . '</label></p>'; }