diff --git a/src/Apps/W1/Shopify/App/src/Products/Page Extensions/ShpfyItemAttributeCard.PageExt.al b/src/Apps/W1/Shopify/App/src/Products/Page Extensions/ShpfyItemAttributeCard.PageExt.al new file mode 100644 index 0000000000..092b7c2910 --- /dev/null +++ b/src/Apps/W1/Shopify/App/src/Products/Page Extensions/ShpfyItemAttributeCard.PageExt.al @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ + +namespace Microsoft.Integration.Shopify; + +using Microsoft.Inventory.Item.Attribute; + +pageextension 30128 "Shpfy Item Attribute Card" extends "Item Attribute" +{ + layout + { + addlast(content) + { + field("Shpfy Incl. in Product Sync"; Rec."Shpfy Incl. in Product Sync") + { + ApplicationArea = All; + Visible = ShopifyEnabled; + } + } + } + + var + ShopifyEnabled: Boolean; + + trigger OnOpenPage() + var + ShopMgt: Codeunit "Shpfy Shop Mgt."; + begin + ShopifyEnabled := ShopMgt.IsEnabled(); + end; +}