Hi,
I’ve created a field for a single product. This field is called ‘borg’.
I want this field display on the cart.php in the template cart-totals.php. So I’ve added the following code in cart-totals.php:
`<tr class=”borg”>
<th><?php esc_html_e( ‘Borg’, ‘woocommerce’ ); ?></th>
<td>€ <?php the_field(‘borg’ ); ?></td>
</tr>’
Nothing is displayed.
I also tried <td>€ <?php the_field(‘borg’, $product_id); ?></td>
if I use the code <?php the_field(‘borg’ ); ?> on a single-product template…the value is displayed.
How can i display the value on cart-totals.php ?
regards,
Roland