This Sylius Bundle is required to be used together with the OroCRM Integration, however you can use it for other purposes for your Sylius project.
This Sylius Bundle is more permissive regarding the data available through the API allowing for some cases to have a more performant behavior.
For example, by default, when getting channels through GET /channels
, you don't get all the details you may need for the returned channels list. This bundle allows to get more data when getting this list.
If you still wish to restrict the retrieving of some data, please keep the followings entity properties available for OroCRM to make it works correctly:
-
id (integer)
-
code (string)
-
name (string)
-
enabled (boolean)
-
createdAt (datetime)
-
updatedAt (datetime)
-
id (integer)
-
email (string)
-
firstName (string)
-
lastName (string)
-
gender (string)
-
group (array)
-
phoneNumber (string)
-
subscribedToNewsletter boolean
-
createdAt (datetime)
-
updatedAt (datetime)
-
id (integer)
-
items (array)
-
itemsTotal (integer)
-
customer (array)
-
payments (array)
-
shipments (array)
-
adjustments (array)
-
adjustmentsTotal (integer)
-
total (integer)
-
shippingAddress (array)
-
billingAddress (array)
-
currencyCode (string)
-
number (string)
-
state (string)
-
checkoutCompletedAt (datetime)
-
createdAt (datetime)
-
updatedAt (datetime)
-
channel (array)
-
localeCode (string)
-
checkoutState (string)
-
id (integer)
-
quantity (integer)
-
unitPrice (integer)
-
total (integer)
-
unitsTotal (integer)
-
adjusmtents (array)
-
adjusmtentsTotal (integer)
-
variant (array)
-
createdAt (datetime)
-
updatedAt (datetime)
-
productName (string)
- id (integer)
- amount (integer)
- state (string)
- method (array)
- currencyCode (string)
- id (integer)
- state (string)
- method (array)
- id (integer)
- type (string)
- label (string)
- amount (string)
- tracking (string)
- id (integer)
- firstName (string)
- lastName (string)
- phoneNumber (string)
- countryCode (string)
- street (string)
- city (string)
- postcode (string)
composer require diglin/sylius-advanced-api:^1.0
Add the following into the config/packages/_sylius.yml
imports:
...
- { resource: "@DiglinSyliusAdvancedApiPlugin/Resources/config/app/config.yml" }
Then clear the sylius cache with the command:
php bin/console -e prod cache:clear
- If you customized yourself the API and mainly the core API of Sylius, you may have a conflict
See LICENSE.txt
- Diglin GmbH
- https://www.diglin.com/
- @diglin_
- Follow us on github!