Исправить ошибку при регистрации
Бюджет:
Не указан
В теме Default 3.0 поменяла код, чтобы галочка "зарегистрировать как постоянный покупатель" была обязательной.
Вот этот код:
<div class="wa-field"> <div class="wa-value"> <label><input type="checkbox" {if $wa->post('create_user')}checked{/if} id="create-user" name="create_user" value="1"> [`Create permanent user account`] <i class="icon16 like"></i></label> {if shopAffiliate::isEnabled()} <p class="hint"> [`Registered customers apply for affiliate bonuses and discounts on future orders.`] {$add_affiliate_bonus = round(shopAffiliate::calculateBonus(['items' => $wa->shop->cart->items(), 'total' => $wa->shop->cart->total()]), 2)} {if !empty($add_affiliate_bonus)} {sprintf("[`This order will add +%s points to your affiliate bonus.`]", $add_affiliate_bonus)} {/if} </p> {/if} </div> </div> <div id="create-user-div" style="display:none"> <div class="wa-field"> <div class="wa-name"> [`Email`] </div> <div class="wa-value"> {if !empty($errors.email)}<p>{/if} <input {if !empty($errors.email)}class="error"{/if} name="login" type="text" value="{$wa->post('login', $customer->get('email', 'default'))|escape}"> {if !empty($errors.email)}</p> <em class="errormsg">{$errors.email}</em> {/if} </div> </div> <div class="wa-field"> <div class="wa-name"> [`Password`] </div> <div class="wa-value"> <input {if !empty($errors.password)}class="error"{/if} name="password" type="password" value="{$wa->post('password')|escape}"> {if !empty($errors.password)}<br><em class="errormsg">{$errors.password}</em>{/if} </div> </div> </div>
<div class="wa-field" style="display:none;"> <div class="wa-value"> <label><input type="checkbox" checked id="create-user" name="create_user" value="1"> [`Create permanent user account`] <i class="icon16 like"></i></label> {if shopAffiliate::isEnabled()} <p class="hint"> [`Registered customers apply for affiliate bonuses and discounts on future orders.`] {$add_affiliate_bonus = round(shopAffiliate::calculateBonus(['items' => $wa->shop->cart->items(), 'total' => $wa->shop->cart->total()]), 2)} {if !empty($add_affiliate_bonus)} {sprintf("[`This order will add +%s points to your affiliate bonus.`]", $add_affiliate_bonus)} {/if} </p> {/if} </div> </div> <div id="create-user-div" style="display:none"> <p><span style="font-size: 15px;"></span></p> <p><span style="font-size: 14px;"> Чтобы в последующем не заполнять информацию заново, придумайте пожалуйста пароль для входа на сайт, а логином будет ваш E-mail. </span></p> <div class="wa-field"> <div class="wa-name"> [`Email`] </div> <div class="wa-value"> {if !empty($errors.email)}<p>{/if} <input {if !empty($errors.email)}class="error"{/if} name="login" type="text" value="{$wa->post('login', $customer->get('email', 'default'))|escape}"> {if !empty($errors.email)}</p> <em class="errormsg">{$errors.email}</em> {/if} </div> </div> <div class="wa-field"> <div class="wa-name"> [`Password`] </div> <div class="wa-value"> <input {if !empty($errors.password)}class="error"{/if} name="password" type="password" value="{$wa->post('password')|escape}"> {if !empty($errors.password)}<br><em class="errormsg">{$errors.password}</em>{/if} </div> </div> </div>
Все отлично, но возникла ошибка при выборе пункта "у меня уже есть аккаунт" (прикладываю фото).
Прошу помочь, если это возможно.
Эта тема в архиве. Добавление комментариев к ней отключено.
1 отклик
Добрый день!
Готовы помочь с реализацией Вашего проекта. Прошу связаться со мной по эл. почте az@easy-it.ru или по телефону +7 (926) 014-05-35
С уважением,
Журавлев Артем