Commit Graph

37016 Commits

Author SHA1 Message Date
vedanshujain 6b550ffb23 Better error messages for when coupon are held in other transactions.
Earlier, we were just showing an "Usage limit reached message", however in some cases, specially when user is logged in, we can also ask them to go to MyAccount page and cancel order if they'd like to (to free up the coupon). This will hopefully make for a better user experience.
2020-12-16 15:19:40 +05:30
vedanshujain 507e7a27b2 Better error messages when coupons are stuck in a pending order.
We hold coupons when payment is failed if the setting "hold stock for checkout" is enabled for some minutes. This is to allow the customers to try again if they want, and to give time to complete payment for gateways where it could take some time.

Unfortunately this cause for some bad UX user retries by starting the order from scratch again, and then if they apply the coupon, usage limit gets hit because the earlier coupon is still held and is counted towards the usage. This commit improves the error message in these cases when usage is applied per customer and is hit, by stating to go to my account to complete/cancel payment (in case of logged in user) or to wait for some time in case of guest users.
2020-12-15 16:01:14 +05:30
Vedanshu Jain 4339aee35f
Merge pull request #27352 from juliquiron/fix/slow-wc-customer-get-operations
Added cache and filter for wc-customer get operations.
2020-12-14 09:43:04 +05:30
Tam Mullen 1add2556d6
Merge pull request #28437 from woocommerce/add/e2e-merchant-orders-filter-orders
Added tests for Merchant / Orders / Filter Orders flow
2020-12-10 20:54:19 +00:00
Peter Fabian 38546b43d5
Merge pull request #28400 from szepeviktor/patch-3
Put Travis configuration in chronological order
2020-12-10 19:21:09 +01:00
Néstor Soriano 15315d2468
Merge pull request #28499 from woocommerce/fix/26494
Remove deprecated PayPal Standard "Page style" setting
2020-12-09 12:32:37 +01:00
Roy Ho 7f4ad80cbd
Merge pull request #28204 from jlavoie13/add/pass-email-object-to-template-parts
Pass email object to header and footer templates
2020-12-08 15:02:37 -08:00
zhongruige c07f31f22c
Merge branch 'master' into add/e2e-merchant-orders-filter-orders 2020-12-08 15:50:00 -07:00
zhongruige 1dfedf425c Code review feedback--setting the consts in the test itself 2020-12-08 15:09:23 -07:00
Roy Ho 593cd0ea5d
Merge pull request #27675 from woocommerce/fix/update-premium-support-link-href
Update href of premium support link
2020-12-08 13:46:44 -08:00
Roy Ho 8f37a6936f
Merge pull request #28014 from JoryHogeveen/feature/20-10-20-price-slider-init-trigger
Widget: Price Slider - trigger to re-initialize
2020-12-08 13:35:10 -08:00
Roy Ho 018dbc251d
Merge pull request #28386 from abhishek-pokhriyal/remove/bc-check-determine-locale
Remove function_exists check for determine_locale
2020-12-08 13:15:22 -08:00
Ron Rennick fc95c2bba1
Merge pull request #28464 from woocommerce/fix/28200
Add missing E2E package dependencies
2020-12-08 15:40:21 -04:00
jlavoie13 27f9f1304c phpcs fixes 2020-12-08 14:32:28 -05:00
jlavoie13 8821bf41c5 pass email object to header and footer templates 2020-12-08 14:32:28 -05:00
Christopher Allford 35e509402d
Merge pull request #28519 from woocommerce/add/released-4.8
Add 4.8.0 release content to master
2020-12-08 10:14:55 -08:00
Christopher Allford 03c612b473 Added 4.8.0 changelog and updated stable tag 2020-12-08 09:58:37 -08:00
Claudio Sanches 1c65696535
Merge pull request #27850 from matt-h/webhook-schedule-when-processing
Make next webhook not return a date when the webhook is already running.
2020-12-07 19:20:02 -03:00
Claudio Sanches 09d98a6fe0
Merge pull request #28468 from woocommerce/fix/28417
Use single quotes inside MySQL query to avoid issues with ANSI_QUOTES
2020-12-07 19:08:38 -03:00
Ron Rennick 80ded96120 merge master 2020-12-07 13:13:52 -04:00
Roy Ho aa89afcf95
Merge pull request #28332 from woocommerce/update/replace-jquery-click
Replace usages of depracted jQuery.fn.click() event shorthand
2020-12-07 06:03:56 -08:00
zhongruige ae1ebfd031 Code review feedback--moving statuses to config values 2020-12-05 20:30:42 -07:00
Rodrigo Primo 621d6a73f1
Merge pull request #28269 from ramonfincken/master
[TASK] documented introduction of wc_get_container function
2020-12-05 15:11:15 -03:00
Rodrigo Primo 23af5478ec Fix JS coding standards 2020-12-05 11:11:56 -03:00
Christopher Allford 508999fdc7
Merge pull request #28501 from woocommerce/fix/2021-payment-method-box-radio-styling
Twenty Twenty-One Compatibility: Fix radio buttons on checkout page for payment box.
2020-12-04 15:23:44 -08:00
Jonathan Sadowski 0e40a078db Use correct colors for radios on payment method box 2020-12-04 16:56:06 -06:00
Jonathan Sadowski 2cb314edfc 2021 compat: Fix checkout page payment box radio styling 2020-12-04 16:41:49 -06:00
Roy Ho 231ab353dd
Merge pull request #28469 from tyrann0us/patch-1
Simplify `reload_checkout` expression
2020-12-04 12:41:18 -08:00
Rodrigo Primo f854daea67 Remove deprecated PayPal Standard parameter
This commit removes the setting "Page style" from WooCommerce -> Settings -> Payments -> PayPal Standard. This setting was used to define the value of the parameter "page_style" passed to the PayPal Standard API, but PayPal deprecated this parameter and ignores it. According to PayPal in https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/Appx-websitestandard-htmlvariables/?mark=page_style#deprecated-variables: "Deprecated variables are ignored when you pass them to PayPal". In the same link, you can see that "page_style" is included in the list of deprecated parameters.
2020-12-04 14:39:03 -03:00
Rodrigo Primo e928304c70
Merge pull request #28487 from woocommerce/try/e2e/composer-nodev
Use composer --no-dev in Travis for E2E
2020-12-04 14:31:39 -03:00
Ron Rennick 0403ee91e8
Merge pull request #28463 from woocommerce/fix/28347
Implement peer dependencies in E2E packages
2020-12-04 12:40:50 -04:00
Ron Rennick fb18ec258e use composer nodev in E2E test in Travis 2020-12-04 12:33:13 -04:00
Christopher Allford 97a5bf1347
Merge pull request #28494 from woocommerce/fix/2021-notices-and-cart-image
Twenty Twenty-One Compatibility: Fix issues with notice display and cart product images
2020-12-03 16:47:14 -08:00
Jonathan Sadowski c7a1a627d4 2021 compat: improve error notice display on checkout page 2020-12-03 18:29:28 -06:00
Jonathan Sadowski 70299e7f12 2021 compat: improve error notice display on cart page 2020-12-03 18:27:40 -06:00
Jonathan Sadowski 4c9ce8cd74 2021 Compat: Fix stretched product image on cart page 2020-12-03 18:23:14 -06:00
jonathansadowski 7e12cba4d1
Merge pull request #28407 from woocommerce/add/2021-compat-my-account-details
Add "My Account - Details" page compatibility for Twenty Twenty-One
2020-12-03 17:52:10 -06:00
Jonathan Sadowski 0582632cbd Update account details form to use CSS vars for border size and color 2020-12-03 17:50:23 -06:00
Christopher Allford 83387e684e
Merge pull request #28491 from woocommerce/update/woocommerce-admin/1.7.3
Update woocomerce-admin to 1.7.3
2020-12-03 15:49:54 -08:00
Christopher Allford 1424bc5a5c
Merge pull request #28443 from woocommerce/add/2021-compat-my-account-add-payment-method
Add "My Account - Payment Methods" page compatibility for Twenty Twenty-One
2020-12-03 15:41:22 -08:00
Christopher Allford 7e4c2a9f91
Merge branch 'master' into add/2021-compat-my-account-add-payment-method 2020-12-03 15:23:48 -08:00
Christopher Allford e692171b81
Merge pull request #28420 from woocommerce/add/2021-compat-downloads-page
Add "My Account - Downloads" page compatibility for Twenty Twenty-One
2020-12-03 15:23:06 -08:00
Christopher Allford ddd0750bed
Merge branch 'master' into add/2021-compat-downloads-page 2020-12-03 15:20:23 -08:00
Christopher Allford e39f6e12d7
Merge pull request #28406 from woocommerce/add/2021-compat-my-account-orders-page
Add "My Account - Orders" page compatibility for Twenty Twenty-One
2020-12-03 15:13:11 -08:00
Christopher Allford bc9143166e
Merge pull request #28492 from woocommerce/add/2021-single-product-page-mobile-compat
2021 Theme Compat: Update the single product page and the sales badge for mobile.
2020-12-03 14:51:21 -08:00
jonathansadowski 707ceb4e3d
Merge branch 'master' into add/2021-compat-my-account-details 2020-12-03 16:31:39 -06:00
jonathansadowski 2376120941
Merge pull request #28433 from woocommerce/add/2021-compat-my-account-addresses-page
Add "My Account - Edit Address" page compatibility for Twenty Twenty-One
2020-12-03 16:24:10 -06:00
jonathansadowski d2a4e056cd
Merge pull request #28340 from woocommerce/add/2021-compat-shop-page
Add shop page compatibility for Twenty Twenty-One
2020-12-03 16:15:32 -06:00
Jonathan Sadowski 5a1994284b Adjust gallery trigger to not overlap with sale badge; keep sale badge always on right 2020-12-03 15:30:08 -06:00
Timmy Crawford 098d654dd4 Update woocomerce-admin to 1.7.3 2020-12-03 13:26:44 -08:00