2017 © Pedro PelĂĄez
 

sylius-plugin cart-management-plugin

A Plugin to save and fetch carts in Sylius.

image

behappy/cart-management-plugin

A Plugin to save and fetch carts in Sylius.

  • Thursday, June 28, 2018
  • by Roshyo
  • Repository
  • 4 Watchers
  • 1 Stars
  • 46 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

sylius-cart-management

A Plugin to save and fetch carts in Sylius., (*1)

Installation-procedure

$ composer require behappy/cart-management-plugin

Enable the plugin

// in app/AppKernel.php
public function registerBundles() {
    $bundles = array(
        // ...
        new \BeHappy\SyliusCartManagementPlugin\BeHappySyliusCartManagementPlugin(),
    );
    // ...
}
#in app/config/config.yml
imports:
    ...
    - { resource: "@BeHappySyliusCartManagementPlugin/Resources/config/config.yml" }
    ...
# in routing.yml
...
behappy_cart_management_plugin.shop:
    resource: '@BeHappySyliusCartManagementPlugin/Resources/config/routing.yaml'
    prefix: /
...

Generate database

Simply launch, (*2)

php bin/console doctrine:schema:update --dump-sql --force

That's it !

You now have access to multiple new routes to manage your customer's carts, such as, (*3)

behappy_cart_management_plugin.cart.save
behappy_cart_management_plugin.cart.load
behappy_cart_management_plugin.account.saved_cart_list
behappy_cart_management_plugin.account.saved_cart_show
behappy_cart_management_plugin.account.saved_cart_delete

At the moment, only front office is supported by this plugin, but back will come soon enough., (*4)

Feel free to contribute

You can also ask your questions at the mail address in the composer.json mentioning this package., (*5)

Other

You can also check our other packages (including Sylius plugins) at https://github.com/BeHappyCommunication, (*6)

The Versions