Warehouses

Initially, inventory levels for all products must be entered manually. From then on, inventory levels are tracked automatically as orders are filled. To set a product’s inventory level, see SKUs. First, however, you must have your warehouses in order.

Using a Single Warehouse

If you have only one warehouse, there is no need to geocode its location. However, if you integrate your system with a shipping company’s (see Shipping Methods for details), you must enter your warehouse’s address to calculate shipping costs.

Follow these steps:

  1. Go to Site MenuCommerceSettings and click the Shipping tab.

  2. Make sure the Use Single Address radio button is selected.

  3. Fill in the form, giving your warehouse a name and entering its address. Click Save.

Using Multiple Warehouses

If you have more than one warehouse, then you not only must track inventories at different locations separately, but also must determine from which warehouse a product should be shipped.

First, you must enter the location of each warehouse. Follow these steps:

  1. Go to Site MenuCommerceSettings and click the Shipping tab.

  2. Make sure the Use Closest Warehouse radio button is selected and click Save. A new tab, Warehouses, appears at the top of the screen.

  3. Click the Add button on the Warehouses tab. Enter a name, description, and address for the warehouse. The Active box must be checked before the warehouse can be used, but the latitude and longitude fields can be left blank for now (see Geocoding, below). Click Save.

  4. Repeat steps 2 and 3 until all of your warehouses have been added.

Geocoding Warehouses

Liferay Commerce automatically processes orders so products are shipped from the closest warehouse. On its own, however, the software cannot calculate which warehouse is closest to the delivery point solely on the basis of street address—maintaining a record of the coordinates of every address on the planet isn’t in the mission profile.

The default solution is integration with Microsoft’s Bing Maps, which Microsoft makes available free of charge—though this depends on use case and volume. At the time of this writing, instructions on obtaining a Bing API key are published at Microsoft Developer Network.

Once you have an API key, follow these steps to set products to ship from the closest available warehouse:

  1. Go to Control PanelConfigurationSystem Settings. Find the Commerce section and click Shipping.

  2. Paste your key from Microsoft into the API Key field and click Save.

  3. Return to the Warehouses tab in Site MenuCommerceSettings and click optionsGeolocate for each facility.

« Price ListsPayment Methods »
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています