SilverCart\Checkout\AddressCheckoutStep
AddressCheckoutStep.
Trait to provide address related methods to a checkout step.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2018 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
trait AddressCheckoutStep
{
- // members
- protected Address $invoiceAddress = NULL;
- protected Address $shippingAddress = NULL;
- protected bool $invoiceAddressIsShippingAddress = false;
- // methods
- public Address getInvoiceAddress()
- public Address getShippingAddress()
- public bool getInvoiceAddressIsShippingAddress()
- public CheckoutStep setInvoiceAddress()
- public CheckoutStep setShippingAddress()
- public CheckoutStep setInvoiceAddressIsShippingAddress()
- public CheckoutStep initAddressData()
- public Address initAddress()
Hierarchy
Members
protected
- $invoiceAddress
—
\SilverCart\Model\Customer\Address
Invoice address. - $invoiceAddressIsShippingAddress
—
SilverCart\Checkout\bool
Determines whether the invoice address is also used as shipping address. - $shippingAddress
—
\SilverCart\Model\Customer\Address
Shipping address.
Methods
public
- getInvoiceAddress() — Returns the invoice address.
- getInvoiceAddressIsShippingAddress() — Returns whether the invoice address is also used as shipping address.
- getShippingAddress() — Returns the shipping address.
- initAddress() — Initializes a single address (either invoice or shipping).
- initAddressData() — Initializes the address data.
- setInvoiceAddress() — Sets the invoice address.
- setInvoiceAddressIsShippingAddress() — Sets whether the invoice address is also used as shipping address.
- setShippingAddress() — Sets the shipping address.