I'm trying to display the product meta on order received page still no success. i did it with cart page with this code

add_action( 'woocommerce_review_order_before_payment', 'project_information_table', 20 );

function project_information_table() {
    foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
            $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );
    $finance_amount = $_product->get_meta('_finance_amount');
echo $finance_amount;

same code didn't work while changing woocommerce_review_order_before_payment to woocommerce_thankyou

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.