Skip to content

Latest commit

 

History

History
1564 lines (762 loc) · 35.5 KB

class.OrderControllerCore.md

File metadata and controls

1564 lines (762 loc) · 35.5 KB

Class OrderControllerCore

Contents

Properties

Methods

Properties

$step

public mixed $step

$nbProducts

public mixed $nbProducts

$php_self

public mixed $php_self = 'order'

$ssl

public mixed $ssl = true

$auth

public mixed $auth = false

$authRedirection

public mixed $authRedirection = false

$cart

protected mixed $cart

$cookie

protected mixed $cookie

$currentCustomerGroups

protected mixed $currentCustomerGroups

$display_column_left

public mixed $display_column_left = true

$display_column_right

public mixed $display_column_right = true

$errors

public mixed $errors = array()

$guestAllowed

public mixed $guestAllowed = false

$initialized

public mixed $initialized = false

$iso

public mixed $iso

$link

protected mixed $link

$maintenance

protected mixed $maintenance = false

$n

public mixed $n

$nb_items_per_page

public mixed $nb_items_per_page

$orderBy

public mixed $orderBy

$orderWay

public mixed $orderWay

$p

public mixed $p

$restrictedCountry

protected mixed $restrictedCountry = false

$smarty

protected mixed $smarty

$ajax

protected boolean $ajax = false

$content_only

protected string $content_only = false

$context

protected \Context $context

$css_files

public array $css_files = array()

$display_footer

protected string $display_footer

$display_header

protected boolean $display_header

$hook_list

public mixed $hook_list = array()

hook_list is used with liveEdit

$js_files

public array $js_files = array()

$json

protected mixed $json = false

$redirect_after

protected mixed $redirect_after = null

$status

protected mixed $status = ''

$template

protected string $template

Methods

__construct

mixed FrontControllerCore::__construct()

_assignAddress

mixed OrderControllerCore::_assignAddress()

Address step

_assignCarrier

mixed OrderControllerCore::_assignCarrier()

Carrier step

_assignPayment

mixed OrderControllerCore::_assignPayment()

Payment step

_assignSummaryInformations

mixed ParentOrderControllerCore::_assignSummaryInformations()

_assignWrappingAndTOS

mixed ParentOrderControllerCore::_assignWrappingAndTOS()

_checkFreeOrder

boolean ParentOrderControllerCore::_checkFreeOrder()

Check if order is free

_processCarrier

mixed ParentOrderControllerCore::_processCarrier()

_setDefaultCarrierSelection

\number ParentOrderControllerCore::_setDefaultCarrierSelection(array $carriers)

Decides what the default carrier is and update the cart with it

Arguments

  • $carriers array

_updateMessage

mixed ParentOrderControllerCore::_updateMessage($messageContent)

Arguments

  • $messageContent mixed

addCSS

mixed FrontControllerCore::addCSS($css_uri, $css_media_type)

Add one or several CSS for front, checking if css files are overriden in theme/css/modules/ directory

Arguments

  • $css_uri mixed
  • $css_media_type mixed

addJS

mixed FrontControllerCore::addJS($js_uri)

Add one or several JS files for front, checking if js files are overriden in theme/js/modules/ directory

Arguments

  • $js_uri mixed

addJquery

void ControllerCore::addJquery($version, $folder, $minifier)

Add a new javascript file in page header.

Arguments

  • $version mixed
  • $folder mixed
  • $minifier mixed

addJqueryPlugin

void ControllerCore::addJqueryPlugin($name, $folder)

Add a new javascript file in page header.

Arguments

  • $name mixed
  • $folder mixed

addJqueryUI

void ControllerCore::addJqueryUI($component, $theme, $check_dependencies)

Add a new javascript file in page header.

Arguments

  • $component mixed
  • $theme mixed
  • $check_dependencies mixed

autoStep

mixed OrderControllerCore::autoStep()

Order process controller

canonicalRedirection

mixed FrontControllerCore::canonicalRedirection($canonicalURL)

Arguments

  • $canonicalURL mixed

checkAccess

void FrontControllerCore::checkAccess()

checkAccess

display

mixed FrontControllerCore::display()

displayFooter

mixed FrontControllerCore::displayFooter($display)

Arguments

  • $display mixed

displayHeader

mixed FrontControllerCore::displayHeader($display)

Arguments

  • $display mixed

displayMaintenancePage

mixed FrontControllerCore::displayMaintenancePage()

displayRestrictedCountryPage

mixed FrontControllerCore::displayRestrictedCountryPage()

geolocationManagement

mixed FrontControllerCore::geolocationManagement($defaultCountry)

Arguments

  • $defaultCountry mixed

getController

mixed ControllerCore::getController(string $class_name, boolean $auth, boolean $ssl)

Get an instance of a controller

Arguments

  • $class_name string
  • $auth boolean
  • $ssl boolean

getCurrentCustomerGroups

mixed FrontControllerCore::getCurrentCustomerGroups()

getLiveEditFooter

mixed FrontControllerCore::getLiveEditFooter()

init

mixed OrderControllerCore::init()

Initialize order controller

initContent

mixed FrontControllerCore::initContent()

initCursedPage

mixed FrontControllerCore::initCursedPage()

initFooter

mixed FrontControllerCore::initFooter()

initHeader

mixed FrontControllerCore::initHeader()

isInWhitelistForGeolocation

mixed FrontControllerCore::isInWhitelistForGeolocation()

isTokenValid

boolean FrontControllerCore::isTokenValid()

Check if token is valid

pagination

mixed FrontControllerCore::pagination($nbProducts)

Arguments

  • $nbProducts mixed

postProcess

mixed FrontControllerCore::postProcess()

preProcess

mixed FrontControllerCore::preProcess()

process

mixed FrontControllerCore::process()

processAddress

mixed OrderControllerCore::processAddress()

processAddressFormat

mixed OrderControllerCore::processAddressFormat()

processCarrier

mixed OrderControllerCore::processCarrier()

Carrier step

productSort

mixed FrontControllerCore::productSort()

recoverCart

mixed FrontControllerCore::recoverCart()

redirect

mixed FrontControllerCore::redirect()

run

mixed ControllerCore::run()

Start controller process (this method shouldn't be overriden !)

setDefaultCarrierSelection

\number ParentOrderControllerCore::setDefaultCarrierSelection(array $carriers)

Decides what the default carrier is and update the cart with it

Arguments

  • $carriers array

setMedia

mixed ParentOrderControllerCore::setMedia()

setNoCarrier

mixed ParentOrderControllerCore::setNoCarrier()

Set id_carrier to 0 (no shipping price)

setTemplate

mixed ControllerCore::setTemplate($template)

Arguments

  • $template mixed

validateDeliveryOption

mixed ParentOrderControllerCore::validateDeliveryOption(array $delivery_option)

Validate get/post param delivery option

Arguments

  • $delivery_option array