Symfony 2 bundle for dzangocart subscription accounts
- Declare your entities to be subscription-type products
- Manage different pricing plans and their features
- Display a pricing page on your web site
- Easy links to your dzangocart store
While this bundle is primarily intended for owners of a Dzangocart store, most of its feature can still be used by anyone.
Add the following to your project's composer.json
file:
{
require: {
"dzangocart/subscription-bundle": "dev-master"
}
}
Register the bundle:
#app/AppKernel.php
public function registerBundles()
{
$bundles = array(
…
new DzangocartSubscriptionBundle()
);
return $bundles;
}
If you are using assetic, add the bundle to the assetic configuration:
#config.yml
assetic:
DzangocartSubscriptionBundle
TODO
TODO
For your convenience, several fixtures are included in the bundle, under Resources\fixtures
.
Some of these fixtures only have demonstration value (plans, features) but others like units and periods, may be of some practical use. To load the fixtures into your database using propel:
php app/console propel:fixtures:load @DzangocartSubscriptionBundle