• Resolved mariebray4

    (@mariebray4)


    I have linked this plugin with my cloud based tills in my stores, it updates the levels every 15 minutes. as you can imagine, the stock levels change very frequently whilst the stores are open and selling. I am getting the “Stock value updated. Please refresh this page.” on the product pages. is there anyway to stop this happening? is there something we have overlooked?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @mariebray4 I have already noticed this text appearing on the product page. Don’t worry, just share any product page link here if your website is LIVE. In the next version you will see the improvement.

    Thread Starter mariebray4

    (@mariebray4)

    When I go back into the product via edit and refresh manually it solves the issue for a few mins then comes back.

    I have 16 in stock but it keeps saying 10.

    https://towngardensandcitypets.com/item/beaphar-dog-flea-shampoo-250ml/

    (use post code “HU3 6TA” to view the locations drop down. I had my developer hide it for people who are not local. I had this issue before my developer added this feature.)

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    I will look into it.

    I am also getting the “Stock value updated. Please refresh this page.” on the product pages. @fahadmahmood You can view this at https://i.imgur.com/aJj18Js.png . I updated my inventory via a CSV file and got the above message

    @fahadmahmood Hi, I checked the method get_all_product_stock_locations_for_selection() on file stock-locations-for-woocommerce\src\helpers\helper-slw-frontend.php, you can see https://i.imgur.com/EnmMX0x.png, then i checked the method get_product_locations_stock_total() on stock-locations-for-woocommerce\src\helpers\helper-slw-product.php, you can see https://i.imgur.com/00qAZj3.png, and i checked the method getProductStockLocations() on stock-locations-for-woocommerce\src\helpers\helper-slw-stock-allocation.php, you can see https://i.imgur.com/fA6abIn.png

    I see that, I only get the “Stock value updated. Please refresh this page.” on the variant product page. When I try to refresh the page, stock will be set to 0. Through a few checks on the code, I found the getProductStockLocations() method only works with simple products. I think you update the handling for the variant product in this method so it can work properly

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    I am releasing a new version which is pending from a few weeks, please try that and confirm the recent status.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Stock value updated. Please refresh this page.’ is closed to new replies.