I want to include one filter in another, using functions.php
in woocommerce/templates/checkout/review-order.php
There is a php function, which displays quantity:
<?php echo apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ); ?>
and in woocommerce/templates/cart/cart.php
There is a php function, which displays the remove item button:
<?php echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf('<a href="%s" class="remove" title="%s" data-product_id="%s" data-product_sku="%s">×</a>', esc_url( WC()->cart->get_remove_url( $cart_item_key ) ), __( 'Remove this item', 'woocommerce' ), esc_attr( $product_id ), esc_attr( $_product->get_sku() )), $cart_item_key );?>
Using functions.php, how could I change the first function to also include second functions actions? So whenever the quantity is loaded, there is also a remove button?
Thanks
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire