Skip to content

Commit

Permalink
fix for quantity updates for variations
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Nov 20, 2024
1 parent 18774a7 commit 706e3d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion includes/API/Product_Variations_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function get_item_schema() {
if ( $this->wcpos_allow_decimal_quantities() &&
isset( $schema['properties']['stock_quantity'] ) &&
\is_array( $schema['properties']['stock_quantity'] ) ) {
$schema['properties']['stock_quantity']['type'] = 'string';
$schema['properties']['stock_quantity']['type'] = 'float';
}

return $schema;
Expand Down
15 changes: 10 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ or download the desktop application:
* Add new customers or checkout via Guest account
* Add miscellaneous products to cart, ie: products not in WooCommerce
* Live chat support within the application
* **Pro:** Use any WooCommerce gateway
* **Pro:** Create multiple POS Stores
* **Pro:** Analytics for POS and Online sales
* **Pro:** End of Day Reports
* **Pro:** Priority [Discord support](https://wcpos.com/discord) (usually < 1 hour)

= 🔓 [PRO FEATURES](https://wcpos.com/pro) =
* **Stock Management:** quickly adjust stock levels, pricing and more
* **Order Management:** re-open and print receipts for older orders
* **Customer Management:** create new customers and edit customer details
* **Payment Gateways:** use any gateway for checkout
* **End of Day Reports:** summarise daily sales, transactions, and cash flow for reconciliation
* **Stores:** Manage locations with unique tax settings, pricing and receipts
* **Priority [Discord support](https://wcpos.com/discord):** (usually < 1 hour)

= 📋 REQUIREMENTS =
* WordPress >= 5.6
Expand Down Expand Up @@ -82,6 +86,7 @@ There is more information on our website at [https://wcpos.com](https://wcpos.co
== Changelog ==

= 1.7.1 - 2024/11/14 =
* Fix: Error updating quantity for Product Variations when decimal quantities enabled
* Plugin Conflict: The wePOS plugin alters the standard WC REST API response, which in turn breaks WooCommerce POS
This small update adds code to prevent WooCommerce POS from being activated if wePOS is detected

Expand Down

0 comments on commit 706e3d7

Please sign in to comment.