Add filters to get_product_subtotal in review-order & cart templates.
This commit is contained in:
parent
e128fc02ee
commit
b57183f337
|
@ -88,7 +88,7 @@ global $woocommerce;
|
|||
<!-- Product subtotal -->
|
||||
<td class="product-subtotal">
|
||||
<?php
|
||||
echo $woocommerce->cart->get_product_subtotal( $_product, $values['quantity'] );
|
||||
echo apply_filters( 'woocommerce_cart_item_subtotal', $woocommerce->cart->get_product_subtotal( $_product, $values['quantity'] ), $values, $cart_item_key );
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -207,7 +207,7 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
|
|||
<tr>
|
||||
<td class="product-name">'.$_product->get_title().$woocommerce->cart->get_item_data( $values ).'</td>
|
||||
<td class="product-quantity">'.$values['quantity'].'</td>
|
||||
<td class="product-total">' . $woocommerce->cart->get_product_subtotal( $_product, $values['quantity'] ) . '</td>
|
||||
<td class="product-total">' . apply_filters( 'woocommerce_checkout_item_subtotal', $woocommerce->cart->get_product_subtotal( $_product, $values['quantity'] ), $values, $cart_item_key ) . '</td>
|
||||
</tr>';
|
||||
endif;
|
||||
endforeach;
|
||||
|
|
Loading…
Reference in New Issue