Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Orders
    • Serializers
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Interfaces
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • CartController
  • CartDropdownController
  • CartShippingCostsController
  • CheckQuantityController
  • CheckStatusController
  • CookieBarController
  • CreateGuestController
  • CreateRegistreeController
  • ExtraContentController
  • FilterController
  • ImageRequestController
  • JsTranslationsController
  • LiveSearchController
  • PayPalConfigurationController
  • PayPalController
  • ProductQuestionController
  • SharedShoppingCartConfigurationController
  • SharedShoppingCartController
  • ShipcloudController
  • StyleEdit3AuthenticationController
  • WishListController

Class CartController

Class CartController

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

Methods summary

public JsonHttpControllerResponse
# actionDefault( )

Returns

JsonHttpControllerResponse

Todo

use GET and POST REST-API like

Overrides

HttpViewController::actionDefault
public JsonHttpControllerResponse
# actionBuyProduct( )

Returns

JsonHttpControllerResponse

Todo

use GET and POST REST-API like
public JsonHttpControllerResponse
# actionAdd( )

Returns

JsonHttpControllerResponse

Todo

use GET and POST REST-API like
public JsonHttpControllerResponse
# actionDelete( )

Returns

JsonHttpControllerResponse

Todo

use GET and POST REST-API like
public JsonHttpControllerResponse
# actionUpdate( )

Returns

JsonHttpControllerResponse

Todo

use GET and POST REST-API like
public JsonHttpControllerResponse
# actionRedeemGift( )

Returns

JsonHttpControllerResponse

Todo

use GET and POST REST-API like
protected boolean
# _performAction( string $p_action )

Parameters

$p_action

Returns

boolean
protected array
# _getCartJson( )

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

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

Returns

array
JSON array of the current shopping cart
protected array
# _getGiftJson( )

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

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

Returns

array
JSON array of the contents
protected ShoppingCartContentView
# _getCartContentView( )

Returns an initialized ShoppingCartContentView object

Returns an initialized ShoppingCartContentView object

Returns

ShoppingCartContentView
protected
# _tearDownTemporarySessionData( )

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

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

protected array
# _getProducts( OrderDetailsCartContentView $orderDetailsCartContentView )

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

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

Parameters

$orderDetailsCartContentView

Returns

array
JSON array of the shopping cart content
protected array
# _getContents( ShoppingCartContentView $shoppingCartContentView )

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

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

Parameters

$shoppingCartContentView

Returns

array
JSON array of the informational content (without products) of the shopping cart
protected array
# _getGiftContents( ShoppingCartContentView $shoppingCartContentView )

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

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

Parameters

$shoppingCartContentView

Returns

array
JSON array of the contents
protected mixed|string
# _getTotals( OrderDetailsCartContentView $orderDetailsCartContentView )

Gets the HTML for the totals block

Gets the HTML for the totals block

Parameters

$orderDetailsCartContentView

Returns

mixed|string
protected mixed|string
# _getShippingInformation( )

Gets the HTML for the shipping information

Gets the HTML for the shipping information

Returns

mixed|string
protected mixed|string
# _getGiftLayer( )

Gets th HTML for the voucher redeem modal

Gets th HTML for the voucher redeem modal

Returns

mixed|string
protected mixed|string
# _getShoppingCartButton( ShoppingCartContentView $shoppingCartContentView )

Gets the HTML for all available checkout buttons

Gets the HTML for all available checkout buttons

Parameters

$shoppingCartContentView

Returns

mixed|string
protected mixed|string
# _getMessages( ShoppingCartContentView $shoppingCartContentView )

Gets the HTML for all messages/warnings

Gets the HTML for all messages/warnings

Parameters

$shoppingCartContentView

Returns

mixed|string
protected mixed|string
# _getGiftCartContent( )

Gets the HTML for the content of the voucher redeem modal

Gets the HTML for the content of the voucher redeem modal

Returns

mixed|string

Methods inherited from HttpViewController

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

Properties summary

protected boolean $turboBuyNow

$turboBuyNow

$turboBuyNow

# true
protected boolean $showCart

$showCart

$showCart

# false
protected boolean $showDetails

$showDetails

$showDetails

# false

Properties inherited from HttpViewController

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

API documentation generated by ApiGen