• Resolved emmaekoncept

    (@emmaekoncept)


    Hi! Is it in this text below i can change to change the text on the button or should i use some css?

    /**
    * Modify the Add to Cart button text based on settings.
    * @since 1.0
    */
    function qwc_change_button_text() {

    global $post;
    $post_id = $post->ID;
    // check if setting is enabled
    $enable_quote = product_quote_enabled( $post_id );

    if ( $enable_quote ) {
    $cart_text = __( ‘Request Quote’, ‘quote-wc’ );
    } else {
    $cart_text = __( ‘Add to Cart’, ‘quote-wc’ );
    }

    Thanks!
    /emma

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change text on Button’ is closed to new replies.