piedweb/reservation-bundle

This package is abandoned and no longer maintained. The author suggests using the pushword/core package instead.

Transform your CMS in a reservation platform.

dev-master 2018-12-13 21:04 UTC

This package is auto-updated.

Last update: 2022-02-24 23:59:21 UTC


README

PiedWeb.com

Reservation Bundle

Transform your PiedWeb CMS in a reservation platform.

This bundle provide a complete order process manager (product, basket, order, payment).

Installation

Via Packagist :

# Get the Bundle
composer require piedweb/reservation-bundle

# Set basic conf:

# Copy files from install to your src folder (erase)

# Add route in `config/routes.yaml`
reservation:
    resource: '@PiedWebReservationBundle/Resources/config/routes/reservation.yaml'

# Edit config/bundles.php and reorder with this in first:
    PiedWeb\ReservationBundle\PiedWebReservationBundle::class => ['all' => true],
# (because now, we use app.entity_order in CMSBundle and we need to load ReservationBundle's config before)

# Config payum's gateways in `config/packages/payum.yaml` (eg :
payum:
    gateways:
        paypal_checkout_button:
            # https://developer.paypal.com/docs/checkout/integrate/#4-test-it
            factory: paypal_express_checkout
            #username: ''
            #password: ''
            #signature: ''
            #sandbox: true

Usage

Customize last step of tunner (reservation succeed)

By creating a page with step-6 as slug. Only main content will be used. Think to disable publication by putting the creation date today + 100 years.

Add a new Paiment Method

  • Create Payment Method. See src/PaymentMethod for exemple.

  • Create Payment Controller Action See src/Controller/PaymentController.php for exemple.

  • Create the corresponding twig file in your templates/bundles/PiedWebReservationBundle/PaymentMethod/HumanId.html.twig

  • Edit config :

piedweb_reservation:
    ...
    payment_method:
        - PiedWeb\ReservationBundle\PaymentMethod\PaypalCheckoutExpress
        - PiedWeb\ReservationBundle\PaymentMethod\Cash
        - YourNewMethodClass

TODO

  • test
  • Add other way of payment (currently managed : paypal express checkout)
  • test with international and translate

Later

Usage

Contributors

Check coding standard before to commit :

php-cs-fixer fix src --rules=@Symfony --verbose && php-cs-fixer fix src --rules='{"array_syntax": {"syntax": "short"}}' --verbose

License

MIT (see the LICENSE file for details)