SilverCart\Model\Pages\CartPageController
CartPage Controller class.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class CartPageController
extends PageController
{
- // constants
- const SESSION_KEY_CONTINUE_SHOPPING_LINK = 'SilverCart.CartPage.ContinueShoppingLink';
- // members
- private static array $allowed_actions = ;
- private static bool $show_description_in_print_preview = false;
- protected Checkout $checkout = NULL;
- // methods
- public static void setContinueShoppingLink()
- public static string getContinueShoppingLink()
- protected void init()
- public boolean getEditableShoppingCart()
- public Checkout getCheckout()
- public CheckoutFormStep2 getCheckoutContext()
- protected ShoppingCartPosition getPositionByID()
- public IncrementPositionQuantityForm IncrementPositionQuantityForm()
- public DecrementPositionQuantityForm DecrementPositionQuantityForm()
- public RemovePositionForm RemovePositionForm()
- public bool ShowDescriptionInPrintPreview()
Hierarchy
Extends
- PageController
Constants
Name | Value |
---|---|
SESSION_KEY_CONTINUE_SHOPPING_LINK | 'SilverCart.CartPage.ContinueShoppingLink' |
Members
private
- $allowed_actions
—
array
List of allowed actions. - $show_description_in_print_preview
—
SilverCart\Model\Pages\bool
Determines whether to show a positions description text in print preview.
protected
- $checkout
—
SilverCart\Checkout\Checkout
Checkout.
Methods
protected
- getPositionByID() — Returns the shopping cart position by the given ID
- init() — Initialise the shopping cart.
public
- DecrementPositionQuantityForm() — Returns the form for decrementing the amount of this position.
- IncrementPositionQuantityForm() — Returns the form for incrementing the amount of this position.
- RemovePositionForm() — Returns the form for removing this position.
- ShowDescriptionInPrintPreview() — Returns whether to show a positions description text in print preview.
- getCheckout() — Returns the checkout.
- getCheckoutContext() — Returns an instance of CheckoutFormStep2 to represent a valid checkout context.
- getContinueShoppingLink() — Returns the Continue Shopping Link.
- getEditableShoppingCart() — Indicates wether ui elements for removing items and altering their quantity should be shown in the shopping cart templates.
- setContinueShoppingLink() — Sets the Continue Shopping Link.