Emili Castells Guasch
cf8eaba0a3
Run autofix code style
2024-07-23 14:36:22 +02:00
Emili Castells Guasch
11105d913b
Run eslint autofix
2024-07-12 12:58:34 +02:00
George Burduli
49faab654a
Prevent enabling Standard Card Button when ACDC is enabled
2024-07-10 09:23:04 +04:00
Philipp Stracker
5307225ef3
🐞 Fix JS error during PayLater preview
...
Incorrect selector for `payLaterButtonPreview` caused the preview to fail when the “Enable Pay Later Button” was unchecked during page load.
2024-07-01 14:12:31 +02:00
Philipp Stracker
d2f0cb1c31
♻️ Consolidate preview-HTML in a new setting type
2024-06-27 18:01:06 +02:00
Philipp Stracker
c23129cb91
🐛 Render preview when enabling the button
...
Before this, the “is enabled” checkbox was not observed; enabling it did not cause a preview button to render, and required changing any other form field that was linked to the button
Also start to extract some logic to a new helper file.
2024-06-12 18:12:07 +02:00
Philipp Stracker
cdc98159b8
🔥 Remove unused import
2024-06-10 16:12:53 +02:00
Philipp Stracker
c03f83f2e5
✨ Add Google Pay preview button to ACP tab
...
Note: `phpcbf` adjusted tons of whitespace.
2024-06-07 12:28:49 +02:00
Pedro Silva
8e71665ec4
Add status message to feature availability reload.
2024-01-04 15:23:01 +00:00
Pedro Silva
81f606912f
Adds nonce validation to refresh feature status request.
2023-12-12 18:12:48 +00:00
Pedro Silva
d2abeb5dbf
Add mechanism to refresh feature status.
2023-12-12 17:30:55 +00:00
Alex P
2492957dba
Add block styling settings
2023-11-22 17:25:24 +02:00
Alex P
a3fec63153
Refactor preview id determination
2023-11-21 17:37:41 +02:00
Alex P
6c933e52c3
Add card button preview
2023-11-08 10:57:49 +02:00
Alex P
c72a335cdd
Hide card button in previews when has acdc or separate gateway
2023-11-08 09:46:52 +02:00
Narek Zakarian
ad7de79b38
Check if language selector exists
2023-10-31 19:48:48 +04:00
Narek Zakarian
7b02136f51
handle live preview for smart button language
2023-10-31 19:36:06 +04:00
Emili Castells
c07e8eaa87
Merge pull request #1719 from woocommerce/PCP-2006-google-pay-settings-improvements
...
Google Pay Settings improvements (2006)
2023-10-17 14:24:57 +02:00
Alex P
7da5d8d68a
Simplify message wrapper rendering and add shop, home locations
2023-10-16 21:41:17 +03:00
Alex P
e867488ee2
Fix message previews
2023-10-16 18:36:23 +03:00
Pedro Silva
ad018766a6
Merge branch 'trunk' into PCP-2006-google-pay-settings-improvements
2023-09-21 16:10:28 +01:00
Pedro Silva
08d8cded5b
Add GooglePlay preview in admin settings.
2023-09-21 11:58:51 +01:00
Pedro Silva
0cddf83b9d
Add FieldDisplayManager.
...
Refactor admin field show/hide.
2023-09-14 17:48:46 +01:00
Pedro Silva
d41a51fa63
Add handler support for settings fields
...
Add settings SubElementsHandler
2023-08-30 16:57:06 +01:00
Pedro Silva
9434a84301
Fix set paypal object to widgetBuilder on preview buttons
2023-07-26 15:21:31 +01:00
Alex P
3439f67ec9
Do not send buyer-country for previews in live mode to avoid error
2023-02-14 11:25:23 +02:00
Narek Zakarian
9c6a813776
Refactor settings JS code to work for standard tab
2022-12-05 15:28:45 +04:00
Narek Zakarian
769699763d
Merge pull request #993 from woocommerce/PCP-965-update-default-settings-for-pay-pal-buttons-and-pay-later-messaging
...
Update button defaults & setting descriptions
2022-11-18 18:37:32 +04:00
Narek Zakarian
09a30203dc
Fix preview fro Mini-cart
2022-11-18 13:00:29 +04:00
Narek Zakarian
dd03f02999
Don't show Pay Later button if locations are empty
2022-11-17 17:16:07 +04:00
Narek Zakarian
2775f7dd9d
Disable funding soures for Pay Later preview
2022-11-17 16:58:58 +04:00
Narek Zakarian
7051e86003
Improve standard button preview code.
2022-11-17 15:50:46 +04:00
Alex P
d5d2a4fca5
Hide tagline settings when not horizontal layout
2022-11-16 08:17:08 +02:00
Alex P
3e66958880
Hide checkout layout settings when using separate card button
2022-11-15 18:21:46 +02:00
Narek Zakarian
7a463e10fe
Consider funding sources for Pay Later preview
2022-11-10 16:11:36 +04:00
Narek Zakarian
d0f26fb891
consider disabled funding sources setting for pay later preview
2022-11-10 15:16:35 +04:00
Narek Zakarian
ac420a6d7e
Fix Pay Later button admin preview
2022-11-09 17:58:25 +04:00
Alex P
ed2479f95c
Do not load paypal sdk when settings page without previews
2022-11-04 10:05:32 +02:00
Narek Zakarian
7a0350ea7a
Add button and message preview scripts
2022-11-02 17:35:29 +04:00
Narek Zakarian
510cb4db49
Merge remote-tracking branch 'origin/pcp-917-preview' into PCP-915-create-pay-later-tab
...
# Conflicts:
# modules/ppcp-wc-gateway/resources/js/gateway-settings.js
# modules/ppcp-wc-gateway/services.php
2022-10-31 16:16:57 +04:00
Narek Zakarian
c68eac814f
Handle the JS logic
2022-10-31 15:58:19 +04:00
Alex P
ab618b200e
Add button preview in settings
2022-10-21 17:56:48 +03:00
dinamiko
ae11b15164
Do not show subscription behavior setting if subscriptions plugin is not active
2022-09-02 12:59:53 +02:00
Danae Millan
a4846b64fe
Fix wrong prefix for a newly added class for disabled checkbox
...
The prefix for the plugin is 'ppcp', not 'ppc' as it mistakenly was. Updating this for a checkbox class.
2021-11-23 22:12:32 -03:00
Danae Millan
b42e3d5623
Disable the Vaulting checkbox on page load before handling the UI
...
Otherwise the Pay Later options would stay disabled when vaulting was disabled from the PayPal account.
2021-11-22 12:53:00 -03:00
Danae Millan
3d03097110
Uncheck the Pay Later checkboxes before disabling them when enabling vaulting
...
This way the children settings of Pay Later get hidden, keeping the interface consistent.
2021-11-22 12:29:52 -03:00
Danae Millan
a338e727fd
Switch Pay Later labels when vaulting is toggled
...
This way we'd display the 'Enable' label when Pay Later can be enabled, and the reason why it can't be enabled when vaulting is enabled.
2021-11-20 14:38:36 -03:00
Danae Millan
587d3eef53
Disable the vaulting checkbox only when vaulting isn't in the scope
...
Now, as long as vaulting is in the PayPal account's scope, the checkbox would always be enabled. Independently from the Pay Later settings.
2021-11-20 12:51:11 -03:00
dinamiko
145b8085ab
Check if variable exist before calling it, persist vault enabled when token creation fails
2021-07-27 10:47:16 +02:00
dinamiko
ccf357d790
Disable vault setting if vaulting feature is not available in access token
2021-04-29 17:40:41 +02:00