• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

woothemes / woocommerce / 3261 / 11
21%
master: 53%

Build:
Build:
LAST BUILD BRANCH: discount-calculation
DEFAULT BRANCH: master
Ran 06 Jul 2015 03:40PM UTC
Files 111
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Jul 2015 03:06PM UTC coverage: 21.232%. Remained the same
WP_VERSION=4.1 WP_MULTISITE=0

push

travis-ci

claudiosmweb
Allow decimal stock quantity via REST API

The WooCommerce default is to validate stock quantity as integer, however some users find it useful to override this to allow any float quantity, eg:
```php
remove_filter('woocommerce_stock_amount', 'intval');
add_filter( 'woocommerce_stock_amount', 'floatval' );
```

Currently the API forces stock quantities to integer, this change will allow decimal quantities.

4157 of 19579 relevant lines covered (21.23%)

1.26 hits per line

Source Files on job 3261.11 (WP_VERSION=4.1 WP_MULTISITE=0)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3261
  • Travis Job 3261.11
  • b1a6fa56 on github
  • Prev Job for WP_VERSION=4.1 WP_MULTISITE=0 on release/2.3 (#3260.11)
  • Next Job for WP_VERSION=4.1 WP_MULTISITE=0 on release/2.3 (#3262.11)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc