529 Commits
Author SHA1 Message Date
Dovid LevineandGitHub 920d0b22af dev: remove deprecated get_offset() use (#760) 2023-07-19 18:06:41 -04:00
Geoffrey K TaylorandGitHub d09ce7df6f fix: Fixed shipping address getting skipped unnecessary (#752) 2023-07-19 17:16:00 -04:00
Dovid LevineandGitHub a4597db901 fix: remove codecept_debug() call from production code (#759) 2023-07-19 17:15:25 -04:00
f583628199 chore: implement WPGraphQL Coding Standards (#769)
* chore: avoid magic constants [PHPCS]

* chore: change ruleset to wp-graphql-cs and lint

* devops: HPOS added back to CI with the release of WC 3.9

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2023-07-19 17:11:25 -04:00
Dovid LevineandGitHub 4502bcd1a4 fix: initialize arrays before using (#765)
* fix!: update deps to required versions

* fix; initialize arrays before using
2023-07-19 16:12:36 -04:00
Dovid LevineandGitHub 58fbce7c57 fix: clean up unnecessary variables and ternaries (#766) 2023-07-19 16:10:23 -04:00
Dovid LevineandGitHub 4ed9cb94da chore: use fully-qualified class names for PHPDoc types (#767)
* fix!: update deps to required versions

* chore: use fqcn for PHPDoc types

* chore: cleanup use statements
2023-07-19 16:01:50 -04:00
Dovid LevineandGitHub d4927b9637 fix: use static closures when possible (#764)
* fix!: update deps to required versions

* fix: use static closures when possible
2023-07-19 15:56:42 -04:00
Dovid LevineandGitHub fa8e3005e5 fix: remove trailing commas from function calls (#768)
* fix!: update deps to required versions

* fix: trailing commas not allowed in PHP 7.2
2023-07-19 15:10:22 -04:00
AndresandGitHub fedde04f2b fix: localAttributes and globalAttributes filtering and returned wrong values. (#757)
* fix: Localattribute and globalAttribute filtering.

* fixup! fix: Localattribute and globalAttribute filtering.

* fixup! fixup! fix: Localattribute and globalAttribute filtering.

* fixup! fixup! fixup! fix: Localattribute and globalAttribute filtering.
2023-07-04 18:51:03 -04:00
Geoffrey K TaylorandGitHub 60711aaa1b feat: Account URL added to Auth URLs. (#755)
* feat: Account URL added to Auth URLs.

* fix: Account URL issues resolved + Variation Attribute connections refactored.
2023-07-03 03:34:58 -04:00
Geoffrey K TaylorandGitHub d2260ab07b fix: Minor settings bug patched. (#753) 2023-06-21 19:59:43 -04:00
Geoffrey K TaylorandGitHub e3e16e2a0f chore: Pre-release v0.14.0 (#751)
* chore: CHANGELOG.md and README.md updated.

* chore: README.md updated.
2023-06-21 14:41:43 -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
4ef46acd15 chore: setup PHPStan (#746)
* chore: setup PHPStan

* chore: General code cleanup for PHPStan

* chore: PHPStan to level 2

* chore: PHPStan to level 2

* fix: Syntax error fixed.

* devops: PHPStan level 2 reached.

* devops: PHPStan level 3 passed

* devops: PHPStan level 4 passed

* chore: fix bad typehints from jwt-auth [phpstan]

* chore: simplify conditional logic in WC_Terms::register_connections()

* chore: add stubs for WP type properties.

* fix: check for valid WC_Order_Item before caching order.

* chore: lint

* devops: PHPStan level 6 passed.

* chore: Linter compliance met.

* chore: simplify logic and check for valid term.

* fix: ensure valid types (partial)

* chore: [phpcs] allow inline type annotations

* devops: PHPStan level 8 reached.

* devops: More stability fixes.

* fix: general bugfixes and improvements

* devops: Code Quality GA script added.

* devops: Linter compliance met & 2 "phpstan-ignore" statements set.

* devops: PHPStan config and CI script fixed.

* fix: "cartItem" query resolution refactored

* devops: GA scripts updated.

* chore: Simple copy changes

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2023-06-13 16:17:02 -04:00
Geoffrey K TaylorandGitHub ba13b2ec0a feat: Authorizing URLs implemented and tested. (#745)
* feat: Authorizing URLs implemented and tested.

* feat: More woographql_*_nonce functions implemented.

* chore: linting changes made.

* chore: linting changes made.

* fix: woographql_*_ functions tested.

* chore: WPCS compliance met.

* devops: lint-code script updated to PHP v8.0

* chore: WPCS compliance met

* devops: TransferSessionHandlerTest & QLSessionHandlerTest updated

* devops: codeclimate.yml added.

* chore: Linter compliance met

* devops: Harmonizing WordPress doc written and Settings doc updated.

* chore: Typo fixed in docs.

* fix: General bugfixes and improvements related to Auth URLs

* devops: More docs.

* chore: Linter compliance met

* chore: small change made to docs.
2023-05-22 13:43:10 -04:00
Geoffrey K TaylorandGitHub 1f191039c1 feat: woographql_viewable_order_types hook added (#741)
* feat: woographql_viewable_order_types hook added

* chore: WPCS compliance met
2023-04-21 04:50:26 -04:00
Geoffrey K TaylorandGitHub fb4b73850c fix: PaymentToken child types fixed. (#739) 2023-04-20 21:04:06 -04:00
Geoffrey K TaylorandGitHub 0da1a819eb feat: filters added to product and order orderby enumerations (#737) 2023-04-20 20:26:50 -04:00
Geoffrey K TaylorandGitHub 80252b0998 feat: Country queries implemented. (#736)
* feat: Country queries implemented.

* chore: WPCS compliance met and late-minute renames.
2023-04-20 19:59:25 -04:00
Geoffrey K TaylorandGitHub 27d9297494 feat: payment method mutations and fields implemented. (#735)
* feat: payment method mutation implemented.

* devops: Unit test updated.

* chore: WPCS compliance met.
2023-04-20 17:33:58 -04:00
Geoffrey K TaylorandGitHub f4b153f147 feat: Docs Restored. Unsupported product type setting implemented. (#731)
* feat: docs started. Unsupported product type implemented.

* chore: WPCS compliance met

* chore: file renamed.

* feat: More docs written

* feat: 2 more docs written

* fix: settings docs images added.

* fix: settings docs images added.

* devops: UnsupportProductTypeTest added.

* devops: More docs changes.

* chore: WPCS compliance met

* devops: UnsupportedProductTypeTest updated.

* chore: WPCS compliance met
2023-04-18 23:48:08 -04:00
Geoffrey K TaylorandGitHub b2d6608e9a fix: Meta data type error fixed. (#728)
* fix: Meta data type error fixed.

* devops: CouponQueriesTest updated.

* chore: WPCS compliance met
2023-04-18 23:43:39 -04:00
Scott BolingerandGitHub c5cf6b6b35 fix case sensitive apply coupon mutation (#729)
The applyCoupon mutation is case sensitive, but coupons are not. This fixes trying to add a coupon code with lower case letters, such as `10off`. Previously you would get an error that the coupon doesn't exist because of mismatch in the case.
2023-04-18 23:12:06 -04:00
Geoffrey K TaylorandGitHub c068671d93 feat: WooGraphQL settings tab added. (#726)
* feat: WooGraphQL settings tab added.

* chore: WPCS compliance met

* bugfix: Order Item Node ID implemented.

* chore: Deprecated "AppContext::getLoader" calls replaced.

* chore: WPCS compliance met.

* fix: DownloadableItem "id" field implemented
2023-04-04 12:02:25 -04:00
Geoffrey K TaylorandGitHub 4bdf283c04 fix: Fixes order return type for guest. (#723) 2023-03-31 20:11:08 -04:00
Geoffrey K TaylorandGitHub 461caad55b feat: "NAME" added to "PostTypeOrderbyEnum" values (#722) 2023-03-29 13:18:06 -04:00
6532e0a4f7 Adds taxes to variation prices. (#717)
Co-authored-by: Andres A <andres@Andress-MacBook-Pro.local>
2023-03-21 15:32:06 -04:00
7343ab2174 Fix wrong arg in sale place wc_get_price_to_display and remove wc_get_price_to_display from raw price. (#716)
Co-authored-by: Andres A <andres@Andress-MacBook-Pro.local>
2023-03-17 14:52:15 -04:00
2b93c07a09 Adds noop for set_customer_session_cookie. (#710)
* Added noop for set_customer_session_cookie.

* fixup! Added noop for set_customer_session_cookie.

---------

Co-authored-by: Andres A <andres@Andress-MBP.home>
2023-03-10 14:38:18 -05:00
bde5fc5bbd Adds tax calculation to regular and sale prices. (#714)
* Adds tax calculation to regular and sale prices.

* fixup! Adds tax calculation to regular and sale prices.

* Fix phpunit deprecated method.

* fixup! Fix phpunit deprecated method.

* fixup! fixup! Fix phpunit deprecated method.

* Fix missing param in function.

* Fix linting.

---------

Co-authored-by: Andres A <andres@Andress-MBP.home>
2023-03-10 13:46:39 -05:00
Geoffrey K TaylorandGitHub de8cad3a81 fix: Fixed all product connection filtering regressions (#704)
* fix: Fixed all product connection filtering regressions

* chore: WPCS compliance met

* fix: Unsupport syntax refactored
2023-02-02 16:47:19 -05:00
18e66cdb4f Updates deprecated DataSource::resolve_post_object (#697)
* Updates deprecated DataSource::resolve_post_object

* chore: Unneeded class declarations removed.

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2023-02-01 17:54:20 -05:00
Geoffrey K TaylorandGitHub 82e5e72ff9 fix: Product "price" field now supports the "taxes included" display … (#703)
* fix: Product "price" field now supports the "taxes included" display setting.

* chore: WPCS compliance met.
2023-02-01 17:53:20 -05:00
Geoffrey K TaylorandGitHub 121918ffe2 devops: Test Scripts updated. (#702)
* devops: Test Scripts updated.

* chore: WPCS compliance met.
2023-02-01 14:57:46 -05:00
Geoffrey K TaylorandGitHub 0a54ce9edc feat: Auth no longer needed for the raw order totals (#700) 2023-02-01 14:01:56 -05:00
Geoffrey K TaylorandGitHub 30b34aaaac fix: Customer order connection args priority fixed. (#698) 2023-01-25 15:44:44 -05:00
Geoffrey K TaylorandGitHub c083fa51a4 fix: Parent connection classes namespaces updated. (#696) 2023-01-24 17:21:16 -05:00
Berry HijwegenandGitHub 7f6a7a1c13 Add filter to add custom fields to product sort (#690) 2023-01-23 15:50:50 -05:00
GillesandGitHub e772b2387e fix:$post_type must be an array when passed to in_array() (#695)
* * `$post_type` must be an array when passed to `in_array()`.
* Removes unused `$post_type_obj` variable.

* * Fixes tabs.
2023-01-23 15:48:09 -05:00
ba14f1cfd9 fix: product variation raw price not visible for public users (#671)
* fix: product variation raw price not visible for public users

* fixup! fix: product variation raw price not visible for public users

* fixup! fixup! fix: product variation raw price not visible for public users

* chore: WPCS compliance met

Co-authored-by: Andres A <andres@Andress-MacBook-Pro.local>
Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2022-12-07 17:26:55 -05:00
Fabio JunandGitHub ddb5195c48 Change deprecated method is_graphql_http_request (#667)
to is_graphql_http_request
2022-12-07 17:06:30 -05:00
Alexey VertinskyandGitHub ae56a35e2d Remove error when search coupons (#672)
Call to undefined function WPGraphQL\\WooCommerce\\Connection\\codecept_debug()
appears when search coupons accessed
2022-12-07 17:06:00 -05:00
0b8ce4f634 fix: Connections need to connect to Types that implement the Node interface (#675)
* - implement Node on different Types

* - update class-customers to return arrays for edges and nodes
- move id resolver from product-attribute interface to the specific types

* - return empty arrays for edges/nodes for coupon connections
- update test to check for falsy vs null

* - remove manual registration of the `Product` Interface
- register the fields to the Product Interface

* - fix code style

* - fix code style

* - no longer pass type registry to Product::register_interface()

* -  use post type registry to register the Product type as an Interface

* WPGraphQL v1.13.x support added.

* WPGraphQL v1.13.x support added.

* fix: filter corrected.

* fix: Needed code restored

* fix: Needed code restored

* parent field no longer overwritten

* chore: WPCS compliance met.

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2022-12-07 17:04:39 -05:00
Geoffrey K TaylorandGitHub 0b4c3e0aa8 fix: is_post_private overrode in WC_Post model abstract class (#651)
* fix: is_post_private overrode in WC_Post model abstract class

* chore: WPCS compliance met.
2022-08-29 13:29:14 -04:00
0867d430ef (Query) Format currency in cart type (#619)
* Format cart item price

* Fix price return type

* chore: CartQueriesTest updated with new price fields formatting

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2022-08-29 13:24:50 -04:00
Matthijs KniggeandGitHub 505d60d5da feat: Add filter hook to stock status enum (#634) 2022-08-29 13:19:56 -04:00
Geoffrey K TaylorandGitHub 0c918bb802 fix: temporary customers node fix applied and tested. (#650)
* fix: temporary customers node fix applied and tested.

* chore: WPCS compliance met
2022-08-26 22:43:09 -04:00
Geoffrey K TaylorandGitHub b7c7b2d299 fix: Cart emptied after checkout (#649)
* fix: Cart emptied after checkout

* chore: WPCS compliance met.
2022-08-26 20:32:37 -04:00
Geoffrey K TaylorandGitHub cb5888c80c fix: Most product attribute fields made nullable (#648) 2022-08-26 15:19:20 -04:00