Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
This commit is contained in:
parent
80c2ecd692
commit
238e0f2337
|
@ -120,7 +120,7 @@ function wc_add_to_cart_message( $products, $show_qty = false, $return = false )
|
|||
$return_to = apply_filters( 'woocommerce_continue_shopping_redirect', wc_get_raw_referer() ? wp_validate_redirect( wc_get_raw_referer(), false ) : wc_get_page_permalink( 'shop' ) );
|
||||
$message = sprintf( '<a href="%s" tabindex="1" class="button wc-forward">%s</a> %s', esc_url( $return_to ), esc_html__( 'Continue shopping', 'woocommerce' ), esc_html( $added_text ) );
|
||||
} else {
|
||||
$message = sprintf( '<a href="%s" tabindex="1" class="button wc-forward">%s</a> %s', esc_url( wc_get_page_permalink( 'cart' ) ), esc_html__( 'View cart', 'woocommerce' ), esc_html( $added_text ) );
|
||||
$message = sprintf( '<a href="%s" tabindex="1" class="button wc-forward">%s</a> %s', esc_url( wc_get_cart_url() ), esc_html__( 'View cart', 'woocommerce' ), esc_html( $added_text ) );
|
||||
}
|
||||
|
||||
if ( has_filter( 'wc_add_to_cart_message' ) ) {
|
||||
|
|
Loading…
Reference in New Issue