Sunnysideup\Ecommerce\Config\EcommerceConfigAjaxDefinitions
This class defines all the names for IDs and Classes that are used within the e-commerce ajax framework.
Synopsis
class EcommerceConfigAjaxDefinitions
extends ViewableData
{
- // members
- protected DataObject $requestor;
- private static $prefix;
- // methods
- public void setRequestor()
- public string SideBarCartID()
- public string SmallCartID()
- public string TinyCartClassName()
- public string HiddenPageTitleID()
- public string ProductListHolderID()
- public string ProductListAjaxifiedLinkClassName()
- public string ProductListItemClassName()
- public string ProductListItemInCartClassName()
- public string ProductListItemNotInCartClassName()
- public string TableID()
- public string TableTotalID()
- public string TableMessageID()
- public string TableSubTotalID()
- public string TotalItemsTimesQuantityClassName()
- public string TotalItemsClassName()
- public string ExpectedCountryClassName()
- public string CountryFieldID()
- public string RegionFieldID()
- public string TableTitleID()
- public string CartTitleID()
- public string TableSubTitleID()
- public string CartSubTitleID()
- public string QuantityFieldName()
- public string UniqueIdentifier()
- public void Define()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Members
private
- $prefix
—
string
prefix used for all classes and IDs.
protected
- $requestor
—
SilverStripe\ORM\DataObject
the class that is requesting the ajax definitions we provide the requestor so that we can dynamically change the ids and classes, using the requestor.
Methods
public
- CartSubTitleID()
- CartTitleID()
- CountryFieldID() — class that is used in templates and in the JSON return @see CartResponse.
- Define()
- ExpectedCountryClassName() — class that is used in templates and in the JSON return @see CartResponse.
- HiddenPageTitleID()
- ProductListAjaxifiedLinkClassName()
- ProductListHolderID()
- ProductListItemClassName() — List of products in the ProductGroup page...
- ProductListItemInCartClassName() — Class used to identify that a product is in cart.
- ProductListItemNotInCartClassName() — Class used to identify that a product is not in cart.
- QuantityFieldName() — id that is used in templates and in the JSON return @see CartResponse.
- RegionFieldID() — class that is used in templates and in the JSON return @see CartResponse.
- SideBarCartID() — id that is used in templates and in the JSON return @see CartResponse The Side bar cart ID is used for populating a small cart on the side bar.
- SmallCartID() — Small representation of cart.
- TableID()
- TableMessageID() — id that is used in templates and in the JSON return @see CartResponse.
- TableSubTitleID()
- TableSubTotalID() — id that is used in templates and in the JSON return @see CartResponse.
- TableTitleID()
- TableTotalID()
- TinyCartClassName() — class that is used in templates and in the JSON return @see CartResponse The Menu Cart class is used for populating a tiny cart on your site (e.g. you have 3 items in your cart ($1343)).
- TotalItemsClassName() — class that is used in templates and in the JSON return @see CartResponse.
- TotalItemsTimesQuantityClassName() — class that is used in templates and in the JSON return @see CartResponse.
- UniqueIdentifier() — returns a string that can be used as a unique Identifier for use in templates, etc...
- setRequestor() — set the requestor.