Link online store wizard
This wizard links an online store to the open file, and edits the settings of a linked store. It checks each page before it moves to the next. Its last two pages set how materials are exported and invoices are imported, manually or on a schedule. Two dialogs belong to it: Payment Methods and Link Products. The steps are in Link an online store.
Opening the window
- To link: File > Online Stores, then click the button of the kind of store in the left column, Shopify or WooCommerce. The button works with the permission Add store. The window title is Link and the kind, such as Link Shopify Store.
- To edit: select the store in the list and click Settings. The button works with the permission Modify store settings. The window title is Store Settings, and it shows the saved values.
See Online stores. The window needs no licence feature.
| Button | What it does |
|---|---|
| Back | Returns to the previous page. Not shown on the first page. |
| Next | Checks the current page, then moves on. On the Store Settings and Link Settings pages the program runs a check, and on the first of them it connects to the store. The page and the button are disabled while it connects. |
| Ok | On the last page. Saves the store or its settings and closes the window. |
| Cancel | Closes the window without saving, and stops any check that is running. |
The pages in order are: Store Settings, then Language Settings (not shown for a store that returns only one language), then Link Settings, then Export Settings, then Import Settings, then Summary.
The Store Settings page
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Online Store Name | The name the store has in the list and in messages. | Yes | Example Alwaha Store. It must differ from the name of another linked store, and the program ignores letter case. When you edit, the name is not compared with itself. |
| Store Address | The store's address on the internet. | Yes | Typed left to right. No message is specific to an empty box, and a wrong address ends in the connection message. |
| Access keys | Boxes the kind of store asks for. A sample of the value format shows under each box. | Yes | In the table below. Secret boxes show dots instead of characters. |
Access keys by kind of store:
| Kind | Box | Value it asks for |
|---|---|---|
| Shopify | Client Key or API Key | The key of the app you created in the store's admin. |
| Shopify | Client Secret or API Secret (secret) | The secret of the same app. |
| WooCommerce | Client Key | The key of the WooCommerce programming interface. |
| WooCommerce | Client Secret (secret) | The secret that goes with the key. |
| WooCommerce | Username (WordPress) | A user name of the site. |
| WooCommerce | Application Password (WordPress) (secret) | An application password the user created from their profile on the site. |
When you click Next, the program checks in this order: Online Store Name is not empty, then it is not in use, then it connects to the store with the values you entered. If the connection succeeds it moves to Language Settings, or to Link Settings if the store does not return more than one language. The messages are in Messages.
The Language Settings page
It sets the store languages in which materials keep their name, description and keywords (the Online Stores page of the material card). It appears only when the store returned more than one language. A Shopify store returns its languages. A WooCommerce store returns one language, English, so the page is skipped.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Languages | A list of the store languages, each with a check box. | Yes | Tick at least one. When you link for the first time the first language is ticked. When you edit, the saved languages are ticked, and if none of them is left in the store the first one is ticked. |
The Link Settings page
It sets how the program saves imported invoices. The top of the page shows: "You can link all store customers to one sub-account only if (multiple customers are activated for the account in the save options) or an account card can be created for each customer."
| Field | Description | Required | Values and rules | Kind |
|---|---|---|---|---|
| Sales Bill | The sales invoice type in which order invoices are saved. | Yes | A list of sales invoice types. The first is the default. With WooCommerce the type must use the VAT tax system and have Calculate before discounts cleared, unless the GCC tax system is enabled in the file. | Both |
| Sales Return Invoice | The sales return invoice type for order returns. | No | A list of sales return types. The first is the default. | Shopify |
| Import State | The order state in the store whose orders are imported. | Yes | A list of the order states in the store. It fills after the connection on the first page succeeds. | WooCommerce |
| Sales Store | The warehouse the invoice materials are taken out of. | Yes | Shopify: a main warehouse that has sub-warehouses. WooCommerce: a warehouse that has no sub-warehouses. | Both |
| Main Customers Account | A main or collective account under which a new account card is made for each new customer. | One of this and Customers Account | If the multiple customers system is enabled in the file (save options), choosing a value in Customers Account disables this field. | Both |
| Customers Account | One sub-account that all the store's customers are linked to. | One of this and Main Customers Account | Disabled unless the multiple customers system is enabled in the file (save options). When it is enabled, choosing a value here disables Main Customers Account. | Both |
| Pricing Currency | The file currency the store is priced in. | Yes | A list of the file's currencies. The default is the file's default currency, or the first currency. The box shows only when the licence includes more than one currency. | Both |
| Shipping Fees Material | A service material in which shipping fees are recorded on the invoice. | Yes | Chosen from the service materials. | WooCommerce |
| Default Customer | One customer in whom imported invoices are saved. | No | The note on the page (in the next table) explains its effect. With WooCommerce it is required when the GCC tax system is enabled in the file. | Both |
In Shopify the fields show in this order: Sales Bill, Sales Return Invoice, Sales Store, Main Customers Account, Customers Account, Pricing Currency, Default Customer. In WooCommerce: Sales Bill, Import State, Main Customers Account, Customers Account, Pricing Currency, Sales Store, Shipping Fees Material, Default Customer.
| Item | What it does |
|---|---|
| Payment Methods (WooCommerce) | Opens the Payment Methods dialog. |
| Information box | Shopify: "Please note that the bill will be marked as Cash Paid if no customer is assigned, or if the Shopify store is on the Basic plan", then the default customer text. WooCommerce: the default customer text only: "If the "Default Customer" field is set, the chosen customer will be applied to all future imported bills." |
When you click Next the program checks the settings in this order and stops at the first message (see Messages): a sales invoice type is chosen, then a warehouse, then an account, then the warehouse, type and account exist in the file. With WooCommerce it then checks the sales invoice type, then Import State, then Shipping Fees Material, then Default Customer (with the GCC tax system), then the payment methods, then that the store's default currency matches the file's first currency. If the check passes it moves to Export Settings.
The Export Settings page
It sets how materials are exported to the store. The top shows: "Warehouse balances update automatically after each export."
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Manual | You export materials yourself from the sync wizard. | Yes | One of two options. The default. |
| Scheduled | The program exports materials at times you set. | Yes | Enables the next field. |
| Schedule box | A text description of the run time. | When Scheduled | Read-only. Click the box's button to open the schedule dialog. The starting value is a daily repeat. |
| None | No material pictures are exported. | Yes | In the Images Export group. The default for a new store. |
| Default images of product and combination only | The default picture of each material and each combination is exported. | Yes | Same group. |
| All | All the pictures of the material are exported. | Yes | Same group. |
| Field check boxes | One for each piece of data the materials export: Price, Description, Keywords, Weight, Barcode, and with WooCommerce also Short Description and Dimensions. | No | In the group Export Fields (name and quantity will always be exported). All are ticked for a new store. When you edit, the saved choices show. |
When you click Next the wizard keeps the choices in the settings of the store being edited.
The Import Settings page
It sets how orders are imported as invoices. The top shows: "Warehouse balances update automatically after each invoice import."
| Field | Description | Required | Values and rules |
|---|---|---|---|
| GCC tax note | "All items will be imported subject to the standard rate". | — | Shown only when the licence includes the Gulf Cooperation Council tax system and it is enabled in the file. |
| Manual | You import invoices yourself from the sync wizard. | Yes | The default. |
| Scheduled | The program imports invoices at times you set. | Yes | Enables the schedule box. |
| Schedule box | A text description of the run time. | When Scheduled | As on the export page. |
The Summary page
It shows Online Store Name: and Store Address: as you entered them. Click Ok:
- When linking, the program adds the store to the list and selects it. It does not register the new store's scheduled syncs at this moment, so they start when the file is opened again or after you edit the store's settings.
- When editing, it saves the name and the settings and registers the scheduled syncs again (it removes the old ones and adds the new ones according to Scheduled).
Scheduled syncs
When a file is opened, the program registers for each store an export task if Scheduled is chosen for export, and an import task if it is chosen for import. They run while the file is open and are removed when it is closed. They run without a wizard.
- Scheduled import: imports from the date of the last import up to today.
- If an operation of the same kind is already running for the same store, no message appears and the attempt ends.
- When it finishes, the program adds a notification in the Online Stores group: "… invoices were imported from the online store …" or "… products were exported to the online store …", or an error message. The import notification has the action Import Log.
If the operation succeeds without importing or exporting anything, no notification appears.
The Payment Methods dialog
It opens from the Payment Methods button on the Link Settings page of a WooCommerce store. It links each payment method enabled in the store to an account or a bank card, so the program knows where to record the receipts of an imported invoice. Its title is Payment Methods. While the payment methods load from the store the grid shows a waiting bar.
| Item | What it does |
|---|---|
| Delete in the top bar | Deletes the selected rows. The Delete key works too. |
| Rows grid | A row for each link. Add a row from the new-row line at the bottom of the grid. |
| Ok | Checks, then keeps the rows in the settings of the store being edited. They are saved with the store when you click Ok in the wizard. |
| Cancel | Closes the dialog without keeping them. |
Grid columns:
| Column | Description | Values and rules |
|---|---|---|
| Payment Method | The payment method in the store. | A list of the payment methods enabled in the store. A method cannot be in two rows. |
| Type | What the method is linked to. | Account or Bank Card. Changing the type clears Value. |
| Value | The account or the bank card. | Chosen from a search list according to Type. Required. |
When you click Next on the Link Settings page the program checks that the grid has at least one row and that every row has a method and a value.
The Link Products dialog
It opens from the Link Products button on the Online Stores page. For a Shopify store the button works with the permission Link items in the online store group; for WooCommerce the button is shown without checking that permission. It reads the store's products, matches them with the materials of the file, and creates in the file what has no match. Its title is Link Products.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Link Field (store) | The product data in the store that is matched. | Yes | Shopify: Material Name. WooCommerce: SKU, GTIN, UPC, EAN, or ISBN, or Material Name. |
| Link Field (alameen) | The material data in the file that is matched. | Yes | Shopify: Material Name. WooCommerce: Barcode (First Unit), Material Code, or Material Name. |
| Price | The price type in which the store price is put for each new material. | Yes | Wholesale, Semi wholesale, Export, Distributor, Retail, or Consumer. The default is Consumer. Only the price types the user may see are listed, with the names the file gives them. |
| Group | The material group in which new materials are created. | Yes | A search list of groups. |
| Include Draft Products | Also reads the store products that are still drafts. | No | Not ticked by default. |
Two notes are at the bottom of the dialog: "We recommend creating a backup before proceeding." and an explanation of what will happen, then a line that shows the progress.
| Button | What it does |
|---|---|
| Ok | Starts the link after the checks and the confirmation question. It is disabled while the operation runs. |
| Cancel | Asks "Are you sure you want to cancel the operation?". Yes stops the running operation and closes the dialog. |
What the program does after you confirm, for each batch of 100 store products:
- It creates in the file the segments and elements that the store products' combinations use, if they do not exist.
- It matches each store product with the main materials of the file that are not yet linked to this store: the two fields are equal ignoring letter case, and an empty value matches nothing. With Material Name the program compares the material's name in the file (not the Latin name) with the product's English name in the store. SKU is compared with the material field you chose, and GTIN, UPC, EAN, or ISBN with the product's barcode in the store. A matched material is linked to the store. The program saves its name, descriptions and keywords for each store language in the Online Stores page of its card, and records the price type Consumer for it. If the store price differs from the material's Consumer price, the store price replaces it, except in Shopify when the store product has more than one variant: then the file's price stays.
- It does not create a new card for a store product that was linked before.
- It creates a new material card for each store product that has no match, in the chosen Group, with the store price in the chosen Price type. Its code is the SKU if there is one, otherwise a code the program generates. It takes the store name, barcode, combinations, pictures, and its data in the Online Stores page.
At the end the progress line shows "Linking data completed in …. Linked: … products, Added: … products to alameen ERP, Total: …" and the message "Link Succeeded" appears.
Messages
The program shows the message with an instruction line under it. Both are given below.
The Store Settings page
| Message | Why it appears | What to do |
|---|---|---|
| Please enter store name | Online Store Name is empty. | Type a name. |
| Store name used. Please enter a new name. | Another linked store has the same name. | Type another name. |
| One of the two fields (Client Key or API Key) and (Client Secret or API Secret) is missing! Please refer to your store settings and copy the information from there | In Shopify one of the two boxes is empty. | Copy both values from the app settings in the store. |
| Error in the Store, with the store's reply under it | Shopify rejected the values or refused the request. | Read the reply and correct the values. |
| Failed to load Shop Information! | The program could not read the Shopify store data after the values were accepted. | Check the address and try again. |
| Unable to connect the store. Please check your connection settings, make sure you have an internet connection, then try again. | The connection failed, for example a wrong address, rejected WooCommerce credentials, or no internet. | Check the values and the connection. |
The Language Settings page
| Message | Why it appears | What to do |
|---|---|---|
| Please select languages. | No language is ticked. | Tick at least one language. |
The Link Settings page
| Message | Why it appears | What to do |
|---|---|---|
| Sales bill is not selected for bills to be saved. Please select sales bill | Sales Bill is empty. | Choose a type. |
| Sales store is not selected for bills to be saved. Please select sales store | Sales Store is empty. | Choose a warehouse. |
| Customers account or main account is not selected for customers to be saved. Please select customers account | Main Customers Account and Customers Account are both empty. | Choose one of them. |
| Missing sales store in Ameen file! Please select sales store | The chosen warehouse is no longer in the file. | Choose an existing warehouse. |
| Missing sales bill in Ameen file! Please select sales bill | The chosen type is no longer in the file. | Choose an existing type. |
| Missing customer account in Ameen file! Please select customers account | The chosen account is no longer in the file. | Choose an existing account. |
| Bill type should have VAT Tax System enabled and the option 'Calculate before Discounts' unchecked, with this under it: Please select a bill type that has VAT Tax System enabled and the option 'Calculate before Discounts' unchecked | In WooCommerce: the chosen type does not use the VAT tax system, or it has Calculate before discounts ticked. It does not appear when the GCC tax system is enabled. | Choose a type that meets both conditions. |
| Please select import state. Import State is not selected | In WooCommerce: Import State is not chosen. | Choose a state. |
| Please select shipping fees material. Shipping fees material is not selected | In WooCommerce: Shipping Fees Material is empty. | Choose a material. |
| Default Customer is not set! Please, specify the Default Customer in order to import bills properly | In WooCommerce with the GCC tax system: there is no default customer. | Set the default customer. |
| The payment methods are not configured properly! Please configure at least one payment method to proceed. | In WooCommerce: there are no payment methods, or some are incomplete. | Set them in Payment Methods. |
| There is Currencies Mismatch!, with this under it: Store default currency does not match file default currency! | In WooCommerce: the store's default currency differs from the file's first currency. | Make the store's default currency the same as the file's. |
The Payment Methods dialog
| Message | Why it appears | What to do |
|---|---|---|
| Cannot select the same payment method twice! | You clicked Ok with a method repeated in two rows. | Delete the repeated row. |
| Value field is required! | A row has no Value. | Choose the account or the card, or delete the row. |
The Link Products dialog
| Message | Why it appears | What to do |
|---|---|---|
| Link Field not selected in the store! Please choose the Link field that connects materials in the store to their matching products in alameen system. | Link Field (store) is empty. | Choose a field. |
| Link Field not selected in alameen system! Please choose the Link field that connects materials in the alameen system to their matching products in the store. | Link Field (alameen) is empty. | Choose a field. |
| No group selected! Please set the Group field to be used when adding store products that have no matching products in the alameen system. | Group is empty. | Choose a group. |
| Are you sure you want to start linking products? | The fields passed the check. A warning with Yes and No. | Yes to start. |
| Are you sure you want to cancel the operation? | You closed the dialog. It appears every time you close. | Yes closes it and stops the running operation. |
| Operation canceled by the user | The running operation was stopped. | Run it again if needed. |
| Link Succeeded | The operation finished. It appears even if the program recorded an error for some materials. | Review the materials in the file. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.