Download the PHP package premekkoch/elms-service without Composer
On this page you can find all versions of the php package premekkoch/elms-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download premekkoch/elms-service
More information about premekkoch/elms-service
Files in premekkoch/elms-service
Package elms-service
Short Description Nette service for comunication with ELMS distribution service (http://www.elmsservice.cz)
License MIT
Informations about the package elms-service
PremekKoch\ElmsService
ELMS Servis API communication service. It serves to create an order for sending the stored goods to the end customer.
Instalation
Configuration
1. Register new extension in config.neon
2. Set-up extension in config.neon
How to use
1. Inject an service into presenter or somewhere you need
2. Set a customer and order data
Start with creating order and customer basic data:
You can set another customer properties:
or even diferent delivery address. You can set any part of delivery address separately. If delivery address is not set, shipping will be provided to customer`s address.
Next you must specify products to delivery. You can add more products, minimaly you must set one product and shipping:
Alternatively, you can set products in bulk:
You can add special product items:
Remember: when you use CZK and cashOnDelivery, you must round an order to integers. In order cases (EURs or not cashOnDelivery) use two decimals maximally.
3. Send an order
When send fails, API returns only brief error. Email with whole request and problems descriptions should arrive from ELMS Servis soon - they checks every failed request manually.
All versions of elms-service with dependencies
nette/application Version ^3.0
nette/di Version ^3.0
nette/robot-loader Version ^3.0
ext-json Version *
ext-curl Version *