From 78ab194d74948cd39d1ee95ed29fcb9fe42d4925 Mon Sep 17 00:00:00 2001 From: Mike Murray Date: Tue, 3 Mar 2020 17:46:47 -0800 Subject: [PATCH 1/3] feat: update translations Signed-off-by: Mike Murray --- src/plugins/translations/i18n/en.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/plugins/translations/i18n/en.json b/src/plugins/translations/i18n/en.json index ad787a3db76..be949cc2126 100644 --- a/src/plugins/translations/i18n/en.json +++ b/src/plugins/translations/i18n/en.json @@ -253,7 +253,9 @@ "shortcut": { "addProductLabel": "Add product", "accountsLabel": "Accounts" - } + }, + "visible": "Visible", + "hidden": "Hidden" }, "searchSettings": { "productSearchSettings": { @@ -443,6 +445,7 @@ "archiveThisProduct": "Archive this product?", "archiveSelectedProducts": "Archive selected products?", "publish": "Publish", + "published": "Published", "moreOptions": "More Options", "details": "Details", "noSelectedProducts": "No selected products. Use the ", @@ -460,6 +463,7 @@ "addVariantOptions": "Add options to enable 'Add to Cart' button", "title": "Title", "price": "Price", + "prices": "Prices", "optionTitle": "Short title", "barcode": "Barcode", "compareAtPrice": "Compare at price", @@ -472,7 +476,12 @@ "taxCode": "Tax code", "taxDescription": "Tax description", "originCountry": "Origin country", - "selectTaxCode": "Select tax code" + "selectTaxCode": "Select tax code", + "updateVariantSuccess": "Product variant updated successfully", + "updateVariantFail": "Unable to update product variant", + "updateVariantPricesSuccess": "Variant Prices updated successfully", + "updateVariantPricesFail": "Unable to update variant prices", + "pricePublishWarning": "Changes to prices are published on save" }, "variantList": { "moreOptions": "There are more options available for this selection.", From f183b0c7e0bf9f2c55ca14235b01dd5b66f01195 Mon Sep 17 00:00:00 2001 From: Mike Murray Date: Tue, 3 Mar 2020 17:47:14 -0800 Subject: [PATCH 2/3] feat: add shouldAppearInSitemap field Signed-off-by: Mike Murray --- src/core-services/product/schemas/product.graphql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core-services/product/schemas/product.graphql b/src/core-services/product/schemas/product.graphql index 1db40c99f6d..d51be29bd6f 100644 --- a/src/core-services/product/schemas/product.graphql +++ b/src/core-services/product/schemas/product.graphql @@ -45,6 +45,9 @@ type Product { "The shop to which this product belongs" shop: Shop! + "Whether this product will be shown in the generated sitemap" + shouldAppearInSitemap: Boolean + "A URL-safe and human-readable string that uniquely identifies this product" slug: String @@ -405,6 +408,9 @@ input ProductInput { "An arbitrary product type value, such as from an external system" productType: String + "Whether this product will be shown in the generated sitemap" + shouldAppearInSitemap: Boolean + "A URL-safe and human-readable string that uniquely identifies this product" slug: String From bdae08a792a1869b95fb6c605e6fae7937d8f4df Mon Sep 17 00:00:00 2001 From: Mike Murray Date: Tue, 3 Mar 2020 17:47:26 -0800 Subject: [PATCH 3/3] feat add shouldAppearInSitemap field Signed-off-by: Mike Murray --- src/core-services/product/mutations/updateProduct.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core-services/product/mutations/updateProduct.js b/src/core-services/product/mutations/updateProduct.js index 52873da19f6..9af430bdd2c 100644 --- a/src/core-services/product/mutations/updateProduct.js +++ b/src/core-services/product/mutations/updateProduct.js @@ -92,6 +92,10 @@ const inputSchema = new SimpleSchema({ type: String, optional: true }, + "shouldAppearInSitemap": { + type: Boolean, + optional: true + }, "supportedFulfillmentTypes": { type: Array, optional: true