From 3c33ca922ac5459ca5ca85227dd3ab676de5f53a Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 20 Jul 2023 18:20:06 +0300 Subject: [PATCH] docs: added a user guide for prices bulk editor (#4569) * docs: added bulk editor user guide * fixed shortcut --- docs/content/user-guide/products/manage.mdx | 37 +++++++++++++++++++++ www/docs/src/utils/get-os-shortcut.ts | 8 +++++ 2 files changed, 45 insertions(+) create mode 100644 www/docs/src/utils/get-os-shortcut.ts diff --git a/docs/content/user-guide/products/manage.mdx b/docs/content/user-guide/products/manage.mdx index 27febc40f1..3c2089dd04 100644 --- a/docs/content/user-guide/products/manage.mdx +++ b/docs/content/user-guide/products/manage.mdx @@ -5,6 +5,7 @@ addHowToData: true --- import UiIcon from '@site/src/components/UiIcon'; +import getOsShortcut from '@site/src/utils/get-os-shortcut' # Manage Products @@ -243,6 +244,42 @@ To delete a variant: --- +## Edit Product Prices with Bulk Editor + +The prices bulk editor allows you to edit the prices of a product's variants using a spreadsheet interface. + +To open the prices bulk editor: + +1. Go to the product's details page. +2. Click on the icon at the top right of the Variants section. +3. Click on Edit Prices from the dropdown. + +This opens the prices bulk editor in a pop-up. Some tips on how to use the bulk editor: + +- To view or hide currencies or regions from the editor: + 1. Click on the View button. + 2. Check or uncheck a currency/region by clicking on it in the dropdown. +- To edit a cell's value, there are two ways: + 1. To edit the value without replacing the existing one, double-click the cell, then enter your new value. + 2. To edit the value by replacing the existing one, click on the cell and start typing your new value. +- After editing a cell's value, you can persist it by either clicking outside the cell or pressing tab +- To delete a value, select the cell then press backspace +- To delete the value of multiple adjacent cells in a column, click on a cell, then drag either up or down to other cells in the same column. Once you've selected all cells you want to delete their values, press backspace +- To apply a value of a cell to other adjacent cells in a column, click on a cell, then drag the blue dot at the corner of that cell either up or down to other cells you want to apply the value to. +- To undo a change you made in the currently selected cell(s), press + Z + +Once you're done making changes, you can save your changes by clicking the "Save and close" button. Then, in the pop-up that opens: + +- If you made edits to a value in a currency or region that is now hidden, you'll be shown the option to save all changes or just save the changes made in the currently visible currencies and regions. Choose one of the options then click the "Save changes" button. +- Otherwise, you can directly click the "Save changes" button. + +To discard the changes you made: + +1. Either press esc or click the icon at the top left. +2. Confirm discarding the changes by clicking the “Yes, close” button in the pop-up. + +--- + ## Edit a Product’s Attributes To edit a product’s attributes: diff --git a/www/docs/src/utils/get-os-shortcut.ts b/www/docs/src/utils/get-os-shortcut.ts new file mode 100644 index 0000000000..7229c8be58 --- /dev/null +++ b/www/docs/src/utils/get-os-shortcut.ts @@ -0,0 +1,8 @@ +export default function getOsShortcut() { + const isMacOs = + typeof navigator !== "undefined" + ? navigator.userAgent.toLowerCase().indexOf("mac") !== 0 + : true + + return isMacOs ? "⌘" : "Ctrl" +}