Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • 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
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • 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
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

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

Class SharedShoppingCartController

Class SharedShoppingCartController

HttpViewController implements HttpViewControllerInterface
Extended by SharedShoppingCartController
Package: HttpViewControllers
Category: System
Located at Controllers/HttpView/Shop/SharedShoppingCartController.inc.php

Methods summary

public JsonHttpControllerResponse
# actionDefault( )

Adds products of a shared shopping cart to the current shopping cart of the customer .

Adds products of a shared shopping cart to the current shopping cart of the customer .

Returns

JsonHttpControllerResponse

Overrides

HttpViewController::actionDefault
public JsonHttpControllerResponse
# actionStoreShoppingCart( )

Stores the current shopping cart content and creates a hash to address the shopping cart.

Stores the current shopping cart content and creates a hash to address the shopping cart.

Returns

JsonHttpControllerResponse
protected array
# _getCart( )

Extracts product information from the current shopping cart. The returned array is structured as follows: array( productId => , quantity => , [combiId => ], [attributes => array( attributeId => , attributeValueId => )] )

Extracts product information from the current shopping cart. The returned array is structured as follows: array( productId => , quantity => , [combiId => ], [attributes => array( attributeId => , attributeValueId => )] )

Returns

array
Am array of product information
protected string
# _storeShoppingCart( array $products )

Stores the given product information as a shopping cart. The expected array parameter has to be structured as follows: array( productId => , quantity => , [combiId => ], [attributes => array( attributeId => , attributeValueId => )] )

Stores the given product information as a shopping cart. The expected array parameter has to be structured as follows: array( productId => , quantity => , [combiId => ], [attributes => array( attributeId => , attributeValueId => )] )

Parameters

$products
The product information to store

Returns

string
The hash of the stored shopping cart
protected array|mixed
# _getSharedCart( )

Gathers shopping cart information from a stored cart in JSON format.

Gathers shopping cart information from a stored cart in JSON format.

Returns

array|mixed
The fetched cart information
protected
# _addProductToCart( PropertiesControl $propertiesControl, stdClass $product )

Adds a product from given product information to the current shopping cart.

Adds a product from given product information to the current shopping cart.

Parameters

$propertiesControl
An instance of the PropertiesControl
$product
Cart product information

Methods inherited from HttpViewController

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

Properties summary

Properties inherited from HttpViewController

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

API documentation generated by ApiGen