Bitte beachte, dass sich diese Dokumentation auf die neuste Version dieser Erweiterung bezieht. Wenn eine ältere Version eingesetzt wird, kann diese abweichen. Die jeweils passende Dokumentation befindet sich im Dokumentation-Verzeichnis der Erweiterung.
Commands
Haupterweiterung
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
Argumente
| Name | Beschreibung | Pflicht | Standardwert |
|---|---|---|---|
pages |
Comma-separated list of storage page UIDs containing the products, e.g. "12,34". If omitted, products of all pages are updated. | Nein |
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
Optionen
| Name | Kurzform | Beschreibung | Wert | Standardwert |
|---|---|---|---|---|
--container |
Required. UID of the page containing the basket order records. | Wert erforderlich, wenn Option verwendet wird | ||
--uid |
Regenerate one basket order. It must be stored on the container page (pid = container). | Wert erforderlich, wenn Option verwendet wird | ||
--all |
Regenerate all basket orders stored directly on the container page (no sub pages). | Kein Wert (Schalter) | ||
--output-dir |
Required. Target directory, created if it does not exist. | Wert erforderlich, wenn Option verwendet wird | ||
--overwrite |
Replace existing files in the target directory. Without it, only missing files are created. | Kein Wert (Schalter) | ||
--dry-run |
Simulate the processing without writing files. | Kein Wert (Schalter) |
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
Optionen
| Name | Kurzform | Beschreibung | Wert | Standardwert |
|---|---|---|---|---|
--generateCouponCode |
Generate a personal coupon code for each reminded order (requires EXT:shop_coupon). | Kein Wert (Schalter) | ||
--couponCodeLifetime |
Validity of the generated coupon code in days (only with --generateCouponCode). | Wert optional | 14 |
|
--couponCodeValue |
Discount of the generated coupon code in percent (only with --generateCouponCode). | Wert optional | 0 |
|
--couponCodeMinimumOrderValue |
Minimum order value in euro required to redeem the coupon code (only with --generateCouponCode). | Wert optional | 0 |
|
--couponCodeLabelPublic |
Public label of the coupon code shown to the customer (only with --generateCouponCode). | Wert optional | Treue-Rabatt |
Argumente
| Name | Beschreibung | Pflicht | Standardwert |
|---|---|---|---|
recipient |
Email address receiving all reminder mails (collective recipient), e.g. "shop@example.com". | Ja | |
senderEmail |
Sender email address of the reminder mails, e.g. "noreply@example.com". | Ja | |
senderName |
Sender name of the reminder mails. | Nein | 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. | Nein | 7 |
subject |
Subject of the reminder mails. | Nein | 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
Argumente
| Name | Beschreibung | Pflicht | Standardwert |
|---|---|---|---|
uid |
UID of a single export record (tx_shop_domain_model_export), e.g. "5". If omitted, all enabled presets are processed. | Nein |
