Skip to content

only trigger when changing from o -> positive #1

Open

Description

@seansan

Hi, if I understand correctly the current version sets a product in stock also when I change QTY from 1->2

Is there a setting to only do this when changing stock from 0 to a positive number?

Activity

  1. mobweb commented on Nov 16, 2015

    @mobweb
    Owner

    If I recall correctly, the stock status is checked every time the stock quantity is changed. If the quantity is above 0, the status will be set to «In Stock»

  2. seansan commented on Nov 16, 2015

    @seansan
    Author

    Yes I understand, I was just suggesting an option where this functionality
    is only triggered when the old QTY = 0

    So when we play with/update existing products from 5 -> 10 (and have it out
    of stock) that it is not affected ...

    On Mon, Nov 16, 2015 at 9:33 AM, Louis Bataillard notifications@github.com
    wrote:

    If I recall correctly, the stock status is checked every time the stock
    quantity is changed. If the quantity is above 0, the status will be set to
    «In Stock»

    —
    Reply to this email directly or view it on GitHub
    #1 (comment)
    .

  3. mobweb commented on Nov 16, 2015

    @mobweb
    Owner

    Ah, OK. That makes sense I guess. Unfortunately I'm quite busy right now but have a look at https://github.com/mobweb/MobWeb_UpdateStockStatus/blob/master/app/code/community/MobWeb/UpdateStockStatus/Model/Observer.php. There you should be able to implement this check quite easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions