SilverCommerce\GroupedProducts\GroupedProduct
"Children" products of a product grouping
Synopsis
class GroupedProduct
extends Product
{
- // constants
- const GROUP_SORT_FIELD = 'SortOrder';
- // members
- private static string $table_name = 'GroupedProduct';
- private static string $singular_name = 'Grouped Product';
- private static string $plural_name = 'Grouped Products';
- private static string $description = "'Child' of a product grouping";
- private static array $db = ;
- private static array $has_one = ;
- // methods
- public float getBasePrice()
- public float getNoTaxPrice()
- public float getTaxAmount()
- public string getTaxString()
- public string RelativeLink()
- public SS_List SortedImages()
- public FieldList getCMSFields()
Hierarchy
Extends
- Product
Constants
Name | Value |
---|---|
GROUP_SORT_FIELD | 'SortOrder' |
Members
private
- $db
- $description
—
string
Description for this object that will get loaded by the website when it comes to creating it for the first time. - $has_one
- $plural_name
—
string
Human-readable plural name - $singular_name
—
string
Human-readable singular name. - $table_name
Methods
public
- RelativeLink() — Overwrite default relative link to link to the parent
- SortedImages() — If no images set on grouped product, try to get from group
- getBasePrice() — If price is not set, try to get price of parent
- getCMSFields() — Simplify product fields
- getNoTaxPrice() — If price is not set, try to get price of parent
- getTaxAmount() — If price is not set, try to get tax of parent
- getTaxString() — If price is not set, try to get tax string of parent