Download the PHP package sulu/product-base-bundle without Composer
On this page you can find all versions of the php package sulu/product-base-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package product-base-bundle
SuluProductBundle
Dependencies
Sulu:
This version of product-bundle will only work with sulu version >= 1.3
.
If you use an older sulu version please use product-bundle version
~0.16
.
Installation
Add the following to composer.json
Add the following to your application kernel:
Add the following to your admin/routing.yml
:
Configuration
Sample configuration:
Note: If you use Sulu 1.3.*
routing has to be defined as follows:
Localization
Multiple locales for managing products can be defined in the config. If non defined, 'en' is taken as default.
If the users language matches any of the given locales, that one is
displayed in the admin area. Otherwise the fallback_locale
parameter
is used.
Custom Routing
You can define custom routes by defining the sulu_route.mappings
parameter for ProductTranslation
entity.
Then you can specify the sulu_product.template
parameter to define
which template is shown when route is called.
To update routes for existing products, simply call
How the routing mechanism works
When creating a new product translation a new route is created. You then can change the route's path in the content tab.
The following properties are available when defining a route:
object
(ProductTranslation)product
(Api/Product) and of coursetranslator
Recurring prices
The property recurring prices can be disabled via parameter
display_recurring_prices
. This option hides the UI elements for
recurring prices.
Custom Entity and Repository
If you'd like to overwrite the sulu product entity you simply need to
set the objects.product
parameters.
Shop templates
For shop purposes template
can be used to define the template for
displaying product details.
Attribute Fixtures
You can write multiple attribute fixture files and define the path of your xmls in your config (as seen in the example above)
Example XML
Content type 'product'
API Documentation
The following api's have been documented: Product Addon Api Product Variant Api
Developer Documentation
The sulu product developer documentation can be found here: Developer Documentation
All versions of product-base-bundle with dependencies
doctrine/orm Version 2.5.*
willdurand/hateoas-bundle Version >=0.3
oro/doctrine-extensions Version 1.0.*
symfony-cmf/routing-bundle Version 1.2.*
sulu/sulu Version ~1.3
sulu/validation-bundle Version ~0.1
jackalope/jackalope-doctrine-dbal Version ~1.2.0
jackalope/jackalope-jackrabbit Version ~1.2.0