2011-12-09 17:01:56 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Edit Address Form
|
|
|
|
*/
|
|
|
|
|
2011-12-21 16:03:45 +00:00
|
|
|
global $woocommerce, $load_address, $address;
|
2011-12-09 17:01:56 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
<?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">
|
2011-12-09 17:01:56 +00:00
|
|
|
|
2012-01-05 11:31:22 +00:00
|
|
|
<h3><?php if ($load_address=='billing') _e('Billing Address', 'woocommerce'); else _e('Shipping Address', 'woocommerce'); ?></h3>
|
2011-12-09 17:01:56 +00:00
|
|
|
|
2011-12-21 16:03:45 +00:00
|
|
|
<?php
|
|
|
|
foreach ($address as $key => $field) :
|
|
|
|
woocommerce_form_field( $key, $field, get_user_meta( get_current_user_id(), $key, true ) );
|
|
|
|
endforeach;
|
|
|
|
?>
|
2011-12-09 17:01:56 +00:00
|
|
|
|
2012-01-05 11:31:22 +00:00
|
|
|
<input type="submit" class="button" name="save_address" value="<?php _e('Save Address', 'woocommerce'); ?>" />
|
2011-12-09 17:01:56 +00:00
|
|
|
|
|
|
|
<?php $woocommerce->nonce_field('edit_address') ?>
|
|
|
|
<input type="hidden" name="action" value="edit_address" />
|
|
|
|
|
|
|
|
</form>
|