Skip to content

Instantly share code, notes, and snippets.

@psamsotha
Created March 26, 2018 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psamsotha/2276b0a0bd2d36fdd9b7f86625c2e438 to your computer and use it in GitHub Desktop.
Save psamsotha/2276b0a0bd2d36fdd9b7f86625c2e438 to your computer and use it in GitHub Desktop.
Override function in WooCommerce to change View Cart Text.
<?php
function woocommerce_widget_shopping_cart_button_view_cart() {
echo '<a href="' . esc_url( wc_get_cart_url() ) . '" class="button wc-forward">' . esc_html__( 'View cart', 'woocommerce' ) . '</a>';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment