Title: Lagerplasseringer for WooCommerce
Author: Fahad Mahmood
Published: <strong>11. februar, 2020</strong>
Last modified: 31. oktober, 2026

---

Søk i utvidelser

![](https://ps.w.org/stock-locations-for-woocommerce/assets/banner-772x250.png?rev
=3777050)

![](https://ps.w.org/stock-locations-for-woocommerce/assets/icon.svg?rev=3777050)

# Lagerplasseringer for WooCommerce

 Av [Fahad Mahmood](https://profiles.wordpress.org/fahadmahmood/)

[Last ned](https://downloads.wordpress.org/plugin/stock-locations-for-woocommerce.3.2.2.zip)

 * [Detaljer](https://nb.wordpress.org/plugins/stock-locations-for-woocommerce/#description)
 * [Omtaler](https://nb.wordpress.org/plugins/stock-locations-for-woocommerce/#reviews)
 *  [Installering](https://nb.wordpress.org/plugins/stock-locations-for-woocommerce/#installation)
 * [Utvikling](https://nb.wordpress.org/plugins/stock-locations-for-woocommerce/#developers)

 [Brukerstøtte](https://wordpress.org/support/plugin/stock-locations-for-woocommerce/)

## Beskrivelse

Lagerplasseringer for WooCommerce vil hjelpe deg med å administrere produktene dine
på tvers av flere plasseringer enkelt. Hvis du har flere fysiske butikker eller 
lagersteder, for eksempel leverandør lager, kan denne utvidelsen hjelpe deg.

Du kan skrive ut plasseringene på en produktside på frontend, med disse kortkodene:

#### Produkt sider

    ```
    [slw_product_locations show_qty="yes" show_stock_status="no" show_empty_stock="yes" collapsed="no" stock_location_status="enabled"]
    [slw_product_variations_locations show_qty="yes" show_stock_status="no" show_empty_stock="yes" collapsed="yes" stock_location_status="all|disabled|enabled"]
    [slw_product_message is_available="yes" only_location_available="no" location="location-slug"]Your custom product message/HTML here[/slw_product_message]
    ```

#### Handlekurv-siden

    ```
    [slw_cart_message qty_from_location="location-slug" only_location_available="no"]Your custom cart message/HTML here[/slw_cart_message]
    ```

#### REST API

REST API endpoints (both accept `GET` and `PUT` requests):

    ```
    /wp-json/wc/v3/products/id
    /wp-json/wc/v3/products/id/variations/id (first ID is for parent product, the second one for the variation ID)
    /wp-json/wp/v2/location/
    /wp-json/wp/v2/location/id
    ```

Denne utvidelsen krever minst _WooCommerce 3.4_.

#### Funksjoner

 * Ny taksonomi for lagerlokasjoner
 * Fungerer på både, enkle og variable produkter
 * Enkel styring av lager med flere plasseringer, både på produkt og i bestillinger
 * Get and update product stock locations from the REST API
 * Tillat kunder å velge plasseringer når de handler
 * Automatisk ordrefordeling for lagerreduksjon for plasseringer
 * Send e-postvarsler når lageret er allokert for et produkt på en plassering
 * Send WooCommerce Ny Ordre med e-postkopi til elementplassering
 * Compatible with WPML

#### Kompatibilitet

 * PHP 7.2+

## Skjermbilder

[⌊Kolonne med filter for produktliste og lagerplasseringer⌉⌊Kolonne med filter for
produktliste og lagerplasseringer⌉[

Kolonne med filter for produktliste og lagerplasseringer

[⌊Klassifisering av lagerplasseringer⌉⌊Klassifisering av lagerplasseringer⌉[

Klassifisering av lagerplasseringer

[⌊Administrer lagerplasseringer på enkel produkter⌉⌊Administrer lagerplasseringer
på enkel produkter⌉[

Administrer lagerplasseringer på enkel produkter

[⌊Administrer lagerplasseringer på variable produkter⌉⌊Administrer lagerplasseringer
på variable produkter⌉[

Administrer lagerplasseringer på variable produkter

[⌊Reduser lager fra plasseringen manuelt⌉⌊Reduser lager fra plasseringen manuelt⌉[

Reduser lager fra plasseringen manuelt

[⌊Reduser lager fra plasseringen automatisk⌉⌊Reduser lager fra plasseringen automatisk⌉[

Reduser lager fra plasseringen automatisk

[⌊Tillat kunder å velge plasseringer på handlekurv-siden⌉⌊Tillat kunder å velge 
plasseringer på handlekurv-siden⌉[

Tillat kunder å velge plasseringer på handlekurv-siden

[⌊Tillat kunder å velge plassering på variabelt produkt⌉⌊Tillat kunder å velge plassering
på variabelt produkt⌉[

Tillat kunder å velge plassering på variabelt produkt

[⌊Tillat kunder å velge plassering på enkeltprodukt⌉⌊Tillat kunder å velge plassering
på enkeltprodukt⌉[

Tillat kunder å velge plassering på enkeltprodukt

[⌊Innstillinger for utvidelsen⌉⌊Innstillinger for utvidelsen⌉[

Innstillinger for utvidelsen

[⌊Show location stock quantity with a postfix e.g. 20+⌉⌊Show location stock quantity
with a postfix e.g. 20+⌉[

Show location stock quantity with a postfix e.g. 20+

[⌊Edit Klassifisering av lagerplasseringer⌉⌊Edit Klassifisering av lagerplasseringer⌉[

Edit Klassifisering av lagerplasseringer

[⌊Lock default location on frontend.⌉⌊Lock default location on frontend.⌉[

Lock default location on frontend.

[⌊Set price for product as per each stock location.⌉⌊Set price for product as per
each stock location.⌉[

Set price for product as per each stock location.

[⌊Pre-select default location on product page (frontend).⌉⌊Pre-select default location
on product page (frontend).⌉[

Pre-select default location on product page (frontend).

[⌊Stock locations for each variation.⌉⌊Stock locations for each variation.⌉[

Stock locations for each variation.

[⌊How to allow editing location values on orders after being reduced?⌉⌊How to allow
editing location values on orders after being reduced?⌉[

How to allow editing location values on orders after being reduced?

## Installasjon

 1. Last opp «stock-locations-for-woocommerce» til katalogen «/wp-content/plugins/».
 2. Sjekk om du har WooCommerce 3.4 + utvidelsen aktivert
 3. Aktiver SLW utvidelsen gjennom «Utvidelser» -menyen i WordPress.

**Enkel produkter**

 1. Tilordne lagerlokasjoner til produktet > Oppdater innlegg
 2. Under Lagersaldo fanen > Aktiver Administrer Lager
 3. Under lagerlokasjons fanen > Administrer varebeholdning for plasseringene

**Variable produkter**

 1. Tilordne lagerlokasjoner til produktet > Oppdater innlegg
 2. Under Lagersaldo > Deaktiver Administrere lager?
 3. Under Kategorien Attributter > Opprett attributter
 4. Under Kategorien Varianter > Opprett varianter basert på attributter
 5. På hver variant > Aktiver Administrer lager og legg til pris > Oppdater innlegg
 6. Under Lagerplasseringer-fanen > Administrer varebeholdningen for plasseringen for
    hver enkel variant

## Ofte stilte spørsmål

### Problems with wp all import?

**👉 1. How can we make them activate automatically during the import process?**

If you want to make them active, in Import settings check «Taxonomies (incl. Categories
and Tags)»,
 under this chose «Update only these taxonomies, leave the rest alone»
and type «location»

Use this with «custom fields: _stock_at_xxx» as warehouse number and import works
perfectly.

### Stock Locations | Stock Deductions | Settings and Results

**👉 1. How auto order allocation work with multiple stock locations?**

**👉 2. How location priority work with auto order stock allocation?**

**👉 3. What if all of my locations don’t have the sufficient stock ordered?**
 
If order quantity is within the summation of all stock locations available stock
quantity, it will be simply served. If not, auto allocation will not work so admin
can decide if he want to deliver the order partially or wait for stock comes in.

**👉 4. How location email works?**

**👉 5. Do you want to sell products from only one stock location?**

**👉 6. How to make location selection required on cart page?**

**👉 7. How does it manage the maximum qty. to order according to the stock in a
location?**

**👉 8. How to allow editing location values on orders after being reduced?**
 https://
github.com/fahadmahmood8/stock-locations-for-woocommerce/issues/90

### How Import/Export work with CSV files?

### How to use Cron Job?

### How to use REST API?

### How Google Map and Location Archives work in Premium Version?

### How to lock pre-selected location on frontend?

Turn ON «Enable default location in frontend selection» from WooCommerce > Stock
Locations for WC. This option will allow you to select default location for a product
on Product Edit page. Now turn ON «Lock frontend location to default» and it will
lock frontend location which is selected as default.

### I found a bug, where I can report it?

I prefer you to use the Github issues. You can submit a new one here [GitHub](https://github.com/fahadmahmood8/stock-locations-for-woocommerce/issues/new)

### How to show location stock quantity with a postfix e.g. 20+?

On settings page you can define a number. If location stock value will be less than
the given number, it will display the stock value else will not show the exact number
but a plus sign «+» just after the maximum number given.

## Vurderinger

![](https://secure.gravatar.com/avatar/13889788921350929851dc4394d443f2860e29fbe7ebd5ce6f3e72a1eec7bdec?
s=60&d=retro&r=g)

### 󠀁[Fails on latest WP / convoluted UI with scattered settings](https://wordpress.org/support/topic/fails-on-latest-wp-convoluted-ui-with-scattered-settings/)󠁿

 [Martin](https://profiles.wordpress.org/rockso/) 2. september, 2026 1 svar

does not work on the latest WP/Woo versions. – Locations cannot be assigned/saved
to a product Convoluted UI and settings screen. – user unfriendly, poor docs. Settings
scattered. How on earth is a client meant to self manage this?

![](https://secure.gravatar.com/avatar/4d7eaeba8d218c65f2b88fe305d7bb588c52484ff7e14db3e12a871400bd37f0?
s=60&d=retro&r=g)

### 󠀁[Very quick and very effective](https://wordpress.org/support/topic/very-quick-and-very-effective/)󠁿

 [nikjeremic](https://profiles.wordpress.org/nikjeremic/) 13. januar, 2025

Thank you Fahad, your plugin works perfectly and you help was very quick and just
what I needed! All recommendations!

![](https://secure.gravatar.com/avatar/fc0274a28f71cca61480b56a6fba11ed667c673a5a09d74b2d9c881abccfdb37?
s=60&d=retro&r=g)

### 󠀁[How to edit price in woocommerce stock location with rest api](https://wordpress.org/support/topic/bagaimana-cara-mengedit-harga-di-stock-location-woocommerce-dengan-rest-api/)󠁿

 [andra2023](https://profiles.wordpress.org/andra2023/) 27. juli, 2023 1 svar

Very good, but i have a question. how to edit price value in woocommerce stock location?

![](https://secure.gravatar.com/avatar/dd1c1aaa1de651f28043c0ce93a83f85a4f355fdc00a1cbdee3a3e8c1c86d2f6?
s=60&d=retro&r=g)

### 󠀁[Sprinkles Ads into WC](https://wordpress.org/support/topic/sprinkles-ads-into-wc/)󠁿

 [daohio](https://profiles.wordpress.org/daohio/) 12. juli, 2023 1 svar

It does hide some features in premium, and it adds advertisements for his other 
plugins around the site

![](https://secure.gravatar.com/avatar/59244f136a7863665fa9e8d78725caadcac8be9062c3bfdb7c1fb39301de3447?
s=60&d=retro&r=g)

### 󠀁[Exceptional support and great plugin](https://wordpress.org/support/topic/exceptional-support-and-great-plugin/)󠁿

 [cksonline](https://profiles.wordpress.org/cksonline/) 1. juli, 2023

Had a couple of issues, contacted the developer. Fahad could not have been more 
helpful and got me up and running in no time. Highly recommend this plugin for multiple
stock locations. Thanks again!

![](https://secure.gravatar.com/avatar/426921c543d02ee137580ee43e7276557d43e550df9a92b330beea41538854fc?
s=60&d=retro&r=g)

### 󠀁[Top-Notch support ( fast & quality coding )](https://wordpress.org/support/topic/top-notch-support-fast-quality-coding/)󠁿

 [cristian2202](https://profiles.wordpress.org/cristian2202/) 27. juli, 2023

I encountered plugin adaptation issues and reached out to the developer, Fahad. 
His prompt and professional assistance were highly appreciated. Despite the task's
complexity, he worked diligently, debugging and customizing my website even at 4
AM! Now, everything functions flawlessly, and I am grateful for Fahad's exceptional
help! I recommend reaching out to him for any issues or new ideas; the man certainly
knows what he's doing 😉

 [ Les alle 53 vurderinger ](https://wordpress.org/support/plugin/stock-locations-for-woocommerce/reviews/)

## Bidragsytere og utviklere

«Lagerplasseringer for WooCommerce» er programvare med åpen kildekode. Følgende 
personer har bidratt til denne utvidelsen:

Bidragsytere

 *   [ Fahad Mahmood ](https://profiles.wordpress.org/fahadmahmood/)
 *   [ alexmigf ](https://profiles.wordpress.org/alexmigf/)
 *   [ InvoicePress ](https://profiles.wordpress.org/invoicepress/)

«Lagerplasseringer for WooCommerce» har blitt oversatt til 7 språk. Takk til [oversetterne](https://translate.wordpress.org/projects/wp-plugins/stock-locations-for-woocommerce/contributors)
for deres bidrag.

[Oversett «Lagerplasseringer for WooCommerce» til ditt språk.](https://translate.wordpress.org/projects/wp-plugins/stock-locations-for-woocommerce)

### Interessert i utvikling?

[Bla gjennom koden](https://plugins.trac.wordpress.org/browser/stock-locations-for-woocommerce/),
sjekk ut [SVN-repositoriet](https://plugins.svn.wordpress.org/stock-locations-for-woocommerce/),
eller abonner på [utviklingsloggen](https://plugins.trac.wordpress.org/log/stock-locations-for-woocommerce/)
med [RSS](https://plugins.trac.wordpress.org/log/stock-locations-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Endringslogg

#### 3.2.2

 * Tested up to WordPress 7.1.
 * Security: hardened AJAX and order stock-edit handlers (prepared SQL queries, 
   strict integer validation of IDs, safer cart updates).
 * Security: debug output (`?debug`, `?sql-query`) is now limited to administrators.
 * Security: escaped location fields and settings output in admin screens.
 * Fix: HTML mail content type no longer leaks into other plugins’ emails after 
   a stock allocation notification.
 * New (Premium): Low stock alerts per location. Set a threshold on each location
   and get a digest email when product stock at that location runs low.

#### 3.1.7

 * Fix: Variable products showing out of stock even when inventory exists – resolved
   stock status handling for variations without manual location stock entry [Thanks
   to Ben Croft][28/05/2026]

#### 3.1.4

 * Fix: Bug with variation stock status querying (PR #171). Variations were getting
   their is_in_stock queried, and reporting incorrectly they were out of stock. [
   Thanks to kennydude / Joe Simpson][30/04/2026]

#### 3.1.1

 * Fix: Corrected stock status calculation when all locations have zero stock to
   prevent false «in stock» state. [Thanks to @armanuniverse][06/04/2026]
 * Fix: Ensured proper handling and saving of _stock_status (instock/outofstock)
   in database.
 * Improvement: Replaced unreliable stock status checks with aggregated per-location
   stock calculation.
 * Improvement: Standardized return values to boolean for accurate WooCommerce compatibility.
 * Props: Thanks to armanuniverse for identifying and sharing the fix.

#### 3.1.0

 * Resolved ‘get_variation_default_attribute’ fatal error and out-of-stock display
   issue caused by Stock Locations plugin update, ensuring variable and simple products
   now show correct stock status. [Thanks to Renzo Westenbroek | Webreturn][12/03/
   2026]

#### 3.0.9

 * Fixed: Including API response and optimized approach to DB writes, backorder 
   related status and a few more improvements suggested in support threads since
   October 2025. [07/03/2026]

#### 3.0.8

 * Fixed: Compatibility issue with Woodmart theme where early returns in slw_wp_head()
   prevented closing of

#### 3.0.7

 * Added: JSON payload-based API for bulk updating stock and price per location 
   for products and variations. [Thanks to Mark Boorman][12/01/2026]

#### 3.0.6

 * Added: WooCommerce variation availability now respects location stock for swatch-
   based themes like Woodmart. [Thanks to Renzo Westenbroek][05/01/2026]

#### 3.0.4

 * Tested: WooCommerce variation availability now respects location stock for swatch-
   based themes like Woodmart. [Thanks to Renzo Westenbroek][05/01/2026]

#### 3.0.2

 * Fixed: Only enabled/active stock locations will contribute in total stock value
   but it would still be editable. [Thanks to @josephkallinit][21/10/2025]
 * Fixed: Prevented potential PHP error when `$slw_api_valid_keys` is null during
   API validation. [Thanks to Tushar Tajane][21/10/2025]
 * New: Order notes can be turned off from the settings. [Thanks to Rob Wood][21/
   10/2025]
 * Fixed: Incorrect price range display for variable products when location-based
   stock prices are higher than variation base prices. The location price now overrides
   confusing WooCommerce default range formatting.
 * Improved: Sale price logic now fully respects location-based pricing — ensuring
   both range and sale indicators are hidden when local price is higher. [21/10/
   2025]

#### 3.0.1

 * Added: Conditional CSS injection for WooCommerce Blocks to hide sale and del 
   elements when location price exceeds the base or sale price.
 * Improved: Price hiding logic refactored for better compatibility across all product
   types (simple, variable, grouped). [20/10/2025]

## Meta

 *  Versjon **3.2.2**
 *  Sist oppdatert **3 uker siden**
 *  Aktive installasjoner **900+**
 *  WordPress-versjon ** 4.9 eller nyere **
 *  Testet opp til **7.1.4**
 *  PHP-versjon ** 7.2 eller nyere **
 *  Språk
 * [Chinese (China)](https://cn.wordpress.org/plugins/stock-locations-for-woocommerce/),
   [Dutch](https://nl.wordpress.org/plugins/stock-locations-for-woocommerce/), [English (US)](https://wordpress.org/plugins/stock-locations-for-woocommerce/),
   [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/stock-locations-for-woocommerce/),
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/stock-locations-for-woocommerce/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/stock-locations-for-woocommerce/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/stock-locations-for-woocommerce/)
   og [Spanish (Venezuela)](https://ve.wordpress.org/plugins/stock-locations-for-woocommerce/).
 *  [Oversett til ditt språk](https://translate.wordpress.org/projects/wp-plugins/stock-locations-for-woocommerce)
 * Stikkord
 * [simple product](https://nb.wordpress.org/plugins/tags/simple-product/)[stock](https://nb.wordpress.org/plugins/tags/stock/)
   [stock locations](https://nb.wordpress.org/plugins/tags/stock-locations/)[Variable Products](https://nb.wordpress.org/plugins/tags/variable-products/)
   [woocommerce](https://nb.wordpress.org/plugins/tags/woocommerce/)
 *  [Avansert visning](https://nb.wordpress.org/plugins/stock-locations-for-woocommerce/advanced/)

## Vurderinger

 4.8 av 5 stjerner.

 *  [  49 5-stjerne-vurderinger     ](https://wordpress.org/support/plugin/stock-locations-for-woocommerce/reviews/?filter=5)
 *  [  1 4-stjerne-vurdering     ](https://wordpress.org/support/plugin/stock-locations-for-woocommerce/reviews/?filter=4)
 *  [  0 3-stjerne-vurderinger     ](https://wordpress.org/support/plugin/stock-locations-for-woocommerce/reviews/?filter=3)
 *  [  0 2-stjerne-vurderinger     ](https://wordpress.org/support/plugin/stock-locations-for-woocommerce/reviews/?filter=2)
 *  [  3 1-stjerne-vurderinger     ](https://wordpress.org/support/plugin/stock-locations-for-woocommerce/reviews/?filter=1)

[Din omtale](https://wordpress.org/support/plugin/stock-locations-for-woocommerce/reviews/#new-post)

[Se alle omtalene](https://wordpress.org/support/plugin/stock-locations-for-woocommerce/reviews/)

## Bidragsytere

 *   [ Fahad Mahmood ](https://profiles.wordpress.org/fahadmahmood/)
 *   [ alexmigf ](https://profiles.wordpress.org/alexmigf/)
 *   [ InvoicePress ](https://profiles.wordpress.org/invoicepress/)

## Brukerstøtte

Saker løst siste to måneder:

     1 av 1

 [Vis brukerstøtteforumet](https://wordpress.org/support/plugin/stock-locations-for-woocommerce/)