PHP code example of sulu / product-bundle
1. Go to this page and download the library: Download sulu/product-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sulu / product-bundle example snippets
sulu_route:
mappings:
Sulu\Bundle\ProductBundle\Entity\ProductTranslation:
generator: schema
options:
route_schema: /products/{object.getName()}
sulu_product:
category_root_key: ~
default_currency: 'EUR'
default_formatter_locale: 'en'
display_recurring_prices: true
fallback_locale: de
fixtures:
attributes:
- src/Acme/Bundle/ProductBundle/DataFixtures/attributes.xml
locales:
- de
- en
objects:
product:
model: Acme\Bundle\ProductBundle\Entity\Product
repository: Acme\Bundle\ProductBundle\Entity\ProductRepository
template: AcmeShopBundle:views:templates/productdetail.html.twig