How does the “Add stock” feature work?

Top WooCommerce & WordPress Plugins Forums Cost of Goods for WooCommerce How does the “Add stock” feature work?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #89866
    Maisarah
    Guest

    Hi,

    I want to know how the exact calculation for Cost of Goods: Add Stock in the product page. How to use it?

    #89867
    Zohaib
    Participant

    Hi,

    In the plugin’s settings General > Add Stock > Cost Calculation Expression

    You can customize the formula for the add stock option.

    By default it is (Prev Stock x Prev Quantity + New Stock x New Cost) / Total Current Stock

    For examle:
    Prev stock 6 units at $3 = $18
    New Stock 6 units at $4 = $24
    ($18 + $24) / 12units = $3.5 per unit

    #89868
    Maisarah
    Guest

    Hi,

    One more question, I already got the cost per unit if I add the stock three times. But at the fourth time add stock and cost, the cost per unit did not correct.

    Thank you.

    #89869
    Zohaib
    Participant

    Hi,

    The cost will eventually average out, For example, in the above scenario, once the cost is $3.5 for 12 units and you add stock after that, the prev stock and prev quantity that will be used is $3.5 and 12 units.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.