VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: brianronnow on December 18, 2019, 08:05:05 AM

Title: how do i prevent that the stock go negative
Post by: brianronnow on December 18, 2019, 08:05:05 AM
Hello

I just taken over a clients site from another.
Now my client say that someone has given a order, and the stock did go in -1.

How do i prevent that is is possible to order more then there is in stock?
Title: Re: how do i prevent that the stock go negative
Post by: GJC Web Design on December 18, 2019, 09:17:33 AM
VM admiin->shop front -> Action when a Product is Out of Stock
Title: Re: how do i prevent that the stock go negative
Post by: brianronnow on December 18, 2019, 09:24:55 AM
Here were the stock 1 and the customer order 2 or more.

Is it possible to get a notification that the stock is not full?
Title: Re: how do i prevent that the stock go negative
Post by: GJC Web Design on December 18, 2019, 13:06:36 PM
In the latest versions it should not be possible to order more than the stock if configured correctly

But u don't mention versions, template or any modifications
Title: Re: how do i prevent that the stock go negative
Post by: brianronnow on December 18, 2019, 13:46:15 PM
Oh sorry..
The installation has VirtueMart 3.4.2
Title: Re: how do i prevent that the stock go negative
Post by: Jörgen on December 18, 2019, 13:47:18 PM
Maybe more exact VM version 3.4.2.xxx

Template overrides php version ????

Settings for stock ?

Jörgen @ Kreativ Fotografi
Title: Re: how do i prevent that the stock go negative
Post by: brianronnow on December 18, 2019, 14:00:44 PM
Hello Jörgen

That only the version jeg can see, is the 3.4.2  , where can i see it?

As i have been told there is no template override, but that i have to confirm

Stetting is in Danish, so im not sure you will understand it

Handling hvis et produkt bliver udsolgt
   Send underretning om lav lagerbeholdning
   Stockhandling on product level
x Produkter der ikke er på lager kan fortsat bestilles, uden der
    Vis ikke produkt
    Produktet skal ikke vises, hvis underprodukter ikke er på lager.
x  Viser 'Giv mig besked' i stedet for 'Føj til kurv' knappen
     Produkter der ike er på lager, kan bestilles, og feltet »Tilgængelig« bliver vist nedenfor
Tilgængelighed
Title: Re: how do i prevent that the stock go negative
Post by: Jörgen on December 18, 2019, 16:56:34 PM
Hard to see in your text but it seems you have ticked:
QuoteProdukter der ikke er på lager kan fortsat bestilles, uden der
     
This should explain overselling.
Jörgen @ Kreativ Fotografi
Title: Re: how do i prevent that the stock go negative
Post by: brianronnow on December 18, 2019, 17:44:54 PM
A little screenshot
Title: Re: how do i prevent that the stock go negative
Post by: Jörgen on December 19, 2019, 07:29:08 AM
untick stockhandling on product level, se the description why.

Stockhandling will be set for EVERY product, not good for performance.

Jörgen
Title: Re: how do i prevent that the stock go negative
Post by: brianronnow on December 19, 2019, 08:03:25 AM
i just dont understand why there can be ordered 2 item, if only one is in stock, shouldn't there be an notification of that?
Title: Re: how do i prevent that the stock go negative
Post by: Jörgen on December 19, 2019, 09:53:50 AM

If You allow overselling, you will get negative stock.
When You handle the order, You will notice that stock is empty.
If You want more actions, You will have to customize Your template. I have done so for myself. Olympian themes have now preorder option in their themes.

Jörgen @ Kreativ Fotografi