регистрация в Webasyst

кто решил данную проблему?

1. В файле /published/SC/html/scripts/modules/cart/scripts/ shopping_cart.php поменяйте

фрагмент
PHP:
RedirectSQ($jsgoto?'jsgoto='.base64_encode(set_query($jsgoto)):'');
на
PHP:
//RedirectSQ($jsgoto?'jsgoto='.base64_encode(set_query($jsgoto)):'');
RedirectSQ(isset($_POST['checkout'])?'?ukey=checkout':(isset($_POST['ppe_checkout_x'])?'ppexpresscheckout2=1':(isset($_POST['google_checkout_x'])?'googlecheckout2=1':'')));

2. В файле /published/SC/html/scripts/templates/frontend/ shopping_cart.html поменяйте

фрагмент
HTML:
<form action="{''|set_query_html}" name="ShoppingCartForm" method="post" target="_self">
на
HTML:
<form action="{''|set_query_html}" name="ShoppingCartForm" method="post" target="_parent">

фрагмент
HTML:
<input type="submit" name="recalculate" value='{"btn_recalculate"|transcape}' tabindex="1004">
на
HTML:
<input type="submit" name="recalculate" value='{"btn_recalculate"|transcape}' tabindex="1004" onclick="document.getElementsByName('ShoppingCartForm')[0].removeAttribute('target');">

фрагмент
HTML:
<input type="submit" class="btn_checkout" name="checkout" value="{"str_checkout"|translate}" id="btn-checkout" type="submit" tabindex="1005">
на
HTML:
<input type="submit" class="btn_checkout" name="checkout" value="{"str_checkout"|translate}" id="btn-checkout" type="submit" tabindex="1005" onclick="document.getElementsByName('ShoppingCartForm')[0].setAttribute('target', '_parent');">

как можно обязать покупателя регистрироваться?

В последней версии WebAsyst Shop-Script в настройках корзины можно запретить оформление заказа незарегистрированным пользователям.
 
Назад
Сверху