Search

Page tree
Skip to end of metadata
Go to start of metadata

Introduction

The purpose of this service is to create Price instances in the eZ Commerce.

Do not create Price Field directly ! Use Price Factory instead !!

API: PriceFactoryInterface


MethodDescription
public function createPriceFromResponseLine(PriceLine $responseLine, $currencyCode, $type, $useUnitPrice = false);
This method instantiates a Price entity.
It uses the content of a PriceLine and the given currency code.
public function createPrice(array $properties);
This method instantiates a Price entity.
The necessary values are passed directly within an array.
  • No labels