Thread Starter
pk1234
(@pk1234)
Well, how can I delete/edit my topic? Here’s a correction to 2): I’m gonna try out creating a new tab with those custom fields via functions.php.
For 1) I have no solution yet
Thread Starter
pk1234
(@pk1234)
It worked! Thank you so much!
Would you consider this as a robust solution? Or is it possible it “breaks” under circumstances?
Code looks like this now:
function add__woocommerce_after_shop_loop_item( ) {
$einheit = " € / L";
global $post;
echo get_post_meta($post->ID, 'wbo_literpreis', true);
echo $einheit;
};
add_action( 'woocommerce_after_shop_loop_item', 'add__woocommerce_after_shop_loop_item' );
The code is in functions.php and affects productboxes (productlistings, product detailspage)