Thanks for your response man,
but i have already read your article about overriding the /templates/account.php file.
no matter what i do i cannot have two separate working form for General section and Password Section outside tabular str!
for example i have this code:
<?php
foreach ( UM()->account()->tabs as $id => $info ) {
if ($id == 'password') {
$current_tab = UM()->account()->current_tab;
if ( isset( $info['custom'] ) || UM()->options()->get( 'account_tab_' . $id ) == 1 || $id == 'general' ) { ?>
<div class="um-account-nav">
<a href="javascript:void(0);" data-tab="<?php echo esc_attr( $id ); ?>" class="<?php if ( $id == $current_tab ) echo 'current'; ?>">
<?php echo esc_html( $info['title'] ); ?>
</a>
</div>
<div class="um-account-tab um-account-tab-<?php echo esc_attr( $id ); ?>" data-tab="<?php echo esc_attr( $id )?>">
<?php $info['with_header'] = true;
UM()->account()->render_account_tab( $id, $info, $args ); ?>
</div>
<?php
}
}
}
?>
to show only change password fields and it shows the fields but with any wrong old-password and no matching new-password i enter in fields it only says your account has been updated successfully (instead of showing me errors) and with correct data in fields, new password won’t be saved to account … (form is not working correctly when i try to get it out of it’s tabular str).
can you please help me with this code ?
or even do me a favor and send me a snippet code for having a “change password” and “account edit” (general) form completely separate and outside default UM tabular str ?
i really appreciate your help ??
-
This reply was modified 4 years, 1 month ago by Erfan MHDi.