woocommerce/templates/myaccount/form-edit-address.php

26 lines
789 B
PHP
Raw Normal View History

<?php
/**
* Edit Address Form
*/
2012-02-03 16:17:35 +00:00
global $woocommerce;
?>
<?php $woocommerce->show_messages(); ?>
2012-01-06 17:14:31 +00:00
<form action="<?php echo esc_url( add_query_arg( 'address', $load_address, get_permalink( woocommerce_get_page_id('edit_address') ) ) ); ?>" method="post">
2012-01-05 11:31:22 +00:00
<h3><?php if ($load_address=='billing') _e('Billing Address', 'woocommerce'); else _e('Shipping Address', 'woocommerce'); ?></h3>
<?php
foreach ($address as $key => $field) :
woocommerce_form_field( $key, $field, get_user_meta( get_current_user_id(), $key, true ) );
endforeach;
?>
2012-01-05 11:31:22 +00:00
<input type="submit" class="button" name="save_address" value="<?php _e('Save Address', 'woocommerce'); ?>" />
<?php $woocommerce->nonce_field('edit_address') ?>
<input type="hidden" name="action" value="edit_address" />
</form>