Download the PHP package sulu/sulu-sales without Composer
On this page you can find all versions of the php package sulu/sulu-sales. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sulu-sales
sulu-sales
Configuration
The following description contains the default configuration for the different sales bundles.
SuluSalesCoreBundle
SuluSalesOrderBundle
Confirmation emails are only sent, when using CartManager for creating orders.
You also need to tell doctrine, how to resolve the target entities:
Pdf templates dynamically
The dynamically
pdf template can be configured easily. That way it is possible to dynamically change the look of the
pdf generated from a given order object. To add even more flexibility it is possible to configure the
dynamically_base
template which is the template, that will be extended by dynamically
. Like: dynamically extends
dynamically_base.
Since there are defaults specified and default templates exist in the bundle, it is not strictly necessary to configure those parameters.
Pdf response type
The way the order bundle reacts on http requests that return a pdf. It is possible to configure the response so that, for example, it is returned as inline
so that the pdf file would be shown in a new tab, or as attachment
. As an attachment it would start a download without opening the file in the browser.
These configurations can be set in the parameters.yml
-file of your application under the key:
The bundle-sided configuration for this key defaults to inline
.
Pdf naming prefixes
The naming prefixes, that can be configured are : pdf_order_confirmation_name_prefix
and
pdf_order_dynamically_name_prefix
. That way it is easily configurable how the returned file is named. So if a dynamic
template is rendered, the pdf_order_dynamically_name_prefix
will be used and suffixed with the order number. Applying
the same logic, the filename for the confirmation pdf is generated.
If not configured, the default values are applied. Those are like shown in the example config above.
Routing
The routing of the Bundle depends on the routing files that live in the respective Resources/config/routing
directories.
Those are, grouped by bundle:
- SuluSalesOrderBundle:
- routing.xml
- routing_api.xml
- routing_website.xml
- SuluSalesCoreBundle:
- routing.xml
- SuluSalesShippingBundle:
- routing.xml
- routing_api.xml
It is also important to know, that the routing for tests is configured separately. (Check the Tests/ directory)
How to run tests
The following command is going to run tests for all sales bundles:
Documentation
Extend Sales Order
You can use sulu persistence to extend the Order entity and repository.
Events
The following events are triggered by the system:
Constant | Parameter | Triggered | Parameters |
---|---|---|---|
SalesOrderEvents:StatusChanged | sulu_sales_order.events.status_changed | Triggered when the status of an order changes. | SuluSalesOrderStatusChangeEvent |
All versions of sulu-sales with dependencies
doctrine/orm Version ~2.5
willdurand/hateoas-bundle Version >=0.3 <2.0
oro/doctrine-extensions Version 1.0.*
symfony-cmf/routing-bundle Version 1.2.*
sulu/sulu Version ~1.2
sulu/product-bundle Version 0.17.*
sulu/pricing-bundle Version ~0.5
massive/pdf-bundle Version ~0.1
sulu/contact-extension-bundle Version ~0.6