Hi,
who can i add input fields on my woocomemrce checkout page
i °found: http://support.advancedcustomfields.com/forums/topic/add-custom-fields-to-woocommerce-cart/
but i see nothing if i insert on form-checkout.php
<?php the_field(‘acf_strasse’, $product_id ); ?>
and
$product_id = apply_filters( ‘woocommerce_cart_item_product_id’, $cart_item[‘product_id’], $cart_item, $cart_item_key );
Hi @kreativcube,
Thanks for the post.
Is it possible that you are calling the function from the wrong filter?
can you confirm that the expected value is being returned when you debug the $value of ‘acf_strasse’?
<?php
$value = get_field(‘acf_strasse’, $product_id );
echo '<pre>';
var_dump( $value );
echo '</pre>';
?>