Skip to main navigation Skip to main content Skip to page footer

Basket order return

An order has been successfully placed, paid for, and shipped. The customer exercises their right of return and sends back all or part of the goods.

In this case, a return order is created, which refers to the original order (via tx_shop_domain_model_basketorder.parent). The return order contains the returned products as negative entries and results in a credit note, which is used to refund the corresponding amount to the customer.

The return order thus serves to technically document the return of goods and to ensure the correct commercial processing of the original order.

stateDiagram-v2

    %% Prerequisite:
    %% the original order has been shipped (shipped_date set)

    [*] --> prepared : Return is being prepared\n(reference to original order)

    prepared --> credited : Credit note created\n(new document number,\nnegative line items)

    credited --> refunded : Amount refunded\n(manually)

    refunded --> processed : Return completed

    %% End state
    processed --> [*]

    %% Logistic events (not states)
    note right of credited
        Optional feature can be implemented
        on request:
        - Register the return\nquantity, date, note
        - Update stock level
    end note

TypoScript configuration

plugin.tx_shop.settings.basketOrder {
    orderOptions {
        return {
            status {
                prepared {
                    allowed {
                        credited =
                    }
                }
                credited {
                    allowed {
                        refunded =
                    }
                }
                refunded {
                    allowed {
                        processed =
                    }
                }
                processed {
                    allowed =
                }
            }
        }
    }
}
Documentation

TYPO3 Shop by coding.ms

An extensive shop for TYPO3 for realizing Webshops, Online-Shops or Payment-Subscriptions, comparable with tt_products, Cart or Aimeos. It includes PayPal, PayPal-Checkout, Klarna, Stripe, Bookmarks, UPS-API, invoice generation, a backend module, compare feature, graduated prices, plus product variants, filters, and tax and shipping logic for practical shop operations.

Menu
Shopping basket 0 Products

The Demo is build with*

EXT:bootstrap_package for site-package aka theme build on Bootsrap 5.

EXT:modules for user plugins like user-profile, registration, user-addresses, and more.

EXT:shop for the whole shop functionality.

EXT:questions for the FAQ page and FAQs attached in the product detail views.

EXT:glossaries for the glossaries and definitions.

EXT:fluid_fpdf for generating invoices, delivery-notes, product-sheets and more.

EXT:parsedown_extra for rendering the extension documentations from markdown to HTML.

* There are only build-in settings made using site-settings & TypoScript – no templates or other files were changed or overridden!