Test-ShopifyOrderDocumentDownload

EulandaXtools — Funktionsreferenz

Test-ShopifyOrderDocumentDownload

ÜBERSICHT

Prüft ob die OrderDocumentDownload-Installation im Shopify-Theme vorhanden ist.

SYNTAX

Test-ShopifyOrderDocumentDownload [-Shop] <string> [-Token] <string> [-ApiVersion] <string>
    [[-ThemeId] <long>] [[-TimeoutSec] <int>] [<CommonParameters>]

BESCHREIBUNG

Prüft ob das Liquid-Snippet und der Render-Tag für Bestelldokument-Downloads im aktiven Shopify-Theme installiert sind. Nutzt Get-ShopifyThemeList und Get-ShopifyThemeAsset zur Prüfung.

PARAMETER

-Shop

Type: string

Shopify-Shop-Domain, z.B. 'mein-shop.myshopify.com'.

-Token

Type: string

Admin API Access Token (shpat_...) der Custom App.

-ApiVersion

Type: string

API-Version, z.B. '2025-01'.

-ThemeId

Type: long

Optionale Theme-ID. Wenn nicht angegeben, wird das aktive Theme verwendet.

-TimeoutSec

Type: int
Default: 60

HTTP Timeout in Sekunden.

AUSGABEN

pscustomobject -- Objekt mit Installed, SnippetExists, RenderTagExists, ThemeId, ThemeName.

BEISPIELE

Test-ShopifyOrderDocumentDownload -Shop 'mein-shop.myshopify.com' `
  -Token 'shpat_abc123' -ApiVersion '2025-01'