Package DE_EPAGES::Product::API::ProductAttribute
API helper functions for product attributes.
Functions
- CheckProductAttributeAlias
CheckProductAttributeAlias
Checks if a given alias can be used to create a new product attribute.
Throws an error if the alias can not be used:
AliasReserved - the alias is reserved for the system
AliasWithUmlauts - the alias contains characters that can not be used in XML
ProductAttributeExistsInOtherProductClass - attribute can not be created in
base product type as it exists already for another product type
ProductAttributeExists - attribute with this alias exists already in the
same product type or the base product type
Syntax |
CheckProductAttributeAlias($Alias);
|
Input |
- $ProductType (object)
- product type to check the alias for
- $Alias (string)
- alias to check
- $Attribute (Object)
- product attribute (optional)
|