Vespolina Ecommerce integration with Symfony2
The admin page has javascript dependencies that can be handled by bower using the SpBowerBundle. If you don't have bower installed, you can install it using npm
$ npm install -g bower
Install using composer.phar or composer binary:
$ php composer.phar require vespolina/commerce-bundle dev-master
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new FOS\RestBundle\FOSRestBundle(),
new Sp\BowerBundle\SpBowerBundle(),
new Vespolina\CommerceBundle\VespolinaCommerceBundle(),
);
}
# app/config/config.yml
sp_bower:
bundles:
VespolinaCommerceBundle: ~
vespolina_commerce:
db_driver: mongodb # mongodb or orm
# app/config/routing.yml
vespolina_admin:
resource: "@VespolinaCommerceBundle/Resources/config/routing/admin.yml"
prefix: /admin/
vespolina_commerce_checkout:
resource: "@VespolinaCommerceBundle/Resources/config/routing/checkout.xml"
prefix: /
vespolina_commerce_cart:
resource: "@VespolinaCommerceBundle/Resources/config/routing/cart.xml"
prefix: /
vespolina_commerce_product:
resource: "@VespolinaCommerceBundle/Resources/config/routing/product.xml"
prefix: /
vespolina_taxonomy:
resource: "@VespolinaCommerceBundle/Resources/config/routing/taxonomy.xml"
prefix: /