Narek Zakarian
eb080c9275
Merge branch 'trunk' into PCP-1083-update-standard-payments-tab-settings
2022-12-20 19:37:51 +04:00
Alex P
80428f1eb1
Execute WC validation only for buttons in checkout
2022-12-12 09:18:37 +02:00
Narek Zakarian
3398e46329
Allow general/default styling for smart buttons
2022-12-05 18:12:15 +04:00
Narek Zakarian
da07c3b5fa
Refactor smart button with new settings
2022-12-05 16:53:30 +04:00
Emili Castells
6a3f96a1e8
Merge pull request #1047 from woocommerce/pcp-1016-address-error
...
Fix shipping address validation
2022-12-01 11:58:09 +01:00
Emili Castells
67559a0492
Merge pull request #1035 from woocommerce/pcp-1036-fix-dcc-messages
...
Fix DCC error messages handling
2022-11-30 16:32:26 +01:00
Alex P
428d4f700b
Fix shipping address validation
2022-11-30 12:44:35 +02:00
Alex P
1da410a6da
Fix checkout error messages checks
2022-11-29 10:23:47 +02:00
Alex P
e9d83449d4
Fix DCC error messages handling
2022-11-29 10:02:10 +02:00
Alex P
308ce11674
Set $_POST before validation
2022-11-23 10:34:19 +02:00
Emili Castells
93d33e5cad
Merge pull request #1004 from woocommerce/pcp-972-highlight-empty-fields
...
Trigger WC JS validation on button click to highlight empty fields
2022-11-22 11:31:21 +01:00
Alex P
78e076f0cb
Trigger WC JS validation on button click to highlight empty fields
2022-11-18 10:17:59 +02:00
Alex P
0bc23975a8
Use MutationObserver to show/hide variable product buttons
...
The price may get loaded later
2022-11-17 16:55:35 +02:00
Alex P
a0f6a8b700
Fix variable product price retrieval
2022-11-17 16:55:35 +02:00
Alex P
fca1f50878
Improve zero price check (handle NaN, null)
2022-11-17 16:55:35 +02:00
Alex P
38051eb617
Use PayPal button color for Pay Later when rendering separately
2022-11-16 09:23:08 +02:00
Emili Castells
e67b4225d3
Merge pull request #962 from woocommerce/PCP-915-create-pay-later-tab
...
Create the pay later tab
2022-11-15 11:53:37 +01:00
Narek Zakarian
629292c85a
Merge remote-tracking branch 'origin/trunk' into PCP-915-create-pay-later-tab
...
# Conflicts:
# modules/ppcp-wc-gateway/services.php
2022-11-15 14:40:23 +04:00
Alex P
d8f972343d
Merge branch 'trunk' into pcp-918-php-72
2022-11-15 12:36:20 +02:00
Narek Zakarian
5dca23e7e1
Fix the admin client ID for US
2022-11-15 14:35:02 +04:00
Emili Castells
967e40633e
Merge pull request #981 from woocommerce/pcp-966-prevent-enter
...
Prevent Enter key submit for our non-standard button gateways
2022-11-15 10:54:50 +01:00
Alex P
edea76c9e4
Prevent Enter key submit for our non-standard button gateways
...
Otherwise pressing Enter triggers WC order process without e.g. completing payment via paypal popup, and results in failure with confusing error message.
2022-11-14 10:17:26 +02:00
Narek Zakarian
77fa07160d
Fix the code style
2022-11-09 19:18:16 +04:00
Narek Zakarian
e189325766
Merge remote-tracking branch 'origin/trunk' into PCP-915-create-pay-later-tab
...
# Conflicts:
# modules/ppcp-button/services.php
2022-11-09 19:16:59 +04:00
Alex P
17d3cc152e
Require PHP 7.2
2022-11-09 16:00:15 +02:00
Narek Zakarian
ac420a6d7e
Fix Pay Later button admin preview
2022-11-09 17:58:25 +04:00
Narek Zakarian
4d0adae73b
Use "admin dummy client ID" when messaging is eligible
2022-11-09 17:57:52 +04:00
Alex P
818dbcf107
Add isolated container and dhii modularity deps
2022-11-09 10:13:03 +02:00
Narek Zakarian
54596fc108
Remove unnecessary throw tag from docblock
2022-11-04 12:42:50 +04:00
Emili Castells
e6acd1c27f
Merge pull request #923 from woocommerce/fix/one-page-checkout-compatibility
...
Fix button positioning for products with One Page Checkout Extension enabled
2022-11-02 16:39:50 +01:00
Emili Castells
77e18ea2b3
Merge pull request #942 from woocommerce/pcp-817-validation
...
Execute server-side WC validation when clicking button
2022-11-02 16:31:30 +01:00
Narek Zakarian
469c3ce9c3
Merge branch 'trunk' into pcp-917-preview
...
# Conflicts:
# modules/ppcp-wc-gateway/resources/js/gateway-settings.js
# modules/ppcp-wc-gateway/services.php
# modules/ppcp-wc-gateway/src/Assets/SettingsPageAssets.php
# modules/ppcp-wc-gateway/src/WCGatewayModule.php
# tests/PHPUnit/WcGateway/Assets/SettingsPagesAssetsTest.php
2022-11-02 18:01:37 +04:00
Narek Zakarian
cc1fb62a6f
Add button and message previews
2022-11-02 17:34:53 +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
3e82fd9996
Merge branch 'trunk' into PCP-915-create-pay-later-tab
...
# Conflicts:
# modules/ppcp-wc-gateway/services.php
2022-10-31 16:07:17 +04:00
Narek Zakarian
832f7a41cd
Refactor Pay Later to read from new tab setting on frontend
2022-10-31 15:59:17 +04:00
Alex P
b3df9a5b47
Fix err.details check, show message if no details
...
The array check was wrong, resulting in no message shown and an error about empty string.
Also we should output .message if no .details, or at least a generic message if no .message too
2022-10-31 11:42:14 +02:00
Alex P
c99418d0bc
Remove unused imports
2022-10-27 12:14:39 +03:00
Alex P
91636a9dcc
Execute server-side WC validation when clicking button (order creation)
2022-10-27 09:55:25 +03:00
Alex P
3dde305cb4
Fix order creation error message handling in js
2022-10-27 09:11:35 +03:00
Alex P
9020c9b797
Use the same errorHandler
...
Otherwise old messages may get stuck
2022-10-27 09:09:45 +03:00
Danae Millan
5a5933ce91
Fix button positioning for products with one page checkout enabled
2022-10-24 12:26:26 +03:00
Alex P
ab618b200e
Add button preview in settings
2022-10-21 17:56:48 +03:00
Alex P
4ca9639fb1
Add CSS file for non-DCC rules
2022-10-20 13:13:42 +03:00
Alex P
57af25a197
Hide order button via class
2022-10-20 09:24:24 +03:00
Emili Castells
7f566c6294
Merge pull request #844 from woocommerce/pcp-870-fix-browser-support
...
Improve old browsers support
2022-09-14 15:51:20 +02:00
Alex P
a766459ce1
Add FormData polyfil
...
Safari 10, Chrome 49, Firefox 43, ...
2022-09-12 11:42:58 +03:00
Alex P
86bd3886f0
Use appendChild for better compatibility
2022-09-12 10:23:53 +03:00
Alex P
daad118148
Fix babel in other modules
2022-09-12 10:22:02 +03:00
Alex P
23cb96e6f9
Explicitly send cookies in fetch
...
Not sent by default in old browsers
2022-09-09 16:28:58 +03:00