Skip to main content

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.

ButtonWhat it does
BackReturns to the previous page. Not shown on the first page.
NextChecks 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.
OkOn the last page. Saves the store or its settings and closes the window.
CancelCloses 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​

FieldDescriptionRequiredValues and rules
Online Store NameThe name the store has in the list and in messages.YesExample 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 AddressThe store's address on the internet.YesTyped left to right. No message is specific to an empty box, and a wrong address ends in the connection message.
Access keysBoxes the kind of store asks for. A sample of the value format shows under each box.YesIn the table below. Secret boxes show dots instead of characters.

Access keys by kind of store:

KindBoxValue it asks for
ShopifyClient Key or API KeyThe key of the app you created in the store's admin.
ShopifyClient Secret or API Secret (secret)The secret of the same app.
WooCommerceClient KeyThe key of the WooCommerce programming interface.
WooCommerceClient Secret (secret)The secret that goes with the key.
WooCommerceUsername (WordPress)A user name of the site.
WooCommerceApplication 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.

FieldDescriptionRequiredValues and rules
LanguagesA list of the store languages, each with a check box.YesTick 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.

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."

FieldDescriptionRequiredValues and rulesKind
Sales BillThe sales invoice type in which order invoices are saved.YesA 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 InvoiceThe sales return invoice type for order returns.NoA list of sales return types. The first is the default.Shopify
Import StateThe order state in the store whose orders are imported.YesA list of the order states in the store. It fills after the connection on the first page succeeds.WooCommerce
Sales StoreThe warehouse the invoice materials are taken out of.YesShopify: a main warehouse that has sub-warehouses. WooCommerce: a warehouse that has no sub-warehouses.Both
Main Customers AccountA main or collective account under which a new account card is made for each new customer.One of this and Customers AccountIf the multiple customers system is enabled in the file (save options), choosing a value in Customers Account disables this field.Both
Customers AccountOne sub-account that all the store's customers are linked to.One of this and Main Customers AccountDisabled 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 CurrencyThe file currency the store is priced in.YesA 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 MaterialA service material in which shipping fees are recorded on the invoice.YesChosen from the service materials.WooCommerce
Default CustomerOne customer in whom imported invoices are saved.NoThe 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.

ItemWhat it does
Payment Methods (WooCommerce)Opens the Payment Methods dialog.
Information boxShopify: "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."

FieldDescriptionRequiredValues and rules
ManualYou export materials yourself from the sync wizard.YesOne of two options. The default.
ScheduledThe program exports materials at times you set.YesEnables the next field.
Schedule boxA text description of the run time.When ScheduledRead-only. Click the box's button to open the schedule dialog. The starting value is a daily repeat.
NoneNo material pictures are exported.YesIn the Images Export group. The default for a new store.
Default images of product and combination onlyThe default picture of each material and each combination is exported.YesSame group.
AllAll the pictures of the material are exported.YesSame group.
Field check boxesOne for each piece of data the materials export: Price, Description, Keywords, Weight, Barcode, and with WooCommerce also Short Description and Dimensions.NoIn 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."

FieldDescriptionRequiredValues 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.
ManualYou import invoices yourself from the sync wizard.YesThe default.
ScheduledThe program imports invoices at times you set.YesEnables the schedule box.
Schedule boxA text description of the run time.When ScheduledAs 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.

ItemWhat it does
Delete in the top barDeletes the selected rows. The Delete key works too.
Rows gridA row for each link. Add a row from the new-row line at the bottom of the grid.
OkChecks, 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.
CancelCloses the dialog without keeping them.

Grid columns:

ColumnDescriptionValues and rules
Payment MethodThe payment method in the store.A list of the payment methods enabled in the store. A method cannot be in two rows.
TypeWhat the method is linked to.Account or Bank Card. Changing the type clears Value.
ValueThe 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.

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.

FieldDescriptionRequiredValues and rules
Link Field (store)The product data in the store that is matched.YesShopify: Material Name. WooCommerce: SKU, GTIN, UPC, EAN, or ISBN, or Material Name.
Link Field (alameen)The material data in the file that is matched.YesShopify: Material Name. WooCommerce: Barcode (First Unit), Material Code, or Material Name.
PriceThe price type in which the store price is put for each new material.YesWholesale, 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.
GroupThe material group in which new materials are created.YesA search list of groups.
Include Draft ProductsAlso reads the store products that are still drafts.NoNot 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.

ButtonWhat it does
OkStarts the link after the checks and the confirmation question. It is disabled while the operation runs.
CancelAsks "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:

  1. It creates in the file the segments and elements that the store products' combinations use, if they do not exist.
  2. 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.
  3. It does not create a new card for a store product that was linked before.
  4. 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​

MessageWhy it appearsWhat to do
Please enter store nameOnline 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 thereIn 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 itShopify 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​

MessageWhy it appearsWhat to do
Please select languages.No language is ticked.Tick at least one language.
MessageWhy it appearsWhat to do
Sales bill is not selected for bills to be saved. Please select sales billSales Bill is empty.Choose a type.
Sales store is not selected for bills to be saved. Please select sales storeSales Store is empty.Choose a warehouse.
Customers account or main account is not selected for customers to be saved. Please select customers accountMain Customers Account and Customers Account are both empty.Choose one of them.
Missing sales store in Ameen file! Please select sales storeThe chosen warehouse is no longer in the file.Choose an existing warehouse.
Missing sales bill in Ameen file! Please select sales billThe chosen type is no longer in the file.Choose an existing type.
Missing customer account in Ameen file! Please select customers accountThe 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' uncheckedIn 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 selectedIn WooCommerce: Import State is not chosen.Choose a state.
Please select shipping fees material. Shipping fees material is not selectedIn WooCommerce: Shipping Fees Material is empty.Choose a material.
Default Customer is not set! Please, specify the Default Customer in order to import bills properlyIn 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​

MessageWhy it appearsWhat 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.
MessageWhy it appearsWhat 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 userThe running operation was stopped.Run it again if needed.
Link SucceededThe operation finished. It appears even if the program recorded an error for some materials.Review the materials in the file.

This page applies to alameen ERP 10, version 10.1.79.764.