Commit graph

7198 commits

Author SHA1 Message Date
carmenmaymo
86bf3f30d1
Hide button if there is a subscription switch in cart 2025-04-24 08:57:20 +02:00
carmenmaymo
f4792b5349
Add more conditions to show the button 2025-03-31 15:43:56 +02:00
Emili Castells
0d5ea1867f
Merge pull request #3285 from woocommerce/PCP-4432-apple-pay-domain-registration-links-to-production-website-in-sandbox-mode
Settings UI: Fix Feature button links (4432)
2025-03-31 09:22:55 +02:00
Daniel Dudzic
2aeae52448
🐛 Settings UI: Fix Feature button links 2025-03-28 15:21:12 +01:00
Emili Castells Guasch
c77f3266e8 Merge branch 'trunk' into PCP-4439-check-the-branded-only-flag-when-settings-ui-is-loaded-the-first-time 2025-03-28 14:39:03 +01:00
Philipp Stracker
cbcf9f755f
♻️ Rename the installation-path property
This change allows us to test the development internally as it “resets” the installation path flag when this plugin package is installed. Since it’s a new flag that’s always empty on customer sites, this change has no impact for customers
2025-03-27 17:00:31 +01:00
Philipp Stracker
7534ae5c11
🎨 Automatic code style fixes 2025-03-27 16:57:59 +01:00
Philipp Stracker
82c6b78f50
Check branded-only flags before rendering the UI
At this point we can reliably detect the branded only mode. Calling the initialize method on every render is no problem, because
2025-03-27 16:55:24 +01:00
Philipp Stracker
54da55301e
🔥 Remove the incorrect detection logic
It’s too early to detect branded-mode in this hook
2025-03-27 16:37:44 +01:00
Philipp Stracker
37532fa0dd
♻️ Refactor cache flushing to clear entire groups 2025-03-26 17:55:11 +01:00
Philipp Stracker
c89c602776
Add a new “flush” API method to the cache system 2025-03-26 17:44:31 +01:00
Philipp Stracker
bb03a41480
🎨 Apply phpcs rules to the Cache class 2025-03-26 17:43:57 +01:00
Narek Zakarian
a9cc04dc35
Show other payment methods if isn't eligible for WooPayments
If the current store is not eligible for WooPayments, we have to also show the other payment methods.
2025-03-26 17:27:21 +04:00
Emili Castells
8918e10bff
Merge pull request #3271 from woocommerce/PCP-4423-uncaught-reference-error-pay-pal-commerce-gateway-pay-pal-subscription-products-is-not-defined
Dequeue the ppcp-paypal-subscription on the new UI admin page (4423)
2025-03-26 11:44:56 +01:00
Emili Castells
fe055a0137
Merge pull request #3268 from woocommerce/PCP-4427-fix-the-branded-only-detection
Fix the branded-only detection (4427)
2025-03-26 11:40:10 +01:00
Daniel Dudzic
cee2f0ce39
Dequeue the ppcp-paypal-subscription on the new UI admin page 2025-03-25 23:09:08 +01:00
Philipp Stracker
362d6fb2e2
👔 Apply branded-only limitations via new filters 2025-03-25 21:40:56 +01:00
Philipp Stracker
236188af34
♻️ Deprecate old config-services 2025-03-25 21:36:44 +01:00
Philipp Stracker
c310151f1f
♻️ Use new eligibility-check services in new UI
Instead of using the instantly resolved eligibility flag, the most important features are now correctly checked after the plugin is fully initialized, which results in correct eligibility states
2025-03-25 21:33:05 +01:00
Philipp Stracker
f9adf64d03
Add real DI services for eligibility checks
The existing “services” are actually configuration flags, but not services
2025-03-25 21:21:44 +01:00
Philipp Stracker
407f33444e
Add new filter to control feature eligibility 2025-03-25 21:10:46 +01:00
Philipp Stracker
7fdb10d53b
🐛 Use correct branded-mode detection flags
WooCommerce changed their integration in the latest RC
2025-03-25 18:21:42 +01:00
Philipp Stracker
4b4036fbc7
🔀 Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-settings/resources/js/Components/Screens/Settings/Tabs/TabPaymentMethods.js
2025-03-25 18:11:10 +01:00
Philipp Stracker
7652bc8fea
🧑‍💻 Add a temporary branded-only simulation mode 2025-03-25 17:29:12 +01:00
Philipp Stracker
62e9a5e4ec
👔 Conditionally hide white-label settings 2025-03-25 16:58:58 +01:00
Philipp Stracker
d09a26d4e7
🔥 Remove dummy props 2025-03-25 16:58:29 +01:00
Philipp Stracker
5c34f2f78b
Hide empty payment method sections 2025-03-25 16:48:01 +01:00
Philipp Stracker
9dc1bf7d7b
♻️ Remove empty payment methods in JS hook 2025-03-25 16:43:33 +01:00
Philipp Stracker
faf0450b23
👔 Filter payment methods on server side 2025-03-25 16:37:16 +01:00
Emili Castells
39c8cc88b9
Merge pull request #3245 from woocommerce/PCP-4350-a-s-pre-execution-callback-can-result-in-fatal-error-subscriptions
Remove `action_scheduler_before_execute` code (4350)
2025-03-25 16:28:33 +01:00
Emili Castells
1849fb6f65
Merge pull request #3263 from woocommerce/PCP-4384-uncaught-type-error-cannot-set-properties-of-null-setting-checked
Simplify the new UI check for the onboarding.js file (4384)
2025-03-25 16:27:32 +01:00
Emili Castells
a4183bc398
Merge pull request #3265 from woocommerce/temp/branded-only
Temp/branded only
2025-03-25 14:56:35 +01:00
Philipp Stracker
807fd96183
♻️ Move branded-only detection to server side 2025-03-25 14:21:43 +01:00
Philipp Stracker
9d16b19bd4
Add php getter to determine branded-only state 2025-03-25 14:21:18 +01:00
Philipp Stracker
dab2127a64
🎨 Update code style and comment 2025-03-25 14:20:26 +01:00
Emili Castells
854dc242c4
Merge pull request #3254 from woocommerce/PCP-4406-onboarding-with-personal-account-does-not-met-expected-result
Fix incorrect payment method configuration after onboarding with personal accounts (4406)
2025-03-25 09:21:03 +01:00
Daniel Dudzic
0b46928ac4
Fix syntax 2025-03-24 18:45:24 +01:00
Daniel Dudzic
529fa60712
Re-add ignore code comment 2025-03-24 18:38:27 +01:00
Daniel Dudzic
98800e5cf5
Replace static method call with filter in conditional 2025-03-24 18:33:47 +01:00
Philipp Stracker
2147ecd334
♻️ Make icon declaration more accurate 2025-03-24 17:54:45 +01:00
Philipp Stracker
383d907866
🔀 Merge branch 'trunk' 2025-03-24 17:45:03 +01:00
Philipp Stracker
4c8252051a
🐛 Correctly handle the learn more link 2025-03-24 17:43:43 +01:00
Philipp Stracker
9bfecdbfd6
Remove white-label methods in branded-mode 2025-03-24 17:34:17 +01:00
Philipp Stracker
f716d12578
♻️ Make payment method filter more declarative 2025-03-24 17:33:46 +01:00
Philipp Stracker
38179492cf
🐛 Fix copy-paste error 2025-03-24 17:13:48 +01:00
Philipp Stracker
f652adf4c8
🐛 Remove “Learn more” link for branded only 2025-03-24 17:13:00 +01:00
Philipp Stracker
7fa436cf58
♻️ Refactor the paymentConfig hook 2025-03-24 17:07:40 +01:00
Philipp Stracker
6a0168349b
Generate custom description for branded-only 2025-03-24 16:38:35 +01:00
Philipp Stracker
80711d6750
💡 Add some code documentation 2025-03-24 16:29:39 +01:00
Philipp Stracker
27c4e62261
Add the “Blik” icon to the welcome screen 2025-03-24 16:23:44 +01:00