506d352292
fix: downloadsRemaining returns null for numeric string values ( #1000 )
...
* fix: downloadsRemaining returns null for valid numeric string values
Use is_numeric() + intval() instead of 'integer' === gettype() to handle
cases where WooCommerce stores downloads_remaining as a numeric string.
Mirrors WooCommerce's own approach in its download templates.
Co-authored-by: Nestor Vera <hacknug@users.noreply.github.com >
Closes #937
* fix: Match CI phpcov php-code-coverage version to Docker container
The Docker container uses php-code-coverage 9.2.x which serializes
coverage with v9 classes (e.g. Xdebug3Driver). phpcov v9 bundles
php-code-coverage v11 with different classes, causing
__PHP_Incomplete_Class errors. Pin to phpcov v8 + php-code-coverage v9
to match the Docker environment.
---------
Co-authored-by: Nestor Vera <hacknug@users.noreply.github.com >
2026-03-26 23:03:30 -04:00
962410d265
fix: add model classes to type configs to better support query analyzer ID tracking ( #874 )
...
* - remove several fields that are already registered by core when the post type is mapped to the schema
* devops: Tests updated and coupon "salt" restored
* chore: Linter & PHPStan compliance met
* chore: Linter & PHPStan compliance met
* devops: "self" replaced with "static" in cli tests
* chore: fix cleanup after rebasing
---------
Co-authored-by: Geoff Taylor <geoff@axistaylor.com >
2024-08-06 18:54:18 -04:00
Geoff Taylor and GitHub
f1d96bead4
collectionStats query fully implemented (#849 )
...
* fix: WPGraphQL v1.24.x support added
* fix: WPGraphQL v1.24.x support added
* chore: Linter and PHPStan compliance met
* chore: composer.json fixed
* fix: Unnecessary type check restored
* chore: Linter and PHPStan compliance met
* devops: CollectionStatsQueryTest patched
2024-05-16 21:27:54 -04:00
57800b46f3
feat: HPOS support added. ( #748 )
...
* feat: HPOS support added.
* fix: Refund connections and connection permission fixed
* chore: Linter compliance met.
* devops: CI script updated.
* devops: CI script updated.
* fix: Syntax error fixed.
* devops: CI script updated.
* devops: CI script updated.
* devops: CI script updated.
* chore: PHPStan fixes started.
* chore: linter compliance met.
* chore: fix scanning and type-hinting for non-stubbed classes
* dev: refactor Order model around WC_Abstract_Order
* chore: update dev deps
* devops: PHPStan and Linter compliance met.
* devops: HPOS test temporarily suppressed.
---------
Co-authored-by: David Levine <david@axepress.dev >
2023-06-21 13:21:29 -04:00
Geoffrey K Taylor and GitHub
223bde6ea2
feat: "product" and "variation" connections added to LineItem type ( #604 )
...
* feat: "product" and "variation" connections added to LineItem type
* chore: Coding standards met
* fix: GraphQLE2E helper updated to reflect schema changes
* chore: PHP 8.0 compliance met
* chore: Workflow codecoverage set to target PHP 7.4
* chore: WPCS compliance met
2022-03-04 23:44:48 -05:00
Geoff Taylor
66690f03ff
"Customer_Connection_Resolver" deprecated.
2021-06-14 11:40:42 -04:00
Joel
27de711a30
Added refund date field
2021-03-06 04:44:41 +01:00
Geoff Taylor
f55db50374
ProductHelper::create_download() bug resolved.
2021-01-22 11:36:50 -05:00
Geoff Taylor and Geoff Taylor
f47bee2b5f
Docker/Codeception configuration heavily refactored..
2021-01-22 11:34:09 -05:00
Geoff Taylor
b3c649da67
CartItem connections implemented and tested
2020-11-24 00:28:20 -05:00
Geoff Taylor
de137b4311
"totalTaxes" added to "CartQueriesTest::testCartQuery" test.
2020-11-23 14:46:41 -05:00
Geoff Taylor
885736b970
Minor bugs in tests resolved.
2020-10-14 20:33:55 -04:00
Geoff Taylor
b7a14f95a1
Session Handler upgraded.
2020-10-01 01:45:26 -04:00
Geoff Taylor
449d3b1674
"typeId" fields replaced by "databaseId".
2020-09-16 16:32:14 -04:00
Geoff Taylor
664bacf429
Heavy refactor of productconnection "resolve" functions.
2020-08-07 10:35:21 -04:00
Geoff Taylor
ee9b210a42
GlobalProductAttribute "label" field defined.
2020-08-06 14:47:24 -04:00
Geoff Taylor
cf25353985
ProductAttributeQueriesTest updated
2020-08-06 14:47:24 -04:00
Geoff Taylor
c6b8321d81
some tests updated.
2020-06-12 16:50:21 -04:00
Geoff Taylor
2e52eb6e7d
local testing guide complete
2020-06-04 22:20:12 -04:00
Geoff Taylor and Geoff Taylor
45f14ca7df
syntax fixed.
2020-06-04 22:20:12 -04:00
Geoff Taylor and Geoff Taylor
1c63cc0a91
local-testing contribution guide updated.
2020-06-04 22:20:12 -04:00
Geoff Taylor and Geoff Taylor
7fa4603a9b
new test added.
2020-05-11 21:24:34 -04:00
Geoff Taylor and Geoff Taylor
6d63f8d00d
updateCustomer resolver cleaned up
2020-05-11 21:23:56 -04:00
Geoff Taylor and Geoff Taylor
6551ebc7e0
wc-db-loader created
2020-05-11 21:22:28 -04:00
Geoff Taylor
c63679430a
Customer to DownloadableItems connection implemented
2020-02-19 16:18:05 -05:00
Geoff Taylor
e2d55d4a6c
"postCode" and "postCodeIn" arguments added to the "TaxRate" connection.
2020-02-03 23:42:31 -05:00
Geoffrey K Taylor and GitHub
e5ed5556c7
Checkout mutation updates ( #229 )
...
* "isPaid" and "transactionId" fields added to "CheckoutInput".
2020-02-03 19:30:43 -05:00
Geoff Taylor
b57ec1c34a
"DownloadableItem" type and connection implemented.
2020-01-22 03:07:39 -05:00
Geoff Taylor
c1239d0863
"ProductAttribute" re-designed.
2020-01-15 20:24:38 -05:00
Geoff Taylor
b905af9fae
CartMutationsTest updated.
2020-01-12 01:59:11 -05:00
Geoff Taylor
a80dc9d59a
Pagination implemented on cart connection
2020-01-11 19:43:08 -05:00
Geoff Taylor
190f322994
new field cap check set.
2020-01-11 15:39:04 -05:00
Geoff Taylor
46661913dd
Product "link" fixed.
2019-11-13 21:06:01 -05:00
Geoff Taylor
d7f16c99a1
"link" field added to "Product" interface.
2019-11-04 22:49:03 -05:00
Geoff Taylor
971f4eaf0f
""ProductUnion" type implemented.
2019-10-17 21:39:38 -04:00
Geoff Taylor
bd93f4d4c6
Customer jwt fields test implemented.
2019-10-16 00:57:20 -04:00
Geoff Taylor
98accdfc66
product taxonomies test implemented.
2019-10-15 22:43:01 -04:00
Geoff Taylor
f9fde20329
"format" argument added to Product fields "description" and "shortDescription".
2019-09-03 15:36:48 -04:00
Geoff Taylor
8025de7667
"MetaData" type and queries implemented and tested.
2019-08-21 15:10:16 -04:00
Geoff Taylor
fa736107c4
CartItem field "extraData" implemented and tested.
2019-08-21 11:17:23 -04:00
Geoff Taylor
b8103747b8
"slug" and "sku" arguments added to "productBy" query.
2019-07-09 21:46:07 -04:00
Geoff Taylor
95d82ddf81
JWT Auth fields added to "Customer" type. "Customer" added to "checkout" mutation output.
2019-07-09 16:02:42 -04:00
Geoff Taylor
ad82310c0a
crud loader refactored
2019-07-09 03:55:55 -04:00
Geoff Taylor
140b64ae04
"deleteOrder" mutation implemented and tested.
2019-07-05 17:27:14 -04:00
Geoff Taylor
1b16268c37
Heavy refactoring done to Order_Mutation class
2019-07-04 01:49:01 -04:00
Geoff Taylor
fccf7b98dd
Placemarker before Order_Mutation refactor
2019-07-03 18:25:18 -04:00
Geoffrey K Taylor and GitHub
1b1bb68df4
Merge pull request #91 from kidunot89/bugfix/variable-type-product-attributes
...
ProductAttribute null key error fixed.
2019-06-23 09:52:03 -04:00
Geoff Taylor
3c0bcd3cda
Cacheable global ID add to ProductAttribute type.
2019-06-23 09:23:17 -04:00
Geoff Taylor
c6ae5ced6d
VariationAttribute field "id" changed to cachable global ID.
2019-06-22 10:56:35 -04:00
Geoff Taylor
e13ddce4b2
More tests modifications for Product and ProductVariation code coverage.
2019-06-05 19:46:01 -04:00