Change "Place order" button text on WooCommerce Checkout page (ok)
https://rudrastyh.com/woocommerce/place-order-button-text.html
Hoặc đơn giản hơn
function filter_woocommerce_order_button_html($button) {
$order_button_text = apply_filters( 'woocommerce_order_button_text', __( "Place order s", "woocommerce" ) );
return '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>';
};
add_filter( 'woocommerce_order_button_html', 'filter_woocommerce_order_button_html', 10, 1 );

PreviousWooCommerce: Xóa tab ‘thông tin bổ sung’ trong trang sản phẩm (ok)NextCustomizing checkout fields using actions and filters (ok)
Last updated
Was this helpful?