Commit Graph

4629 Commits

Author SHA1 Message Date
roykho 7dd2be207e
Fix regression of using jQuery ON when bind should be used ref #28822 2021-05-21 08:08:33 -07:00
Vedanshu Jain 90b50f11f3
Merge pull request #29843 from woocommerce/add/wc-pay-ad-banner
Add support for WooCommerce Payments ad banner on extensions screen's "Featured" section
2021-05-13 16:56:55 +05:30
And Finally de331ad893 Addressing feedback. Removed `!important` from `.addons-button-expandable` rule. Renamed `geowhitelist` and `geoblacklist` to `geo_allow_list` and `geo_block_list`. 2021-05-12 09:41:31 +01:00
And Finally e4d3b157ff Changed block name and CSS classnames to the more generic "promotion block". 2021-05-06 22:12:07 +01:00
And Finally f1a69cb4af Added comment to new `output_ad_block` method. Removed differences introduced by PhpStorm autoformat. 2021-05-06 15:16:49 +01:00
And Finally 3fa233872c Added `output_ad_block` method to `WC_Admin_Addons` and CSS rules to render a WooCommerce Payments ad banner at the top of the "Featured" section of the WC Core addons page, `wp-admin/admin.php?page=wc-addons&section=_featured`. This is to fulfil the requirements of WooCommerce.com issue https://github.com/Automattic/woocommerce.com/issues/9860.
We output the block if

