Alex P
e5513d51de
Separate message rendering, fix some message rendering issues
2023-09-11 10:57:23 +03:00
Pedro Silva
89288603c3
Fix in the Single Product load SingleProductBootstap when we have Messages even if buttons are not present
2023-08-09 15:03:54 +01:00
Emili Castells
02de8ada7f
Merge pull request #1536 from woocommerce/PCP-1871-one-page-checkout-causes-mini-cart-not-showing-the-pp-button-on-certain-pages
...
One-page checkout causes mini cart not showing the PP button on certain pages (1871)
2023-08-09 11:03:26 +02:00
Emili Castells
5675ebee48
Merge pull request #1530 from woocommerce/PCP-1896-missing-order-details
...
Improve WC order creation in webhook
2023-08-02 16:52:56 +02:00
Pedro Silva
59a68fb604
Add sanitize woocommerce_widget_cart_is_hidden filter for consistent values.
...
Remove context restrictions to mini-cart paypal buttons.
2023-07-24 17:09:45 +01:00
Alex P
8835f4b2a9
Always save form in checkout
2023-07-21 19:35:13 +03:00
Pedro Silva
84a362a7c5
Fix lint
...
Add throttling to simulate_cart ajax call
2023-07-20 17:51:48 +01:00
Pedro Silva
a0480e35bb
Add paypal widget builder
2023-07-20 14:19:18 +01:00
Pedro Silva
4e50d1d6ba
* Add paypal script reloading
...
* Add button reloading in cart and product page
* Add checking filters asynchronously
2023-07-20 08:02:15 +01:00
Alex P
ced0828c2d
Merge branch 'trunk' into PCP-1762-cart-paylater-amount
2023-07-11 10:44:22 +03:00
Emili Castells
17a346cfc9
Merge pull request #1485 from woocommerce/PCP-1788-filter-to-conditionally-block-the-pay-pal-buttons
...
Filter to conditionally block the PayPal buttons (1788)
2023-07-05 10:15:34 +02:00
Emili Castells
1d75e73b56
Merge pull request #1435 from woocommerce/PCP-860-apm
...
Improve handling of APMs when popup is not used or not redirected back to WC
2023-07-04 16:22:39 +02:00
Pedro Silva
6b03960de7
Refactor button renderer and filter woocommerce_paypal_payments_<context>_button_disabled
2023-07-03 17:35:01 +01:00
Pedro Silva
82828c2991
Add support for PayPal SmartButtons enable / disable
...
Rename functions
Remove invalid function arguments
2023-06-26 18:14:41 +01:00
Alex P
b6a85f0d13
Update Pay Later amount on the cart page when cart total changes
2023-06-16 11:39:20 +03:00
Alex P
46ea7621d3
Create wc order in approval webhook if missing
2023-06-14 12:44:06 +03:00
Emili Castells
1debc92453
Merge pull request #965 from woocommerce/pcp-456-aub-choice
...
Improve cart subscriptions check and "All products for subscriptions" compatibility
2023-03-03 10:44:03 +01:00
Alex P
4ae82b704a
Make SmartButton more reusable
2023-02-15 16:03:49 +02:00
Alex P
2b244133e1
Make error message list more consistent with WC
...
Now it should match the behavior of WC checkout.js more closely and avoid duplicated message lists (because we were always creating our own list ignoring WC).
Also removed the persist parameter. It does not seem to be used for anything useful, and we only set it inconsistently for some of the errors (remained from some old code).
I guess the idea could be to prevent genericError() from clearing previously added errors. Such if you call clear(), added some messages, but then some generic handler also triggered and called genericError(). If we really need such behavior, then we can simply check whether the list is empty. But it's probably not a good idea anyway because it can cause confusion if genericError() was a result of some other operation unrelated to the previous errors (e.g. tried another payment gateway).
2023-02-14 17:12:08 +02:00
Alex P
09b6b411db
Call WC validation on free trial click
2023-02-07 15:29:53 +02:00
Alex P
79f2c9a1fa
Save checkout form before free trial redirect
2023-01-25 09:42:31 +02: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
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
Alex P
9020c9b797
Use the same errorHandler
...
Otherwise old messages may get stuck
2022-10-27 09:09:45 +03:00
Alex P
57af25a197
Hide order button via class
2022-10-20 09:24:24 +03:00
Alex P
5be88678e7
Use appendChild for better compatibility
...
For some reason Babel does not polyfill it
2022-09-09 11:20:23 +03:00
Alex P
0b4e42a30f
Refactor js error message creation, call jQuery animation only once
2022-08-10 10:09:06 +03:00
Narek Zakarian
6b8014e5b1
Fix the JS file
2022-07-28 16:33:24 +04:00
Alex P
e55e2d9c81
Merge branch 'trunk' into pcp-697-separate-gateway
2022-07-26 15:28:27 +03:00
Alex P
8212605926
Make js validation error message like WC message
2022-07-22 11:48:53 +03:00
Alex P
88838ce5ca
Add fields to the basic js validation error message
2022-07-21 10:13:59 +03:00
Alex P
d4e8bd453c
Add card button gateway
2022-07-19 09:20:26 +03:00
Alex P
7f42fe1882
Show basic validation error only for required fields
...
Otherwise it may trigger on some sites when the field is no longer required but still marked as invalid, e.g. after switching to a country without required state
2022-07-01 11:43:11 +03:00
Alex P
be9c624264
Add filter allowing to disable the basic client-side validation
...
In case some conflicts occur.
2022-06-28 12:09:18 +03:00
Alex P
ba432b9705
Fix basic validation
...
Use :visible in both selectors, otherwise it may result in an unwanted error if something triggered validation for hidden fields.
2022-06-20 18:27:04 +03:00
Alex P
993e109c49
Add basic input validation before opening PayPal popup
2022-06-03 16:27:53 +03:00
Alex P
4a4f131325
Handle card smart button for free trial (1$ auth + void)
...
Disabling this funding source also disables DCC
2022-04-25 15:24:37 +03:00
Emili Castells
0f1f729973
Merge pull request #561 from woocommerce/pcp-612-dcc-loading
...
Hide DCC order button until loaded, show spinner
2022-04-13 10:31:44 +02:00
Alex P
c701b46a40
Remove paypal buttons for free trial everywhere except checkout
2022-04-12 15:12:21 +03:00
Alex P
1c0df35f53
Handle free trial for paypal
...
Vault account without payment
2022-04-12 14:59:07 +03:00
Alex P
8ae32e8396
Hide DCC order button until loaded, show spinner
2022-03-31 08:52:33 +03:00
Alex P
f0ff7de9fa
Do not hide button on change payment page
2022-03-18 09:24:55 +02:00
Alex P
4fe5a63f42
Hide "Place order"/show spinner in Pay Now too
2022-03-17 16:00:55 +02:00
Alex P
d791873033
Move buttons loading spinner to the buttons container
...
should be more reliable, and for Pay Now there is no .place-order
2022-03-17 15:59:19 +02:00
Alex P
a1d735bc79
Hide "Place order"/show spinner only on normal checkout
2022-03-17 10:31:18 +02:00
Alex P
42345d4947
Add buttons loading spinner
2022-03-17 10:02:45 +02:00
Alex P
f6944a6208
Hide "Place Order" button on page load when PayPal selected
2022-03-15 09:28:51 +02:00
dinamiko
2f78bab9ca
Only display buttons in checkout if guest with subscription
2022-01-17 14:35:25 +01:00
Alex P
f4a32a01e7
Show "Venmo" instead of "PayPal" when using its' button
2021-12-09 17:29:48 +02:00
dinamiko
fad6c27ae4
Fix typo in variable name
2021-07-13 09:43:30 +02:00