\HasStaticAttributes
Extension for Product that allows static attributes in the same way they're used for variations. I'm separating this out because it will probably be useful in other projects.
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class HasStaticAttributes
extends DataExtension
{
- // members
- private static array $many_many = ;
- // methods
- public void updateCMSFields()
- protected callable getValuesClosure()
- public ArrayList StaticAttributes()
- public void onBeforeWrite()
Hierarchy
Extends
- DataExtension
Members
private
- $many_many
Methods
protected
public
- StaticAttributes()
- onBeforeWrite() — Add the default attribute types if any
- updateCMSFields() — Adds variations specific fields to the CMS.