Home Forums Basel support forum Child theme Functions.php update for legal reasons

Child theme Functions.php update for legal reasons

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #189751

    Bertrand
    Participant

    Hi,

    For legal purposes, I need to add a tick box for customers to accept the legal mentions at checkout. So far with Woocommerce settings, there is just a single option text available redirecting to any privacy page or whatsoever.

    To do so, I will have to add some lines in the functions.php because the checkbox must be checked by the user before payment can be made. So my question is: Can I change the order button text in functions.php of my child theme with no fear with this code snippet:

    add_filter( ‘woocommerce_order_button_text’, ‘custom_order_button_text’ );
    function custom_order_button_text( $button_text ) {
    return ‘Pay now’;
    }

    Will this change be up and still running after new theme updates?

    Thanks a lot for your help!

    #189838

    Artem Temos
    Keymaster

    Hello,

    Yes, you can add any code to the child theme and it will be kept after any update. We never update our child theme.

    Kind Regards

    #192166

    Bertrand
    Participant

    Hi,

    Ok thanks a lot for yor quick answers.

    Regards,
    Bertrand

    #192181

    Artem Temos
    Keymaster

    You are welcome!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Child theme Functions.php update for legal reasons’ is closed to new replies.