Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.
Commands
Main extension
shop:update-view-count
Recalculate the view count of shop products.
Recalculates the stored view count of all main products (no variants).
Recalculates the view count of all main products (variants are skipped). Restrict the update to specific storage pages by passing their UIDs as comma-separated list.
Examples:vendor/bin/typo3 shop:update-view-countvendor/bin/typo3 shop:update-view-count 12,34
vendor/bin/typo3 shop:update-view-count
Arguments
| Name | Description | Required | Default |
|---|---|---|---|
pages |
Comma-separated list of storage page UIDs containing the products, e.g. "12,34". If omitted, products of all pages are updated. | No |
Add-on: Shop Pro
shop:regenerate-invoices
Regenerate invoice files (PDF and, for UBL, XML) of existing basket orders into a directory.
Regenerates the invoice files of existing basket orders of one record container into a directory.No invoice numbers are assigned, no records are changed and no mails are sent.
Regenerates the invoice files of existing basket orders into a directory, e.g. for an archive or after a template change. Exactly one of --uid or --all must be given.
Behavior:
- The site is resolved from the container page, and the TypoScript of this site and page is used (plugin.tx_shop.settings). There is no separate configuration. The resolved eInvoice settings are shown at the start.
- Only orders with an existing invoice number are processed, and no new invoice numbers are assigned. Orders are loaded in batches.
- The files are created by the regular invoice generation and use the configured file name (pdf.invoice.filename). With eInvoice.generator = UBL a PDF and an XML file are created, with CII only the ZUGFeRD / Factur-X PDF.
- Files are written atomically into the target directory only. Stored invoice files, basket order records and payment data are not changed, and no emails are sent.
- Errors are reported per order without stopping the run. At the end, a summary shows found orders, generated, skipped and failed invoices, and the target directory.
- Exit code: 0 on success, 1 if a generation failed or the container/site/TypoScript cannot be resolved, 2 for invalid options.
Examples:vendor/bin/typo3 shop-pro:regenerate-invoices --container=42 --uid=123 --output-dir=/tmp/invoicesvendor/bin/typo3 shop-pro:regenerate-invoices --container=42 --all --output-dir=/tmp/invoicesvendor/bin/typo3 shop-pro:regenerate-invoices --container=42 --all --output-dir=/tmp/invoices --overwritevendor/bin/typo3 shop-pro:regenerate-invoices --container=42 --all --output-dir=/tmp/invoices --dry-run
vendor/bin/typo3 shop:regenerate-invoices --container=value
Options
| Name | Shortcut | Description | Value | Default |
|---|---|---|---|---|
--container |
Required. UID of the page containing the basket order records. | Value required, if option is used | ||
--uid |
Regenerate one basket order. It must be stored on the container page (pid = container). | Value required, if option is used | ||
--all |
Regenerate all basket orders stored directly on the container page (no sub pages). | No value (flag) | ||
--output-dir |
Required. Target directory, created if it does not exist. | Value required, if option is used | ||
--overwrite |
Replace existing files in the target directory. Without it, only missing files are created. | No value (flag) | ||
--dry-run |
Simulate the processing without writing files. | No value (flag) |
shop:send-access-expiry-reminders
Send reminder emails shortly before access durations of paid orders expire.
Sends one collective reminder mail per order whose booked access duration expires soon.Each order is reminded only once (flag reminder_sent).
Finds paid orders whose access duration expires within the given number of days and sends a reminder mail to the given recipient. Each order is reminded only once. Optionally a personal coupon code is generated and added to the mail (requires EXT:shop_coupon).
Examples:vendor/bin/typo3 shop:send-access-expiry-reminders shop@example.com noreply@example.comvendor/bin/typo3 shop:send-access-expiry-reminders shop@example.com noreply@example.com "My Shop" 3 "Your access expires soon"vendor/bin/typo3 shop:send-access-expiry-reminders shop@example.com noreply@example.com --generateCouponCode --couponCodeValue=10 --couponCodeLifetime=30
vendor/bin/typo3 shop:send-access-expiry-reminders <recipient> <senderEmail> --couponCodeLifetime=value
Options
| Name | Shortcut | Description | Value | Default |
|---|---|---|---|---|
--generateCouponCode |
Generate a personal coupon code for each reminded order (requires EXT:shop_coupon). | No value (flag) | ||
--couponCodeLifetime |
Validity of the generated coupon code in days (only with --generateCouponCode). | Value optional | 14 |
|
--couponCodeValue |
Discount of the generated coupon code in percent (only with --generateCouponCode). | Value optional | 0 |
|
--couponCodeMinimumOrderValue |
Minimum order value in euro required to redeem the coupon code (only with --generateCouponCode). | Value optional | 0 |
|
--couponCodeLabelPublic |
Public label of the coupon code shown to the customer (only with --generateCouponCode). | Value optional | Treue-Rabatt |
Arguments
| Name | Description | Required | Default |
|---|---|---|---|
recipient |
Email address receiving all reminder mails (collective recipient), e.g. "shop@example.com". | Yes | |
senderEmail |
Sender email address of the reminder mails, e.g. "noreply@example.com". | Yes | |
senderName |
Sender name of the reminder mails. | No | TYPO3 Shop-Extension |
thresholdDays |
Send a reminder if the remaining access days are less than or equal to this value. Negative values remind after expiry. | No | 7 |
subject |
Subject of the reminder mails. | No | Deine Buchungen laufen aus! |
Add-on: Shop Export
shop:export
Generate CSV exports of enabled presets and send them via email.
Generates the CSV files of enabled export presets and sends them as mail attachment.
Processes all enabled export presets whose schedule is due, writes the CSV files and sends them to the configured recipients. Pass the UID of an export record to process only this record.
Examples:vendor/bin/typo3 shop:exportvendor/bin/typo3 shop:export 5
vendor/bin/typo3 shop:export
Arguments
| Name | Description | Required | Default |
|---|---|---|---|
uid |
UID of a single export record (tx_shop_domain_model_export), e.g. "5". If omitted, all enabled presets are processed. | No |
