Wishlist - How to display for user the total price of all product in list

If you want to display for user the total price of all product in list you shoud modify wishlist-view.php files located in: wp-content\plugins\yith-woocommerce-wishlist-premium\templates

We have inserted the following code:

in the row 126 :

$total = 0;


in the row 142

$total = $total + (float) $product->get_price();


in the row 254:

<tr>
<td colspan="<?php echo esc_attr( $column_count ) ?>"><b>TOTAL:</b> <?php echo wc_price( $total ) ?></td>
</tr>


This should be the final result


screen-1.jpg

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk