Factories
Model Factory
To redefine model attributes, set your own attributes like this (make sure to implement the corresponding interface):
opendxp_headless_ecommerce:
model_factory:
OpenDxp\Bundle\HeadlessEcommerceBundle\Model\ProductPrice: App\Model\ProductPrice
Supported Models
- OpenDxp\Bundle\HeadlessEcommerceBundle\Model\ProductPrice
- OpenDxp\Bundle\HeadlessEcommerceBundle\Model\ShippingPrice
Route Document Attribute Factory
To redefine the route document attributes, set your own attributes like this:
opendxp_headless_ecommerce:
route_document_attribute_factory:
OpenDxp\Bundle\HeadlessEcommerceBundle\RouteDocument\Attribute\CustomerAttribute: App\Ecommerce\RouteDocument\Attribute\CustomerAttribute
Supported Attributes
- OpenDxp\Bundle\HeadlessEcommerceBundle\RouteDocument\Attribute\CartAttribute
- OpenDxp\Bundle\HeadlessEcommerceBundle\RouteDocument\Attribute\CountryAttribute
- OpenDxp\Bundle\HeadlessEcommerceBundle\RouteDocument\Attribute\CurrencyAttribute
- OpenDxp\Bundle\HeadlessEcommerceBundle\RouteDocument\Attribute\CustomerAttribute
- OpenDxp\Bundle\HeadlessEcommerceBundle\RouteDocument\Attribute\StoreAttribute