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

Basket order canceling (storno)

An order was successfully placed, and an order number and invoice number were assigned. However, the goods have neither been shipped nor paid for.

In this case, the original order is not deleted but rather canceled by a cancellation order.

The cancellation order references the original order (via tx_shop_domain_model_basketorder.parent), contains all items and the full amount (including shipping costs, etc.) in negative form, and serves solely to neutralize the original invoice for accounting purposes.

stateDiagram-v2

    %% Starting point: original order exists (ordered),
    %% but no payment and no shipping

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

    prepared --> refunded : Cancellation invoice created\n(new invoice number,\nnegative line items)

    refunded --> processed : Cancellation completed\nno money flow

    %% End state
    processed --> [*]

    %% Notes
    note right of refunded
        - No shipping
        - No payment
        - Pure reversal document
    end note

TypoScript configuration

plugin.tx_shop.settings.basketOrder {
    orderOptions {
        storno {
            status {
                prepared {
                    allowed {
                        refunded =
                    }
                }
                refunded {
                    allowed {
                        processed =
                    }
                }
                processed {
                    # End, but "allowed" must be defined!
                    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!