• Resolved wikiex

    (@wikiex)


    Hi
    I’m using “woocommerce cart stock reducer” plugin in my site. this works wery well with its amazing abilities But there is a problem that i cant fix it. (remind that my products are virtual)
    I use another plugin called “Quantities and Units for WooCommerce” that allows Stock Quantity and Quantity field to be decimal. (for example users can buy 0.2 unit of a product)
    when a product quantity goes less than 1 (for example 0.25) the “woocommere cart stock reducer” plugin makes it 0 and Prints the “out of stock” massage in the product page althogh my users can buy 0.1 unit of a product!
    when i deactivate the “woocommerce cart stock reducer” my users can buy products with amounts less than 1 !!!
    how can i fix this problem that allow my users to buy some amount of a product that have less than 1 unit in stock.
    thanks for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author James Golovich

    (@jamesgol)

    Interesting, that’s the first time I’ve heard of someone using fractions of a unit. There are numerous checks that check if value is less than 1 so I’m sure that is what you are hitting. I’ll have to setup some tests and find the best way to fix this.

    Thread Starter wikiex

    (@wikiex)

    thanks for your help.
    I sell digital dollars like “webmoney and perfect money dollars” with my country currency. so they can be decimal.
    i really need your help to fix this issue.

    Plugin Author James Golovich

    (@jamesgol)

    It is on my task list that I will get to when I have some available time.

    Thread Starter wikiex

    (@wikiex)

    thanks
    i also did my best to edit the plugin php files manually.
    i edited the file located in below address:
    woocommerce-cart-stock-reducer/includes/class-woocommerce-cart-stock-reducer.php
    in line 1005 of that file i changed the number 1 to 0.
    so the add to cart button and stock Qty have shown again ?? !
    but only the quantity field (that user choose the amount he wants to buy) is still not showing.

    i’ll wait for your help.
    thanks a lot

    Plugin Author James Golovich

    (@jamesgol)

    Fixed in development version. Feel free to send me a fraction of a bitcoin ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Decimal Stock Quantity’ is closed to new replies.