• Resolved iygen

    (@iygen)


    When i try edit address information, get error “cant change information because no write name and soname”, but i write. Also when open it, cant get information from database about name and soname…

    <?php
    /**
     * Edit address form
     *
     * @author 		WooThemes
     * @package 	WooCommerce/Templates
     * @version     2.1.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    
    global $woocommerce, $current_user;
    
    $page_title = ( $load_address == 'billing' ) ? __( 'Billing Address', 'woocommerce' ) : __( 'Shipping Address', 'woocommerce' );
    
    get_currentuserinfo();
    ?>
    
    <?php wc_print_notices(); //print_r($_POST);?>
    
    <?php if ( ! $load_address ) : ?>
    
    	<?php wc_get_template( 'myaccount/my-address.php' ); ?>
    
    <?php else : ?>
    
    	<form method="post">
    
    		<h3 class="my-account-title"><?php echo apply_filters( 'woocommerce_my_account_edit_address_title', $page_title ); ?></h3>
    
    		<?php do_action( "woocommerce_before_edit_address_form_{$load_address}" ); ?>
    
    		<?php foreach ( $address as $key => $field ) : ?>
    
    			<?php woocommerce_form_field( $key, $field, ! empty( $_POST[ $key ] ) ? wc_clean( $_POST[ $key ] ) : $field['value'] ); ?>
    
    		<?php endforeach; ?>
    			<?php do_action( "woocommerce_after_edit_address_form_{$load_address}" ); ?>
    		<p>
    			<input type="submit" class="btn btn-primary" name="save_address" value="<?php _e( 'Save Address', 'woocommerce' ); ?>" />
    			<?php wp_nonce_field( 'woocommerce-edit_address' ); ?>
    			<input type="hidden" name="action" value="edit_address" />
    		</p>
    
    	</form>
    
    <?php endif; ?>

    I use wocommerce 2.2.6. I check but this file is same with this version. POST msg:

    Array ( [d0-be-d0-bf-d0-bb-d0-b0-d1-82-d1-8b_first_name] => name [d0-be-d0-bf-d0-bb-d0-b0-d1-82-d1-8b_last_name] => soname [d0-be-d0-bf-d0-bb-d0-b0-d1-82-d1-8b_postcode] => zip [d0-be-d0-bf-d0-bb-d0-b0-d1-82-d1-8b_city] => city [save_address] => Save address [_wpnonce] => fce4020ac3 [_wp_http_referer] => /my-account/edit-address/%D0%BE%D0%BF%D0%BB%D0%B0%D1%82%D1%8B/ [action] => edit_address [d0bed0bfd0bbd0b0d182d18b_first_name] => [d0bed0bfd0bbd0b0d182d18b_last_name] => [d0bed0bfd0bbd0b0d182d18b_postcode] => [d0bed0bfd0bbd0b0d182d18b_city] => [d0bed0bfd0bbd0b0d182d18b_phone] => [d0bed0bfd0bbd0b0d182d18border_comments] => [d0bed0bfd0bbd0b0d182d18b_street] => [d0bed0bfd0bbd0b0d182d18b_house] => [d0bed0bfd0bbd0b0d182d18b_new_fio] => [d0bed0bfd0bbd0b0d182d18b_new_passport] => )

    https://www.ads-software.com/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter iygen

    (@iygen)

    pls help to recieve my problem… with no update, i know that use old version of woocommerce, but if update can no work many functions and need change again ??

    Thread Starter iygen

    (@iygen)

    resolved. can use another page:
    my-account/edit-address/shipping/
    my-account/edit-address/billing/

    i use my-account/edit-address/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error when change payment information’ is closed to new replies.