SilverCommerce\GroupedProducts\ProductGroupOptionsetField
Custom version of the optionset field designed track more information against each option (so you can gain product info via JS)
Synopsis
class ProductGroupOptionsetField
extends OptionsetField
{
- // members
- private string $price_classname = "catalogue-product-price";
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- // methods
- protected ArrayData getFieldOption()
- protected bool isDisabledValue()
- public string pricehtml()
- public string getPriceClassName()
- public ProductGroupOptionsetField setPriceClassName()
Hierarchy
Extends
- SilverStripe\Forms\OptionsetField
Members
private
- $allowed_actions
- $price_classname
- $url_handlers
Methods
protected
- getFieldOption() — Build a field option for template rendering
- isDisabledValue() — Overwrite disabled value to check stock levels (if installed)
public
- getPriceClassName() — Get the value of price_classname
- pricehtml() — Action that gets the nice price of a product (via an AJAX call)
- setPriceClassName() — Set the value of price_classname