Giter Site home page Giter Site logo

sylius / customerordercancellationplugin Goto Github PK

View Code? Open in Web Editor NEW
22.0 16.0 10.0 241 KB

Plugin that allows customers to cancel the placed order before it is processed.

PHP 79.75% JavaScript 8.15% Gherkin 6.50% Twig 1.62% Shell 3.98%
sylius sylius-plugin php

customerordercancellationplugin's Introduction

โš ๏ธ BEWARE! This repository has been deprecated and will not be maintained or evolved by the Sylius Team. You can still use it with compatible Sylius versions, but at your own risk, as no bugs will be fixed on it.

Customer Order Cancellation Plugin

This plugin allows customers to cancel the placed order before it is processed.

Screenshot showing the customer's orders page with cancel buttons

Business Value

So far, once a Customer changed their mind about already placed Order, it was up to the Administrator to cancel the order. However, we have asked ourselves a question - why can't Customer cancel the order when it is yet to be paid? Here comes Customer Order Cancellation Plugin that allows canceling the unpaid order straight from the order history view.

Installation

Beware!

This installation instruction assumes that you're using Symfony Flex. If you don't, take a look at the legacy installation instruction. However, we strongly encourage you to use Symfony Flex, it's much quicker! :)

To install plugin, just require it with composer:

composer require sylius/customer-order-cancellation-plugin

Remember to allow community recipes with composer config extra.symfony.allow-contrib true or during plugin installation process

Extension points

Customer Order Cancellation plugin uses Order entity derived from SyliusCoreBundle as well as its already defined states.

Default plugin implementation assumes that an Order can be canceled by a Customer when its payment state is awaiting_payment and shipment state equals ready. This conditions can be easily changed by creating a custom implementation of CustomerOrderCancellationCheckerInterface or decorating the existing one.

Security issues

If you think that you have found a security issue, please do not use the issue tracker and do not post it publicly. Instead, all security issues must be sent to [email protected].

customerordercancellationplugin's People

Contributors

bartoszpietrzak1994 avatar gsadee avatar lchrusciel avatar pamil avatar zales0123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

customerordercancellationplugin's Issues

[BUG] - TreeBuilderConfig error

//Symfony\Component\Config\Definition\Builder\TreeBuilder::__construct(),
//0 passed in /Users/lionelk/Documents/Projets/babitest/babichic/sylius/vendor/sylius/customer-order-cancellation-plugin/src/DependencyInjection/Configuration.php
//on line 17 and at least 1 expected

Recommended after setting up a current Sylius project

After setting up a current Sylius project this plugin is being recommended.

As far as I can see, it cannot be installed out of the box and doesn't seem to be maintained at all.

Please consider adding a notice to this repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.