Pedro Silva
781d539e7f
Refactor hosted fields for early card detection
2023-07-28 16:37:44 +01:00
Pedro Silva
ecbe4a9abf
* Fix add fix for Messages loading edge case and a Widget reload event listener.
2023-07-27 17:13:53 +01:00
Pedro Silva
9cdd11b3b3
Refactor paylater and buttons filters for simplicity
...
Add show / hide messages functionality on the frontend
2023-07-27 09:57:19 +01:00
Emili Castells Guasch
8779a5acaa
Merge branch 'trunk' into PCP-991-v2-detach-vaulting-from-wc-subscriptions-support
2023-07-26 11:47:31 +02:00
Pedro Silva
0fed872c13
Add ability in WidgetBuilder to have multiple buttons rendered per wrapper.
2023-07-25 16:33:56 +01:00
Pedro Silva
cc79f62cab
* Remove commented code
2023-07-25 08:35:07 +01: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
Pedro Silva
5d43dfeb8b
Change method to add an event listener on single product page.
...
Add check for price not found in DOM for single product page.
2023-07-24 08:35:23 +01:00
Alex P
8835f4b2a9
Always save form in checkout
2023-07-21 19:35:13 +03:00
Pedro Silva
044a704048
Remove unused debounce function
2023-07-21 10:39:18 +01: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
Emili Castells Guasch
c13ac3ab73
Disable buttons in cart and checkout pages when no subscription plan exists
2023-07-20 14:29:37 +02:00
Emili Castells Guasch
c636192e98
Do not render buttons on single product page if there is not subscription plan
2023-07-20 12:27:14 +02: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
Emili Castells Guasch
d6c12ce29d
Merge branch 'trunk' into PCP-991-v2-detach-vaulting-from-wc-subscriptions-support
2023-07-19 14:26:15 +02:00
Emili Castells
a29e597ff9
Merge pull request #1441 from woocommerce/PCP-1762-cart-paylater-amount
...
Update Pay Later amount on the cart page and checkout when total changes
2023-07-18 15:39:35 +02:00
Emili Castells
24a40a283c
Merge pull request #1510 from woocommerce/PCP-1873-complex-form-fields
...
Handle complex form fields when submitting checkout form
2023-07-18 15:37:57 +02:00
Emili Castells
9d906a1f4b
Merge pull request #1478 from woocommerce/PCP-895-buttons-not-working-on-single-product-page-for-woo-commerce-bookings-product
...
Buttons not working on single product page for WooCommerce Bookings product (895)
2023-07-18 15:36:00 +02:00
Emili Castells Guasch
59afa81160
Introduce paypal-js loading wrapper to be able to reload script
2023-07-13 16:22:57 +02:00
Alex P
639e8409c8
Handle complex form fields when submitting checkout form
...
Our current way of handling the checkout form via ajax does not match the WC behavior which submits them in urlencoded request instead of JSON. When it is submitted as JSON object PHP does not parse it for $_POST etc., and we do not get its handling of arrays, breaking some plugin.
Now submitting the form as an urlencoded string inside JSON and parsing via `parse_str` which seems to handle it the same as $_POST.
The parsing is handled in `RequestData` to avoid duplicating it in multiple places and to keep our weird sanitization here. Not sure if it's a good idea to sanitize so early, but for now keeping it like this to avoid major refactoring or introducing new vulnerabilities.
2023-07-13 14:43:14 +03:00
Emili Castells Guasch
96e434d4b0
Merge trunk
2023-07-12 11:14:23 +02:00
Alex P
395102ef26
Update Pay Later amount in checkout when cart total changes
2023-07-11 16:52:46 +03:00
Alex P
67ad49b8de
Merge branch 'trunk' into PCP-1762-cart-paylater-amount
2023-07-11 11:41:02 +03:00
Alex P
f67db5c524
Check that event handler is not null
...
It is passed as null in 5a0b0b41a9/modules/ppcp-wc-gateway/resources/js/gateway-settings.js (L85)
2023-07-11 11:31:34 +03:00
Alex P
ced0828c2d
Merge branch 'trunk' into PCP-1762-cart-paylater-amount
2023-07-11 10:44:22 +03:00
Pedro Silva
25282b9514
Fix code review ajustments
2023-07-10 08:53:05 +01:00
Pedro Silva
3b5a4b7f23
Add cart cleanup functionality to single page Bookable products
2023-07-05 17:10:26 +01:00
Pedro Silva
c00b5906f7
Merge branch 'trunk' into PCP-895-buttons-not-working-on-single-product-page-for-woo-commerce-bookings-product
2023-07-05 09:34:11 +01: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
f6e625718e
Refactor handleButtonStatus and shouldEnable methods in buttons bootstraps
2023-07-04 14:43:55 +01: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
74f28ca921
Add filter woocommerce_paypal_payments_<context>_button_disabled to disable PayPal buttons on a given context.
2023-07-03 11:40:37 +01:00
Pedro Silva
e94316aecd
Add filter woocommerce_paypal_payments_product_button_disabled to disable PayPal buttons on single product page.
2023-07-03 08:25:35 +01:00
Pedro Silva
7b04290eac
Add support for WooCommerce Bookings on single product page
2023-06-30 10:00:44 +01:00
Emili Castells Guasch
c8e40b56c4
Add support for variable subscriptions (WIP)
2023-06-28 17:17:22 +02:00
Emili Castells
b4cc4dcfe9
Merge pull request #1469 from woocommerce/PCP-1607-smart-buttons-not-greyed-out-removed-on-single-product-when-deselecting-product-variation
...
Smart buttons not greyed out/removed on single product when deselecting product variation (1607)
2023-06-27 17:05:22 +02:00
Alex P
2b566fcf44
Merge branch 'trunk' into PCP-860-apm
2023-06-27 15:54:06 +03:00
Emili Castells
715e9bcf17
Merge pull request #1384 from woocommerce/PCP-1700-js-error-event
...
Trigger WC checkout_error event
2023-06-27 11:40:01 +02: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
Pedro Silva
adf7a2e297
Remove unnecessary code
2023-06-26 11:55:30 +01:00
Pedro Silva
75bf98c174
Add hide / show conditions on SingleProduct Buttons for when they shouldn't be rendered.
...
Refactor MessageRenderer not to reload when it has no changes.
2023-06-23 15:49:08 +01:00
Pedro Silva
587e065fba
Refactored button display logic
...
Replaced show / hide buttons mode with enable / disable buttons mode
2023-06-23 08:23:11 +01:00
Emili Castells Guasch
06bfe33db2
Working on subscriptions (WIP)
2023-06-21 15:42:18 +02:00
Emili Castells Guasch
09c7537e48
Hide non updatable form fields if subscription product connected to PayPal
2023-06-16 16:11:45 +02: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 Guasch
87325585f1
Fix cart button render conditional
2023-06-13 11:46:56 +02:00
Emili Castells Guasch
f9ed01e5c4
Fix single product button render conditional
2023-06-13 11:33:24 +02:00