update text: Remove %s from cart

This commit is contained in:
faisal-alvi 2023-04-20 14:03:38 +05:30
parent da0d28ed24
commit 7d4a7ca883
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ do_action( 'woocommerce_before_cart' ); ?>
sprintf( sprintf(
'<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s">&times;</a>', '<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s">&times;</a>',
esc_url( wc_get_cart_remove_url( $cart_item_key ) ), esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
sprintf( esc_attr__( 'Remove %s', 'woocommerce' ), $product_name ), sprintf( esc_attr__( 'Remove %s from cart', 'woocommerce' ), $product_name ),
esc_attr( $product_id ), esc_attr( $product_id ),
esc_attr( $_product->get_sku() ) esc_attr( $_product->get_sku() )
), ),

View File

@ -44,7 +44,7 @@ do_action( 'woocommerce_before_mini_cart' ); ?>
sprintf( sprintf(
'<a href="%s" class="remove remove_from_cart_button" aria-label="%s" data-product_id="%s" data-cart_item_key="%s" data-product_sku="%s">&times;</a>', '<a href="%s" class="remove remove_from_cart_button" aria-label="%s" data-product_id="%s" data-cart_item_key="%s" data-product_sku="%s">&times;</a>',
esc_url( wc_get_cart_remove_url( $cart_item_key ) ), esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
sprintf( esc_attr__( 'Remove %s', 'woocommerce' ), $product_name ), sprintf( esc_attr__( 'Remove %s from cart', 'woocommerce' ), $product_name ),
esc_attr( $product_id ), esc_attr( $product_id ),
esc_attr( $cart_item_key ), esc_attr( $cart_item_key ),
esc_attr( $_product->get_sku() ) esc_attr( $_product->get_sku() )