Class SteppedCheckout
Расширение для подключения к странице
пошаговой формы заказа За основу взят
аналогичный класс от sshop TODO добавить
итератор для шагов чтобы можно было
выводить их список с указанием текущего
положения формат (ID, Title, Link, IsCurrent, IsPast, IsFuture,
Pos)
-
Extension
-
SteppedCheckout
Methods summary
public static
|
#
setup( mixed $steps = null )
Настраивает шаги формы и подключает к
CheckoutPage_Controller нужные расширения
Настраивает шаги формы и подключает к
CheckoutPage_Controller нужные расширения
|
public
|
#
onAfterInit( )
Redirect back to start of checkout if no cart started
Redirect back to start of checkout if no cart started
|
public
|
#
IsCurrentStep( mixed $name )
Check if passed action is the same as the current step
Check if passed action is the same as the current step
|
public
|
#
IsPastStep( mixed $name )
Check if passed action is for a step before current
Check if passed action is for a step before current
|
public
|
#
IsFutureStep( mixed $name )
Check if passed action is for a step after current
Check if passed action is for a step after current
|
public
DataObjectSet
|
#
StepsList( mixed $activeOnly = false )
Возвращает список шагов процесса
оформления заказа со ссылками, параметрами
LinkingMode, LinkOrCurrent и Active LinkingMode = filled | current | future
LinkOrCurrent = link | current Active = 1 - шаг доступен, 0 - шаг
пропускается
Возвращает список шагов процесса
оформления заказа со ссылками, параметрами
LinkingMode, LinkOrCurrent и Active LinkingMode = filled | current | future
LinkOrCurrent = link | current Active = 1 - шаг доступен, 0 - шаг
пропускается
Returns
|
public
|
#
index( )
Get first step from stored steps
Get first step from stored steps
|
Methods inherited from Extension
__construct(),
clearOwner(),
getOwner(),
get_classname_without_arguments(),
setOwner()
Magic methods summary
Properties summary
public static
mixed
|
$first_step
|
|
public static
mixed
|
$steps
|
#
Массив шагов (ассоциативный)
Массив шагов (ассоциативный)
формат: 'название_шага' => 'Класс_шага'
Класс_шага должен иметь action название_шага -
на нее передается управление при переходе
на шаг
See
|
Properties inherited from Extension
$allowed_actions,
$class,
$owner,
$ownerBaseClass
[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the
Silverstripe Forums to ask development related questions.
-