• Resolved xaxaxa17

    (@xaxaxa17)


    hi,
    please how can I add phone and email (billing) to review in my account/directions?
    and how can I remove some fields?

    I have both phone and email when I click on edit, but they are not displayed in this review.

    thank you

    ps: if you looking on my site, the billing a shipping headings are renamed in purpose

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Could you share a screenshot of the page you are referring to? I recommend?https://snipboard.io?for easily sharing screenshots – please follow the instructions on the page, then paste the URL in this chat. It works with Chrome, Firefox, Safari, and Edge.

    Thread Starter xaxaxa17

    (@xaxaxa17)

    https://snipboard.io/zXo0cJ.jpg

    the right address review is printed by this code (woocommerce/templates/myaccount/my-address.php)

    <?php foreach ( $get_addresses as $name => $address_title ) : ?>
    	<?php
    		$address = wc_get_account_formatted_address( $name );
    		$col     = $col * -1;
    		$oldcol  = $oldcol * -1;
    	?>
    
    	<div class="u-column<?php echo $col < 0 ? 1 : 2; ?> col-<?php echo $oldcol < 0 ? 1 : 2; ?> woocommerce-Address">
    		<header class="woocommerce-Address-title title">
    			<h3><?php echo esc_html( $address_title ); ?></h3>
    			<a href="<?php echo esc_url( wc_get_endpoint_url( 'edit-address', $name ) ); ?>" class="edit"><?php echo $address ? esc_html__( 'Edit', 'woocommerce' ) : esc_html__( 'Add', 'woocommerce' ); ?></a>
    		</header>
    		<address>
    			<?php
    				echo $address ? wp_kses_post( $address ) : esc_html_e( 'You have not set up this type of address yet.', 'woocommerce' );
    			?>
    		</address>
    	</div>
    
    <?php endforeach; ?>
    Thread Starter xaxaxa17

    (@xaxaxa17)

    I using checkout form editor plugin too (free version)

    Hi,

    Thank you for the screenshot and clarification. Out of the box, WooCommerce displays name and address only. To show phone number and email in my-account/edit-address/, you’d need to use some custom coding which goes beyond the scope of support we are able to provide in this forum. But you can check out this page to get started.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack.

    Hi @xaxaxa17

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘my account – directions – address fields’ is closed to new replies.