Commit Graph

12635 Commits

Author SHA1 Message Date
Justin Palmer 7c1d6b6d7c
Only display attribution meta boxes for valid orders 2023-11-27 18:59:12 +01:00
Justin Palmer c4ec613277
Clarify tracking consent and cookie management 2023-11-27 18:59:12 +01:00
Justin Palmer 602d1f2ba5
Clarify callback purpose and function 2023-11-27 18:59:12 +01:00
Justin Palmer f6f7b054e9
Remove PHPCS disable directive 2023-11-27 18:59:11 +01:00
Justin Palmer c095f9e1ce
Remove PHPCS disable directive 2023-11-27 18:59:11 +01:00
Justin Palmer d7a31e9a79
Clarify Order Source Attribution is_legacy flag being true 2023-11-27 18:59:11 +01:00
Justin Palmer d1c5af74c0
Remove extra line in PHPCS config 2023-11-27 18:59:11 +01:00
Justin Palmer 222cb6d776
Fixed test namespace
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:11 +01:00
Justin Palmer 05e4698af7
Better constant variable name 2023-11-27 18:59:11 +01:00
Justin Palmer cf8add7188
Const instead of let
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:10 +01:00
Justin Palmer 977863eacf
Remove superfluous comment
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:10 +01:00
Justin Palmer 23f4094ac0
Remove double newline
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:10 +01:00
Justin Palmer d60fe00308
Capitalize Tracks in comment
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:10 +01:00
Justin Palmer 378e4999e5
Clearer comment
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:10 +01:00
Justin Palmer df2e05e4cf
Re-add "mobiledetect/mobiledetectlib" library 2023-11-27 18:59:10 +01:00
Justin Palmer dfcaa6019d
Fix PHPCS errors in test files 2023-11-27 18:59:09 +01:00
Justin Palmer 527f51414d
Don't disable PHPCS rules 2023-11-27 18:59:09 +01:00
Justin Palmer 10b1af773c
Remove unnecessary PHPCS exclusions 2023-11-27 18:59:09 +01:00
Jeremy Pry cb116ddade
Limit registration during install, and move origin column to admin_init 2023-11-27 18:59:09 +01:00
Jeremy Pry ee93cacdd8
Add docblock to the woocommerce_order_save_attribution_source_data hook 2023-11-27 18:59:09 +01:00
Jeremy Pry ae99921667
Fix typo in class name 2023-11-27 18:59:09 +01:00
Jeremy Pry d6875fac14
Use an action to save the attribution data. 2023-11-27 18:59:08 +01:00
Jeremy Pry 4f305cc9cf
Add public get_*() methods 2023-11-27 18:59:08 +01:00
Jeremy Pry f6e8a586aa
Cleanup @ since tags 2023-11-27 18:59:08 +01:00
Jeremy Pry 2dd3cc6176
Remove period from the end of the feature description 2023-11-27 18:59:08 +01:00
Jeremy Pry de88fd19a7
Fix typos in comments 2023-11-27 18:59:08 +01:00
Jeremy Pry 62d05d9ab8
Make adjustments to JS files
- Use arrow functions
- Consistent use of let or const over var
- Clean up spacing and formatting
2023-11-27 18:59:08 +01:00
Jeremy Pry 3dafdb482d
Return early when there's already an order object. 2023-11-27 18:59:07 +01:00
Jeremy Pry 5effcb7a82
Handle orgin column registration for HPOS compatibility 2023-11-27 18:59:07 +01:00
Jeremy Pry ab92fa13ff
Mark not experimental, and update description 2023-11-27 18:59:07 +01:00
Jeremy Pry 15c7263ba6
PHPCS adjustments for test files 2023-11-27 18:59:07 +01:00
Jeremy Pry 5cba1a762d
Update MobileDetect library
For now, this manually adds the mobile detect library, due to an error that should be fixed by https://github.com/serbanghita/Mobile-Detect/pull/944.
2023-11-27 18:59:07 +01:00
Jeremy Pry eabda2b61e
Fix PHPCS errors and warnings 2023-11-27 18:59:07 +01:00
Jeremy Pry 5c82baef5b
Correct file/class name and PHPCS fixes 2023-11-27 18:59:07 +01:00
Jeremy Pry 7553579032
Use wc_get_template() for the template files 2023-11-27 18:59:06 +01:00
Jeremy Pry 0cb181bd9f
Add is_script_debug_enabled() method to the ScriptDebug trait 2023-11-27 18:59:06 +01:00
Jeremy Pry cbf0da970a
Create VersionUtil class 2023-11-27 18:59:06 +01:00
Jeremy Pry 8997db5f98
Add actual version to the template files 2023-11-27 18:59:06 +01:00
Jeremy Pry aeff5b1b82
Update source value processing to accept an array
This allows more flexibility in where the array of values to process originates, without this method explicitly relying on the $_POST super-global.
2023-11-27 18:59:06 +01:00
Jeremy Pry 228e5534b8
Remove get_source_label() method and add filters 2023-11-27 18:59:06 +01:00
Jeremy Pry 15d7a0ad48
Use Jetpack Constant utility class
This matches with the rest of WooCommerce technique.
2023-11-27 18:59:05 +01:00
Jeremy Pry 735da31595
Refactor device detection to a separate method 2023-11-27 18:59:05 +01:00
Jeremy Pry 2058928229
Use class directly instead of mocked 2023-11-27 18:59:05 +01:00
Jeremy Pry 3cee48143a
Move SourceAttribution test to correct location 2023-11-27 18:59:05 +01:00
Jeremy Pry 67c7f198b4
Make the on_plugins_loaded function protected 2023-11-27 18:59:05 +01:00
Jeremy Pry df0f6a6fd3
Update Consent API test to use closures 2023-11-27 18:59:05 +01:00
Jeremy Pry f8a24b6819
Add file headers to the new templates 2023-11-27 18:59:04 +01:00
Jeremy Pry 67e40fcc68
Mock FeaturesController class for WCCOM test 2023-11-27 18:59:04 +01:00
Jeremy Pry 2ef7df465a
Add tracks using JS 2023-11-27 18:59:04 +01:00
Jeremy Pry edfe2896b4
Add Tracks event with source data 2023-11-27 18:59:04 +01:00