• Hi there,

    The My_account page on my woo-commerce website, now only displays adresses, as shown in the PHP below. I added a custom field in the user profiles by changing the funcitons.php of my theme, so I have a custom field labeled Twakka_Saldo

    How do I display the value of this field on the My_account page?

    please be elaborate on the how, since I am not an experienced coder ??

    <?php
    /**
    * My Account page
    *
    * @author WooThemes
    * @package WooCommerce/Templates
    * @version 2.0.0
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit;
    }

    wc_print_notices(); ?>

    <p class=”myaccount_user”>
    <?php
    printf(
    __( ‘Hello %1$s (not %1$s? Sign out).’, ‘woocommerce’ ) . ‘ ‘,
    $current_user->display_name,
    wp_logout_url( get_permalink( wc_get_page_id( ‘myaccount’ ) ) )

    );
    ?>
    </p>
    <p>test</p>

    <?php do_action( ‘woocommerce_before_my_account’ ); ?>

    <?php wc_get_template( ‘myaccount/my-downloads.php’ ); ?>

    <?php wc_get_template( ‘myaccount/my-orders.php’, array( ‘order_count’ => $order_count ) ); ?>

    <?php wc_get_template( ‘myaccount/my-address.php’ ); ?>

    <?php do_action( ‘woocommerce_after_my_account’ ); ?>

  • The topic ‘show user detail on my_account page’ is closed to new replies.