Переделал оформление заказа из 6 шагов в 2, в theme/*themeName*/template/checkout
добавил в начале файла класс к блокам div у которого в css(stylesheet) прописал display:none
<div id="checkout" class="[attachment=4121:checkout.tpl.zip]">
<div class="checkout-heading"><?php echo $text_checkout_option; ?></div>
<div class="checkout-content"></div>
</div>
css
.nevidim {
display: none;
}
ещё имитировал клики по кнопкам
success: function(html) {
$('#checkout .checkout-content').html(html);
$('#checkout .checkout-content').slideDown('slow');
$('#button-account').click();
},
получается пользователь заходит на страницу оформления заказа, ненужные шаги скрыты от него, но всё грузится и проходит без его ведома, он вводит только адрес и подтверждает заказ, всё работает нормально но когда обновляешь страницу или пытаешься вернутся назад с сайта платёжной системы выходит ошибка
Not Found
Not Found
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="ru" xml:lang="ru">
<head>
...
<div id="content"> <div class="breadcrumb">
<a href="http://localhost/sirsh/index.php?route=common/home">Главная</a>'>http://localhost/sirsh/index.php?route=common/home">Главная</a>
» <a href="http://localhost/sirsh/index.php?route=checkout/undefined">Запрашиваемая страница не найдена!</a>
</div>
<h1>Запрашиваемая страница не найдена!</h1>
<div class="content">Запрашиваемая страница не найдена!</div>
<div class="buttons">
<div class="right"><a href="http://localhost/sirsh/index.php?route=common/home" class="button">Продолжить</a></div>
checkout.tpl.zip