- The user has permissions to install plugins.
- Their location is in one of the countries identified in a `geowhitelist`.
- WooCommerce Payments is not already active.
2021-05-06 12:55:30 +01:00
Jonathan Sadowski 4e8629e8c8 Update cart-fragments.js to remove deprecated jQuery bind function 2021-04-28 16:26:32 -05:00
Jonathan Sadowski 9e89ac8b95 Correct bind usage in product import and export (bind wasn't targeting jQuery object; was native JS bind) 2021-04-28 16:26:32 -05:00
roykho 37736799d6 Update deprecated jQuery functions in includes folder 2021-04-28 16:26:32 -05:00
roykho 6a1e3eb85c Revert load function 2021-04-28 16:26:31 -05:00
roykho 1215f1965e Update deprecated jQuery functions for wc-product-import.js 2021-04-28 16:26:31 -05:00
roykho f4745ed022 Update deprecated jQuery functions for wc-product-export.js 2021-04-28 16:26:31 -05:00
roykho 1710a84948 Fixed removeAttribute replacements 2021-04-28 16:26:31 -05:00
roykho a98b27bd54 Update deprecated jQuery functions for meta-boxes-product.js 2021-04-28 16:26:31 -05:00
roykho 6522893277 Update deprecated jQuery functions for meta-boxes-product.js 2021-04-28 16:26:31 -05:00
roykho 38cabd27fd Update deprecated jQuery functions for meta-boxes-product-variation.js 2021-04-28 16:26:31 -05:00
roykho 796d4f51ac Update deprecated jQuery functions for meta-boxes-order.js 2021-04-28 16:26:31 -05:00
roykho e0940ef78d Update deprecated jQuery functions for jquery.tiptip.js 2021-04-28 16:26:31 -05:00
roykho 38e448a427 Update deprecated jQuery functions for jquery.cookie.js 2021-04-28 16:26:31 -05:00
Jonathan Sadowski 581e402f09 Update selectWoo.js to trigger blur instead of using deprecated blur method for jQuery3 compat 2021-04-28 16:26:31 -05:00
Jonathan Sadowski 09da77eb18 Update wc-setup.js to set required prop to false instead of removing attribute for jQuery3 compat 2021-04-28 16:26:31 -05:00
Jonathan Sadowski 1f7f12c4ab Update selectWoo.js to use String.prototype.trim instead of jQuery.trim 2021-04-28 16:26:31 -05:00
Jonathan Sadowski 6f1a1b2492 Update select2.js to use String.prototype.trim instead of jQuery.trim 2021-04-28 16:26:31 -05:00
Jonathan Sadowski 8026131767 Update select2.full.js to use String.prototype.trim instead of jQuery.trim 2021-04-28 16:26:31 -05:00
Jonathan Sadowski a7d6e60334 Update selectWoo.js to use typeof check instead of jQuery.isFunction() for jQuery 3 compatibility 2021-04-28 16:26:31 -05:00
Jonathan Sadowski 56dbdedfb2 Update select2.js to use typeof check instead of jQuery.isFunction() for jQuery 3 compatibility 2021-04-28 16:26:30 -05:00
Jonathan Sadowski 2e0c538e8f Update select2.full.js to use typeof check instead of jQuery.isFunction() for jQuery 3 compatibility 2021-04-28 16:26:30 -05:00
Jonathan Sadowski 8a2702d0cd Update selectWoo.js to use Array.isArray instead of jQuery.isArray for jQuery 3 compat 2021-04-28 16:26:30 -05:00
Jonathan Sadowski 944d5c06c1 Update select2.js to use Array.isArray instead of jQuery.isArray for jQuery 3 compat 2021-04-28 16:26:30 -05:00
Jonathan Sadowski e62ea96a3e Update select2.full.js to use Array.isArray instead of jQuery.isArray for jQuery 3 compat 2021-04-28 16:26:30 -05:00
Jonathan Sadowski fc93c2474d Update select2.full.js to use off() instead of unbind() for jQuery 3 compat 2021-04-28 16:26:30 -05:00
Jonathan Sadowski 89e9e2932d Update select2.full.js to use on() instead of bind() for jQuery 3 compat 2021-04-28 16:26:30 -05:00
Jonathan Sadowski 2e4c7d93c2 Update selectWoo.js to use trigger('focus') instead of focus() for jQuery 3 compat 2021-04-28 16:26:30 -05:00
Jonathan Sadowski ce12a2a895 Update select2.full.js to use trigger('focus') instead of focus() for jQuery 3 compat 2021-04-28 16:26:28 -05:00
Jonathan Sadowski a09e82e4b6 Update select2.full.js to use trigger('focus') instead of focus() for jQuery 3 compat 2021-04-28 16:24:40 -05:00
Jonathan Sadowski c9b1012095 Update stupidtable.js to resolve jQuery data change in jQuery 3 2021-04-28 16:22:00 -05:00
Jonathan Sadowski a95f084d9f Update woocommerce.js to resolve jQuery data change in jQuery 3 2021-04-28 16:22:00 -05:00
Jonathan Sadowski f685cda40d Update wc-orders.js to resolve jQuery data change in jQuery 3 2021-04-28 16:22:00 -05:00
Jonathan Sadowski 8f013a9c9a Update system-status.js to resolve jQuery data change in jQuery 3 2021-04-28 16:22:00 -05:00
Jonathan Sadowski 24b787b2da Update settings.js to resolve jQuery data change in jQuery 3 2021-04-28 16:22:00 -05:00
Jonathan Sadowski 7be2388e06 Update jquery-ui-touch=punch.js to remove deprecated jQuery bind and unbind functions 2021-04-28 16:22:00 -05:00
Jonathan Sadowski a61bd3c99d Update price-slider.js to remove deprecated jQuery bind function 2021-04-28 16:22:00 -05:00
Jonathan Sadowski 294b257710 Update cart-fragments.js to remove deprecated jQuery bind function 2021-04-28 16:22:00 -05:00
Jonathan Sadowski f5b3556e14 Replace .data() call in checkout.js for jQuery 3 Compatibility 2021-04-28 16:22:00 -05:00
Jonathan Sadowski 15df81e2d9 Correct bind usage in product import and export (bind wasn't targeting jQuery object; was native JS bind) 2021-04-28 16:22:00 -05:00
roykho 6c804e31d7 Update deprecated hovers 2021-04-28 16:22:00 -05:00
roykho a75a3d7176 Update .focus and .toggleClass that were missed 2021-04-28 16:22:00 -05:00
roykho 84533ac38f Update deprecated jQuery functions for selectWoo.full.js 2021-04-28 16:22:00 -05:00
roykho b78aa4e00a Fix deprecated jQuery removeClass function 2021-04-28 16:22:00 -05:00
roykho 387e095a01 Update deprecated jQuery functions in includes folder 2021-04-28 16:21:59 -05:00
roykho 09aabeeb6f Revert load function 2021-04-28 16:21:59 -05:00
roykho 242949850d Update deprecated jQuery functions for tokenization-form.js 2021-04-28 16:21:59 -05:00
roykho 5de6a1ee95 Update deprecated jQuery functions for password-strength-meter.js 2021-04-28 16:21:59 -05:00
roykho a5409a8ca1 Update deprecated jQuery functions for country-select.js 2021-04-28 16:21:59 -05:00
roykho b23d218a37 Update deprecated jQuery functions for checkout.js 2021-04-28 16:21:59 -05:00
roykho 1e55db0e4d Update deprecated jQuery functions for address-i18n.js and cart-fragments.js 2021-04-28 16:21:59 -05:00
roykho 67ea396f7d Update deprecated jQuery functions for add-to-cart-variation.js 2021-04-28 16:21:59 -05:00
roykho 8cf743caee Update deprecated jQuery functions for add-payment-method.js 2021-04-28 16:21:59 -05:00
roykho 7f0f2c8320 Update deprecated jQuery functions for woocommerce_admin.js 2021-04-28 16:21:59 -05:00
roykho d2c3ae204f Update deprecated jQuery functions for wc-shipping-zone-methods.js 2021-04-28 16:21:59 -05:00
roykho d213e3d959 Update deprecated jQuery functions for wc-shipping-classes.js 2021-04-28 16:21:59 -05:00
roykho 15492c0942 Update deprecated jQuery functions for wc-setup.js 2021-04-28 16:21:59 -05:00
roykho 4ebce91559 Update deprecated jQuery functions for wc-product-import.js 2021-04-28 16:21:59 -05:00
roykho 78adef7f80 Update deprecated jQuery functions for wc-product-export.js 2021-04-28 16:21:59 -05:00
roykho eee6c96871 Update deprecated jQuery functions for wc-clipboard.js 2021-04-28 16:21:59 -05:00
roykho 76762a08f8 Update deprecated jQuery functions for users.js 2021-04-28 16:21:59 -05:00
roykho b924230b41 Update deprecated jQuery functions for system-status.js 2021-04-28 16:21:59 -05:00
roykho 142aad6a44 Update deprecated jQuery functions for settings.js 2021-04-28 16:21:58 -05:00
roykho d84eb2d6bb Update deprecated jQuery functions for settings-views-html-settings-tax.js 2021-04-28 16:21:58 -05:00
roykho 81d6e50bbd Update deprecated jQuery functions for quick-edit.js 2021-04-28 16:21:58 -05:00
roykho 58cfd4c0c2 Fixed removeAttribute replacements 2021-04-28 16:21:58 -05:00
roykho 4d0df8d341 Update deprecated jQuery functions for meta-boxes-product.js 2021-04-28 16:21:58 -05:00
roykho f59c7772e5 Update deprecated jQuery functions for meta-boxes-product.js 2021-04-28 16:21:58 -05:00
roykho afb9656561 Update deprecated jQuery functions for meta-boxes-product-variation.js 2021-04-28 16:21:58 -05:00
roykho 18797493b3 Update deprecated jQuery functions for meta-boxes-order.js 2021-04-28 16:21:58 -05:00
roykho 6e50fc0cf1 Update deprecated jQuery functions for meta-boxes-coupon.js 2021-04-28 16:21:58 -05:00
roykho 13a9dbb422 Update deprecated jQuery functions for backbone-modal.js 2021-04-28 16:21:58 -05:00
roykho 37f7ccc1f2 Update deprecated jQuery functions for api-keys.js 2021-04-28 16:21:58 -05:00
roykho 08aa9e32eb Update deprecated jQuery functions for jquery.blockui.js 2021-04-28 16:21:58 -05:00
roykho 3d1391f6bd Update deprecated jQuery functions for jquery.zoom.js 2021-04-28 16:21:58 -05:00
roykho a5543fd79f Update deprecated jQuery functions for jquery.tiptip.js 2021-04-28 16:21:58 -05:00
roykho ebdaaa3f08 Update deprecated jQuery functions for jquery.cookie.js 2021-04-28 16:21:58 -05:00
roykho 6b7b8d7b8e Update deprecated jQuery functions for jquery.flexslider.js 2021-04-28 16:21:58 -05:00
roykho ac445e058c Update deprecated jQuery functions for jquery.flot 2021-04-28 16:21:58 -05:00
roykho 176cd16278 Update deprecated jQuery functions for jquery.flexslider.js 2021-04-28 16:21:58 -05:00
roykho dddd0d6588 Update deprecated jQuery functions for jquery.serializejson.js 2021-04-28 16:21:57 -05:00
roykho e4bfbe7597 Update deprecated jQuery functions for jquery.float.resize.js 2021-04-28 16:21:57 -05:00
roykho c4c02a20bb Update deprecated jQuery functions for jquery.flot.js 2021-04-28 16:21:57 -05:00
roykho ef572483d8 Update deprecated jQuery functions for jquery.payment.js closes #28284 2021-04-28 16:21:57 -05:00
barryhughes 27db35de67 Update SelectWoo to 1.0.9 and take advantage of data-label support. 2021-04-15 16:55:29 -07:00
Barry Hughes 90d9dce1f4
Merge pull request #29510 from woocommerce/fix/29359
Prevent saved changes message when leaving page closes #29359
2021-03-30 07:09:00 -07:00
roykho 1234a5a46f
Add comment for clarity 2021-03-30 05:46:36 -07:00
roykho 4cf6625f0c
Prevent saved changes message when leaving page closes #29359 2021-03-26 15:09:43 -07:00
Roy Ho f7e38bd1f1
Merge pull request #29497 from woocommerce/fix/29323
Make select2 dropdown text visible in dark mode closes #29323
2021-03-26 14:31:10 -07:00
roykho 80ef3f039a
Make select2 dropdown text visible in dark mode closes #29323 2021-03-25 07:48:40 -07:00
roykho 43323d3cc6
Fix alignment issues with lost password form closes #29325 2021-03-25 07:30:48 -07:00
Néstor Soriano 47aa9d7e97
Merge pull request #29480 from woocommerce/fix/28914
Remove duplicate notices from cart during ajax updates closes #28914
2021-03-25 09:20:14 +01:00
roykho 0b9f208ea7
Adjust alignment issues for Twenty Twenty One theme closes #28700 2021-03-24 13:39:58 -07:00
roykho ad77c37b41
Typo on the variable 2021-03-24 10:07:35 -07:00
roykho 9118349520
Remove duplicate notices from cart during ajax updates closes #28914 2021-03-24 09:59:20 -07:00
jonathansadowski 2e60d47a01
Merge pull request #29181 from woocommerce/fix/27233
Use AJAX for Page Configuration
2021-03-23 11:46:00 -05:00
roykho e5380ac966
Add new function to handle single page search closes #27233 2021-03-22 13:20:16 -07:00
roykho 657bef2eb0
Fix sale tag misaligned on product archive when columns are less than 3 closes #29343 2021-03-18 09:01:19 -07:00
Néstor Soriano 7ba48234fa
Merge pull request #29397 from woocommerce/fix/issue-29163
Fix offsets not calculated correctly sometimes  on select2 dropdowns …
2021-03-17 09:38:04 +01:00
Néstor Soriano 17224d0ab1
Merge pull request #29345 from woocommerce/hw/low-stock-threshold-for-variations
Low stock threshold for variations
2021-03-17 08:59:32 +01:00
roykho a1cda953dc
Fix offsets not calculated correctly sometimes on select2 dropdowns closes #29163 2021-03-16 07:39:09 -07:00
Roy Ho 57569c5168
Merge pull request #29232 from Dartui/trunk
Pass checkout submit result to triggered handler
2021-03-15 09:46:31 -07:00
Roy Ho b04e08fb52
Merge pull request #29282 from hsingyuc/fix/29261
Trigger country field change on address change click
2021-03-12 12:55:34 -08:00
Fernando Marichal bf17fb04f0 Added Mercado Pago logo
This commit adds a new asset (Mercado Pago logo) that will be used in the payments setup task.
2021-03-12 11:21:46 -03:00
Peter Fabian f7755f123e Enable bulk updates of variations with low stock amount. 2021-03-10 18:15:31 +01:00
hsing 24c4c7658a Trigger country field change on address change click 2021-03-04 16:01:07 -05:00
Moon 00a272fa85
Merge pull request #29174 from woocommerce/add/28568-dashboard-widget-finish-setup
Add/28568 dashboard widget - setup
2021-03-02 16:46:51 -08:00
Claudio Sanches bcdfe3cb68
Merge pull request #29182 from woocommerce/fix/26973-get-customer-location
Avoid/minimize wc-ajax requests when `geolocation_ajax` is enabled | #26973
2021-02-26 20:33:29 -03:00
Krzysztof Grabania 626dcb1fb1 Pass checkout submit result to triggered handler 2021-02-26 11:55:49 +01:00
Barry Hughes 94ed76a2f2
Update assets/js/frontend/geolocation.js (fix coding standards)
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2021-02-25 13:46:55 -08:00
Barry Hughes 5380d119ce
Update assets/js/frontend/geolocation.js (fix coding standards)
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2021-02-25 13:46:46 -08:00
Moon 5c99233905 Minor fixes
* Removed extra double quotation from the image tag

* Fixed typo in the init() method

* Moved init() method body into the constructor -- a separate method is not necessary
2021-02-22 20:33:02 -08:00
Moon 781c5e24d7 Status dashboard widget should be rendered only if onboarding tasks have been completed or hidden 2021-02-22 15:29:47 -08:00
Christopher Allford 5e771d8e4f Started Converting Woo Page Dropdowns
Since the page selection dropdowns in the Advanced settings area are
populated on load we can end up taking a very long time to load on
shops that have lots of pages. This commit adds page search support
to wooSelect and starts converting the pages to use it.
2021-02-19 15:28:07 -08:00
barryhughes 761f155fc3 Avoid/minimize wc-ajax requests when `geolocation_ajax` is enabled | #26973 2021-02-19 14:50:59 -08:00
Claudio Sanches b6fe772d54
Merge pull request #29109 from woocommerce/update/add-tracking-to-status-widget
Add tracking to WooCommerce Status widget
2021-02-18 20:03:50 -03:00
Claudio Sanches 881159dd31 Indent with tabs 2021-02-18 20:02:56 -03:00
Claudio Sanches ddc71d71a6
Merge pull request #27242 from jgreys/fix/27021
Checkout: phone number validation fix #27021
2021-02-18 19:31:33 -03:00
Moon ba2f97af62
Update assets/js/admin/wc-status-widget.js
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2021-02-18 13:17:27 -08:00
Moon ab8d29ea0c
Update assets/js/admin/wc-status-widget.js
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2021-02-18 13:17:22 -08:00
Roy Ho 2fab448010
Update assets/css/twenty-twenty-one.scss
Co-authored-by: Christopher Allford <christopher.allford@automattic.com>
2021-02-17 13:58:16 -08:00
Moon 6284cbee3a Add a new dashboard widget to promote store setup 2021-02-17 12:10:13 -08:00
roykho ab97be1e98
Fix placeholder image height in cart closes #29137 2021-02-15 19:50:30 -08:00
Moon 3707764736 Add tracking to WooCommerce Status widget -- net-sales, order-processing, orders-on-hold, low-stock, and out-of-stock 2021-02-15 16:41:14 -08:00
roykho 66155b978b
Wrap variables in recent SASS format closes #29119 2021-02-12 15:33:45 -08:00
Matt Sherman 6044f3e958 Update Products and Reports icons to use Dashicons instead of custom font 2021-02-12 10:37:23 -05:00
Matt Sherman cca38a577e Use SVG instead of CSS/font for WooCommerce icon 2021-02-10 15:12:47 -05:00
Dan Q 7d0e67c12e
Change WooCommerce logo color to new purple.
Re #29053.
2021-02-08 11:57:02 +00:00
vedanshujain 2bb419e92f Fix eslint errors. 2021-02-05 12:35:40 +05:30
roykho 5c76d8df59
Revert jQuery function change as these are not jQuery objects 2021-02-04 12:36:15 -08:00
Roy Ho ce31630498
Merge pull request #28753 from helgatheviking/issues/28286-jquery-3
Issues/28286 Updates for deprecated jQuery 3 functions
2021-02-04 06:19:57 -08:00
Kathy Daring 56281fc804 Reverse adb2c6b86... Restore jQuery.select() 2021-02-02 13:41:07 -07:00
Kathy Daring afd164e271 revert 0ccff4dda5. restore jQuery .focus() 2021-02-02 13:38:48 -07:00
Kathy Daring ffdb2d9059 Merge branch 'master' into issues/28286-jquery-3
# Conflicts:
#	assets/js/admin/meta-boxes-product.js
2021-02-02 09:43:08 -07:00
Kathy Daring 9b7b72f00a replace jQuery.bind except in 3rd party assets 2021-02-02 09:38:04 -07:00
Claudio Sanches 12c6a6b082
Fixed coding standards 2021-01-28 17:07:26 -03:00
Josee Wouters 294df7f96a Left align content in tfoot in checkout-review-order-table 2021-01-27 10:38:39 +01:00
Kathy Daring 34bd50bce3 replace removeAttr with prop() 2021-01-21 10:22:30 -07:00
jonathansadowski 1f430fc980
Merge pull request #28827 from jffng/add/twentytwentyone-style-tweaks
Adjust spacing and font sizes for Twenty Twenty-One
2021-01-20 13:52:51 -06:00
Jeff Ong 82d759c7b6 Adjust spacing and font sizes. 2021-01-15 12:30:44 -05:00
Claudio Sanches 55cfa098d5
Merge pull request #28709 from kevinruscoe/fix/28707
Export sass vars to css var
2021-01-15 11:27:14 -03:00
Claudio Sanches a9a7391fdd
Apply suggestions from code review 2021-01-15 11:25:36 -03:00
Roy Ho b7e45c3073
Merge pull request #28607 from masteradhoc/masteradhoc-patch-speak-none
patch for css3 validation issue for speak property
2021-01-12 12:38:45 -08:00
roykho e0a722a642
Adjust dismiss link of store notice banner closes #28727 2021-01-11 12:24:49 -08:00
Roy Ho e0be4b0f5c
Merge pull request #28681 from tanvirulhaque/master
Fix: Attributes on Edit Product page - "Select all" not working after "Select none" used
2021-01-08 10:09:27 -08:00