Class CartController

Class CartController

HttpViewController implements HttpViewControllerInterface
CartController
Package: HttpViewControllers
Category: System
Extends: HttpViewController
Located at Controllers/HttpView/ShopAjax/CartController.inc.php

Methods summary

public actionDefault( void ) : JsonHttpControllerResponse
public actionBuyProduct( void ) : JsonHttpControllerResponse
public actionAdd( void ) : JsonHttpControllerResponse
public actionDelete( void ) : JsonHttpControllerResponse
public actionUpdate( void ) : JsonHttpControllerResponse
public actionRedeemGift( void ) : JsonHttpControllerResponse
protected _performAction( string $p_action ) : boolean
protected _getCartJson( void ) : array

Builds a JSON array that contains the HTML snippets to build the current shopping cart

protected _getGiftJson( void ) : array

Builds a JSON array that contains the HTML snippets to build the voucher redeem modal

protected _getCartContentView( void ) : ShoppingCartContentView

Returns an initialized ShoppingCartContentView object

protected _tearDownTemporarySessionData( void )

Resets some session data that is set within the build methods of the content views

protected _getProducts( OrderDetailsCartContentView $orderDetailsCartContentView ) : array

Gets a JSON array of HTML snippets to build the product listing of the current shopping cart content

protected _getContents( ShoppingCartContentView $shoppingCartContentView ) : array

Gets a JSON array of HTML snippets to build the content of the current shopping cart apart from its products.

protected _getGiftContents( ShoppingCartContentView $shoppingCartContentView ) : array

Gets a JSON array that contains the HTML snippet for the content of the voucher redeem modal

protected _getTotals( OrderDetailsCartContentView $orderDetailsCartContentView ) : mixed|string

Gets the HTML for the totals block

protected _getShippingInformation( void ) : mixed|string

Gets the HTML for the shipping information

protected _getGiftLayer( void ) : mixed|string

Gets th HTML for the voucher redeem modal

protected _getShoppingCartButton( ShoppingCartContentView $shoppingCartContentView ) : mixed|string

Gets the HTML for all available checkout buttons

protected _getMessages( ShoppingCartContentView $shoppingCartContentView ) : mixed|string

Gets the HTML for all messages/warnings

protected _getInfoMessages( ShoppingCartContentView $shoppingCartContentView ) : string

Gets the HTML for all info messages.

protected _getGiftCartContent( void ) : mixed|string

Gets the HTML for the content of the voucher redeem modal

Methods inherited from HttpViewController

__construct(), _callActionMethod(), _getPostData(), _getPostDataCollection(), _getQueryParameter(), _getQueryParametersCollection(), _getServerData(), _render(), _validatePageToken(), getTemplateFile(), proceed()

Properties summary

protected $turboBuyNow : boolean

$turboBuyNow

true
protected $showCart : boolean

$showCart

false
protected $showDetails : boolean

$showDetails

false

Properties inherited from HttpViewController

$assets, $contentView, $httpContextReader, $httpResponseProcessor, $postDataArray, $queryParametersArray, $serverDataArray