Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi!

    So I had to “rape” the woocommerce translation a little bit, because I couldn’t figured out how it works as @jessi wrote… So, I wrote a snippet (use Snippets plugin to is, don not hack the plugin or theme, or functions.php because further releases could overwrite).

    Create a new snippet, which is show only on frontend, then add that snippet into the text editor:

    function gdpr_blahblah( $atts ){
    	return __('Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our <a href="#put_your_policy_url_here">Privacy Policy</a>.', 'woocommerce'); 
    }
    add_shortcode( 'gdpr_blahblah', 'gdpr_blahblah' );

    Then save and activate, and go to the WPML page, and find the string in String translation list, and do translate.

    Then go to Woocommerce > Settings > Account & Privacy and change the GDRP text to [gdpr_blahblah] – name it as you wish – shortcode.

    It solved to me the gdpr text problem.

    Cheers.

    • This reply was modified 6 years, 1 month ago by tzs007.
Viewing 1 replies (of 1 total)