vespolina/commerce-bundle

Vespolina Commerce bundle. Integrates vespolina libraries with Symfony2

Installs: 2 337

Dependents: 1

Suggesters: 0

Security: 0

Stars: 9

Watchers: 6

Forks: 6

Open Issues: 5

Language:JavaScript

Type:symfony-bundle

v0.5-alpha 2014-04-09 19:19 UTC

This package is auto-updated.

Last update: 2024-04-18 19:57:03 UTC


README

Build Status Total Downloads Latest Stable Version

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

1) Install VespolinaCommerceBundle

Install using composer.phar or composer binary:

$ php composer.phar require vespolina/commerce-bundle dev-master

2) Enable the bundle

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(),
    );
}

3) Required configuration:

# app/config/config.yml
sp_bower:
    bundles:
        VespolinaCommerceBundle: ~

vespolina_commerce:
    db_driver: mongodb # mongodb or orm

4) Routing options

# 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:   /