Commit Graph

4114 Commits

Author SHA1 Message Date
Peter Fabian 301b976cfa Make Add to cart button same size as quantity input. 2019-11-22 16:12:15 +01:00
Peter Fabian 177f720f1b Let the price have some more space from the bottom as well. 2019-11-22 15:54:43 +01:00
Peter Fabian 572ac52cb3 Make the product rating a bit less prominent, let the price have some more space. 2019-11-22 15:51:42 +01:00
Peter Fabian 9c74bf79ea Rather than setting the background in CSS, use the color picked in the
customizer.

This also fixes the background in the block editor and tinymce.
2019-11-22 15:37:54 +01:00
Peter Fabian ae2ebdb933 Main image size needs to correspond to settings in the PHP script. 2019-11-22 14:56:44 +01:00
Peter Fabian fa48cd2aa7 Make single product page layout wider and enlarge breadcrumb offset. 2019-11-22 12:51:39 +01:00
Peter Fabian 0798098e05 Override default beige background to make the design more versatile and clean. 2019-11-22 12:36:23 +01:00
Justin Shreve 1fabf2f145 Handle PR feedback 2019-11-21 12:23:05 -05:00
Justin Shreve 18925f2218 Adds an a/b test for the new onboarding experience 2019-11-21 12:00:04 -05:00
Christopher Allford c2bc312e97 Added Photoswipe and jQuery-UI CSS minification 2019-11-19 10:40:28 -08:00
Peter Fabian b1f0098cb5 Fixed stylelint issues (except for no-descending-specificity).
There is also one invalid unit for line-height, duplicate class declaration (but it's related to different styling areas, so left it there).
2019-11-19 19:32:45 +01:00
Peter Fabian 08d0b17678 Base the styling on Twenty Nineteen. 2019-11-19 19:13:10 +01:00
Peter Fabian bc04b8f45b Added basic declaration for WC support to Twentytwenty. 2019-11-19 17:58:16 +01:00
Vedanshu Jain 05a89e849e
Merge pull request #24227 from woocommerce/update/replace-checkout-fragment-only-on-change
Cache checkout fragments and update DOM on change only
2019-11-15 18:49:58 +05:30
BrandynL 3ed614389f change event to click for better mobile device support 2019-10-28 09:56:20 -04:00
BrandynL 925bad1faf convert array instance to shorthand syntax 2019-10-28 09:35:39 -04:00
BrandynL 6ed7278678 add password hover visibility on password inputs with javascript 2019-10-27 16:56:42 -04:00
Tarek 6ed3927c35
Update admin.scss 2019-10-16 00:54:12 +02:00
Vedanshu Jain aabf38d831
Merge pull request #24832 from woocommerce/fix/24731
Fix CSS for WP 5.3
2019-10-15 17:47:52 +05:30
Peter Fabian 53295b9f08 Make the action buttons on edit order screen vertically aligned to the input element to the left. 2019-10-15 13:04:54 +02:00
Peter Fabian e314f1f233 Aligned the address fields with other elements on the first page of OBW. 2019-10-15 12:14:38 +02:00
Peter Fabian d0af99a278 Make the checkbox square again! 2019-10-15 12:12:35 +02:00
Peter Fabian af8fd207c8 Fixed select2 size on order list screen (filter at the top). 2019-10-15 11:55:41 +02:00
Peter Fabian 06921ba80c Moved the rules to the respective structure within the previous definitions. 2019-10-15 11:28:02 +02:00
Peter Fabian b7235431b3 Move the shipping form style to the file where it's actually loaded. 2019-10-15 11:05:51 +02:00
Peter Fabian 53fb13d704 Make the buttons in meta box on edit variation screen aligned with the inputs. 2019-10-15 10:57:59 +02:00
Peter Fabian a6de7b9e9f Make the selects in variation edit screen fill the entire row, thus also align with other elements on the page. 2019-10-15 10:55:02 +02:00
Peter Fabian 95635b2800 Make the edit order address email field align with the rest (select2 dimensions changed). 2019-10-15 10:53:36 +02:00
Peter Fabian 83ad2c4993 Make the shipping fields vertically aligned with the billing fields in Twenty Nineteen. 2019-10-15 10:51:35 +02:00
Peter Fabian 93277da7b1 Align select sizes in other contexts. 2019-10-15 10:49:37 +02:00
Peter Fabian 98b03d7fde Keep the edit order select fields smaller to fit with the rest of the form. 2019-10-15 10:47:24 +02:00
Peter Fabian e68499616b Increase the height of select and select2 elements in WC settings to fit with larger input fields. 2019-10-15 10:42:19 +02:00
Peter Fabian c2d36c823f Removed the line height to prevent text descenders being cut off in selects/dropdowns (#24731). 2019-10-15 10:39:36 +02:00
Bob Mulder c4ba9c094b
Make variables default to allow overriding 2019-10-14 11:40:08 +02:00
Rok Sprogar 8f6cb9d058 fixed the jQuery data() caching issue 2019-10-12 19:04:46 +02:00
Mehidi Hassan 3f8e3fdb2d Add space before parentheses of if condition for JS consistency 2019-10-10 23:37:56 +06:00
Claudio Sanches 9851b1f0f3 DRY 2019-10-03 21:19:52 -03:00
Adam Jones 0f7398d607 Fixing an issue with an on-body click triggering on pages that do not contain the referenced span.description element. Wrapped it in an if statement to make sure element exists beforehand. 2019-10-02 15:32:36 +01:00
Vedanshu Jain 4fc18d4940
Merge pull request #24739 from woocommerce/fix/24610
Make $subtext more darker to improve accessibility
2019-10-02 15:49:21 +05:30
Rodrigo Primo e2afc162c4
Merge pull request #24296 from woocommerce/fix/23900
Restored Photoswipe custom styles
2019-10-01 16:57:44 -03:00
Claudio Sanches 064a1657a7 Make $subtext more darker to improve accessibility 2019-10-01 15:30:05 -03:00
Gerhard 6d09d0efcf Fix OWB sell in person vertical alignment 2019-09-30 19:31:50 +05:30
Gerhard 97d3874e14 Fix OBW country vertical alignment 2019-09-30 19:31:50 +05:30
Gerhard Potgieter ee1b438c3c
Merge pull request #24517 from woocommerce/fix/24511
Control categories export field based on export type
2019-09-30 15:39:21 +02:00
Gerhard Potgieter dec4a381fe
Merge pull request #24720 from ChromeOrange/master
Allow select fields in credit card form to maintain value when the checkout form refreshes
2019-09-30 14:36:16 +02:00
Gerhard Potgieter 27be925552
Merge pull request #24406 from kolyasapphire/add-applied_coupon-trigger-to-checkout
Add 'applied_coupon' trigger to checkout.js
2019-09-30 13:59:37 +02:00
Andrew Benbow d339452bce
Update checkout.js 2019-09-30 10:24:00 +01:00
Andrew Benbow f8b268d3a0
Update checkout.js 2019-09-30 10:22:08 +01:00
Vedanshu Jain 436ee5de3a
Merge pull request #24680 from woocommerce/update/tracking-opt-in
Update usage tracking UI, default to opted-out.
2019-09-30 09:14:56 +05:30
Gerhard Potgieter e8d617156d
Merge pull request #24665 from miguelfspinto/patch-4
Enable append hashes on custom events (like ajax requests)
2019-09-27 13:35:48 +02:00
Vedanshu Jain aa665446e5
Merge pull request #24476 from yash-webkul/patch-15
Update wc-setup.scss
2019-09-27 00:32:16 +05:30
Vedanshu Jain 80aafe0b65
Merge pull request #24327 from yratof/yratof-fix-tabledisplay
Fix - Issue on shipping rates tbody due to grammarly fix
2019-09-26 21:56:55 +05:30
Rodrigo Primo 7fbe47772b
Merge pull request #24339 from woocommerce/fix/24128
Remove `blur` event to keep focus on select box.
2019-09-25 20:57:13 -03:00
Justin Shreve 0c3fc315c5 Update tracking opt-in UI. 2019-09-24 14:26:21 -04:00
Miguel Pinto fff09c9811
Enable append hashes on custom events (like ajax requests) 2019-09-23 16:04:31 +01:00
johntendik 0a9563dacd fixing indentation 2019-09-10 20:43:13 -04:00
johntendik 366681038f added unload event to prevent reload during checkout 2019-09-10 20:23:10 -04:00
Rodrigo Primo 9277a0e260
Merge pull request #24277 from woocommerce/fix/24231
Fix position of ID section in mobile rows actions
2019-09-05 10:03:48 -03:00
Claudio Sanches 08e9d0bdc9 Control categories export field based on export type 2019-08-27 16:11:05 -03:00
kolyasapphire faf05c00c2 Renamed the trigger
Changed to applied_coupon_in_checkout to avoid unexpected behaviour
2019-08-23 16:15:57 +03:00
Yash Kapoor 509a14590f
Update wc-setup.scss
Fixed CSS for .location-input
2019-08-23 12:19:45 +05:30
kolyasapphire fe3395cd6b Add 'applied_coupon' trigger to checkout.js
To check it’s working correctly:

add_action( 'woocommerce_after_checkout_form', 'alert_on_coupon');
add_action( 'woocommerce_after_cart', 'alert_on_coupon');

function alert_on_coupon() { ?>
<script type="text/javascript">
	jQuery(document).ready(function($) {
    $( document.body ).on( 'applied_coupon', function(event,code){
    	alert(code);
    });
});

$( document.body ).trigger( 'applied_coupon', [ data.coupon_code ] );
2019-08-14 19:09:18 +03:00
vedanshujain 970271d0b7 Remove `blur` event to keep focus on select box.
This removes the `blur` call so that focus on select box is maintained for accessibility. This call was added way back in 2012 but from what it looks like, it can be removed safely.
2019-08-06 22:08:00 +05:30
Andrew Lazarus 2596e6ecda
Removed whitespace 2019-08-05 11:29:39 +02:00
Andrew Lazarus 3805794baf Fix - Issue on shipping rates tbody, toby set to inherit, should be table-row-group 2019-08-05 11:23:04 +02:00
Paul Dechov e15e51868c Remove accidental jQuery references in favor of $ 2019-08-02 18:10:47 -04:00
Claudio Sanches 2b0fc6f50a Added sanitization for number of decimal points in JS 2019-08-02 14:02:33 -03:00
Claudio Sanches 375b989322 Added validation for multiple decimal points 2019-08-02 13:58:02 -03:00
Gerhard 02f9c7c8ff Use strict checking 2019-08-02 14:55:17 +02:00
Gerhard 34e883ce81 Apply patch by @dtwist 2019-08-02 14:19:37 +02:00
Hardik Thakkar 27689ba0ca Fixed #23870 2019-08-02 14:10:39 +02:00
Claudio Sanches 243b435139 Restored Photoswipe custom styles 2019-08-01 17:49:03 -03:00
Rodrigo Primo 972f7a49e2 Fix position of ID section in mobile rows actions
This commit fixes the position of the ID section in mobile rows actions
when displaying the list of products in the admin.
2019-07-31 16:21:19 -03:00
Paul Dechov 429161e1c6 Add logic to initialize checkbox based on whether shipping address is different 2019-07-30 18:42:51 -04:00
Paul Dechov 264556be91 Call ship-to-different-address change handler manually in lieu of event trigger
Avoids unnecessary update_checkout call on initialization.
2019-07-29 22:39:19 -04:00
Paul Dechov 4a94037c52 Replace update_checkout request on checkout page load with updated_checkout event 2019-07-29 22:32:56 -04:00
Paul Dechov c3076209c7 Cache checkout fragments and only update DOM on change 2019-07-24 18:00:29 -04:00
Peter Fabian 2f19640ce1 Fixed jshint problems. 2019-07-15 12:59:06 +02:00
Gerhard Potgieter 7c0d0251ee
Merge pull request #23883 from woocommerce/add/new-edit-order-tracks
Track more events on the edit order screen for future design validation.
2019-07-15 09:36:01 +02:00
Gerhard Potgieter aa706fd68f
Merge pull request #24075 from woocommerce/add/in-app-purchase-params
Add in-app-purchase params to extensions screen & suggestions
2019-07-15 09:18:51 +02:00
Claudio Sanches 60c18ce544
Merge pull request #23067 from woocommerce/pr/23043
Allow matching of "any" attributes in find_matching_product_variation…
2019-07-12 12:40:53 -03:00
Rodrigo Primo 6e3f22fd6c Tabs should be used for indentation instead of spaces 2019-07-12 10:57:18 -03:00
Rodrigo Primo 0809c96168 Merge branch 'master' into fix/23283 2019-07-12 10:55:43 -03:00
haszari 3e7da11c30 fix logic for new tab check on edit product page 2019-07-12 13:42:36 +12:00
haszari 5bac98fd80 open marketplace suggestions links in same tab to simplify experience:
- except when inconvenient - when editing a product
2019-07-12 13:42:36 +12:00
haszari 46f2b98bca add in-app-purchase url params to marketplace suggestions buttons 2019-07-12 13:42:35 +12:00
Claudio Sanches c63cd802aa
Merge pull request #23957 from woocommerce/feature/feature-plugin-packages
Include external feature plugins as packages
2019-07-10 15:47:48 -03:00
Claudio Sanches 5b8694e92a
Merge pull request #23915 from woocommerce/fix/23544
[Setup] Make PostCode optional as few countries don't use them
2019-07-10 15:45:32 -03:00
Gerhard Potgieter 9ca6dad11e
Merge pull request #23433 from justlevine/master
Preserve State field input classes when selecting a Country.
2019-07-10 15:31:39 +02:00
Mike Jolley c928188831 Update from master 2019-07-10 12:57:02 +01:00
Gerhard 98c24b1090 Merge branch 'master' into pr/23043 2019-07-10 10:34:52 +02:00
Claudio Sanches d18c3f8ed1
Merge pull request #24069 from woocommerce/add/coupon-code-generator
Add generate coupon code button
2019-07-09 16:50:24 -03:00
Claudio Sanches 18b876a95c Always load generate code button
Some improvements in the button label and names
2019-07-09 16:46:17 -03:00
Rodrigo Primo 53df16b2b5
Merge pull request #23781 from woocommerce/try/obw-changes
OBW: Switch shipping labels and shipping zones placement
2019-07-09 16:06:38 -03:00
Claudio Sanches ce65195b57 Fixed admin.scss 2019-07-09 12:41:42 -03:00
Claudio Sanches 32996d2fdd Merge branch 'master' into pr/23043 2019-07-09 12:39:40 -03:00
vedanshujain e2577b3a06 [Setup] Make PostCode optional as few countries don't use them
Some countries like Hong Kong, UAE etc don't use post codes, in which case this commit will make the field optional.
If its not known whether a country uses postcode or not, it will be required.
2019-07-09 14:37:03 +05:30
Gerhard 7038c73ab4 Merge branch 'master' into update/exclude-compiled-assets-from-git 2019-07-09 10:57:40 +02:00
Claudio Sanches 16c5c39725 Fixed missing assets/css/admin.css 2019-07-08 17:59:50 -03:00
Claudio Sanches b54997d9f5 Merge branch 'fix/23221' of https://github.com/senff/woocommerce into senff-fix/23221 2019-07-08 17:55:07 -03:00
Claudio Sanches adc543f8f1
Merge pull request #24058 from woocommerce/add/wc-admin-obw-recommended
OBW: Add wc-admin to recommended page
2019-07-08 16:56:49 -03:00
Claudio Sanches da99bc8ca0 Merge branch 'master' into feature/feature-plugin-packages 2019-07-08 14:33:21 -03:00
Rodrigo Primo a26f38f3a1
Merge pull request #23133 from woocommerce/update/23111
If variations are missing prices, show notice
2019-07-04 10:08:41 -03:00
Gerhard Potgieter 91c939b963
Merge pull request #23997 from woocommerce/fix/obw-plugin-install-highlight-size
OBW: Adjust size of plugin install highlight to avoid overlap
2019-07-04 09:18:28 +02:00
Gerhard 5d604329fc Reword postfix to suffix 2019-07-04 09:07:02 +02:00
Gerhard 538edcaac0 Make button text translatable. 2019-07-03 22:57:08 +02:00
Gerhard 24fc4948c0 Add generate coupon code button for quick coupon code generation. 2019-07-03 22:48:30 +02:00
Mark Senff 0fee3daa67
Delete admin.css 2019-07-03 07:29:37 -04:00
Paul Sealock b65ce3dd26 OBW: Add wc-admin to recommended page 2019-07-03 13:02:07 +12:00
Rodrigo Primo 68f5ccabc1
Merge pull request #23811 from woocommerce/feature/23807
Allow enforce password strength meter on checkout
2019-06-27 11:39:00 -03:00
Peter Fabian 9671810159 Added event to track `Add item(s)` button click. 2019-06-27 13:22:19 +02:00
Peter Fabian 7b03fe62f3 Added event to track `Add fee` button click and Cancel in the prompt. 2019-06-27 13:21:37 +02:00
Peter Fabian 90c0954d21 Renamed add_fee event to added_fee.
Makes it consistent with e.g. coupon addition tracks.
2019-06-27 13:20:03 +02:00
Peter Fabian 7ef4cb637a Fixed spacing issue. 2019-06-27 13:19:24 +02:00
Gerhard Potgieter 698625ce1d WP & PHP Upgrade Notices (#23975)
This commit introduces a banner that notifies and prompts users to upgrade their WordPress and/or PHP if they are outdated and not part of the minimum required versions going into WooCommerce 3.7.

* Add backward compatible function wp_check_php_version for sites running WP version smaller than 5.1

* Refactor some messaging, move widget to top of WC dashboard widgets, add buttons linking out to WP pages with instructions.

* Add missing variables for adding nag class

* Add styling to dashboard widget

* Rework css to use exclamation instead

* Clean up widget, make sure no widget is registered when dismissed. Add banner that links to widget and make it dismissable.

* Update constant to reflect minimum requirements.

* Don't show banner. Fix undefined variable.

* Remove dashboard widget

* Update banner link to docs site

* Add link to docs page where instructions live for updating

* Change button text

* Add UTM params to docs link

* Moved the msg logic from template to php file.

* Bail out early when PHP and WP versions are ok.

* Added missing translation functiog

* Extracted notice function from reset_admin_notices.

To follow suit with other similar functions in the file.

* Synchronize fetching of WP version.

* Removed unused functions.

* Corrected indent.

* Reduce number of variables and fixed coding standards

* Updated wording of the notice.
2019-06-26 14:09:20 -03:00
Mike Jolley a0a58cfb15 update from master 2019-06-26 15:26:47 +01:00
Paul Dechov 421392019e OBW: Adjust size of plugin install highlight to avoid overlap 2019-06-24 21:50:15 -04:00
Claudio Sanches 29d630b099
Merge pull request #23789 from ajayghaghretiya/fix#23784
Fix #23784 Shipping zonde UI issue
2019-06-24 12:40:08 -03:00
Mike Jolley 8b41b03f2e Remove blocks files 2019-06-21 12:23:41 +01:00
Peter Fabian 930fd983cb Merge branch 'add/new-edit-order-tracks' of https://github.com/woocommerce/woocommerce into add/new-edit-order-tracks 2019-06-07 14:59:11 +02:00
Peter Fabian 34c6933586 Added more params to the tracks. 2019-06-07 14:58:55 +02:00
Jeff Stieler 1bd9a7d9a7 Use a consistent tracks event naming scheme. 2019-06-07 12:31:42 +02:00
Peter Fabian 083c616f18 Added tracks to record when order note is added in edit order screen. 2019-06-07 12:04:38 +02:00
Peter Fabian b880159dbe Added tracks to record when products, fees, taxes or shipping are added to order in edit order screen. 2019-06-07 11:39:03 +02:00
Jeff Stieler 02785bc14c Track adding coupons to orders on edit screen. 2019-06-07 11:31:53 +02:00
Jeff Stieler 02a7654532 Fix eslint errors/warnings. 2019-06-07 11:25:39 +02:00
Jeff Stieler 05ad6b260f Track interaction with the order refund UI. 2019-06-06 18:18:46 +02:00
Peter Fabian b22c788081 Added tracks for Recalculate button and edit/remove/save line items. 2019-06-06 18:14:21 +02:00
Jeff Stieler a22c1dabf3 Track when billing or shipping address edit buttons are clicked. 2019-06-06 16:12:09 +02:00
Jeff Stieler 9776cbc2d8 Track order tax column deletion. 2019-06-06 13:18:29 +02:00
Rodrigo Primo 3d12ec4ae2 Remove extra comma to prevent issues with older versions of IE
This commit simply removes an extra comma that was added in
52fced8d7a to prevent issues with older
versions of IE. I found this when running grunt to prepare the 3.6.4
release:

```
Running "jshint:all" (jshint) task

   assets/js/admin/meta-boxes-order.js
    413 |                    user_email : user_email,
                                                    ^ Extra comma. (it breaks older versions of IE)
```

We might want to add jshint to the pre-commit hook and to Travis.
2019-05-27 14:38:54 -03:00
Gerhard Potgieter b2ed079520 Manual orders coupon usage limits by email (#23775)
* Add functionality to wp-admin order to check for coupon usage based on email addresses, similar to how WC_Cart handles this seperately, included unit tests.

* Only do the coupon by email usage check if order is from a guest. Fix issue with unit test.
2019-05-27 11:45:29 -03:00
Claudio Sanches 61346720c7 Allow enforce password strength meter on checkout 2019-05-24 15:27:26 -03:00
Valerie b379739ea6 OBW Shipping: Switch label and zone sections 2019-05-23 22:17:13 -04:00
Valerie db08d64e65 OBW: Fix SCSS linting errors
- remove em unit for line-height
- use numeric font-weight value
- ignore no-descending-specificity for the entire file
- ignore rule for dashicons: font-family-no-missing-generic-family-keyword
- remove unnecessary quotes around dashicons font name
- add quotes around checkbox attribute selector
- remove duplicate visibility declaration
- remove duplicate selector: .wc-setup .wc-setup-actions .button
- remove unknown pseudo selector ::last-child
- move all .wc-setup styles to one place
2019-05-23 22:17:08 -04:00
Claudio Sanches 17da960abe
Merge pull request #23137 from woocommerce/fix/23051
Change coupon amount field type based on coupon type
2019-05-22 21:19:03 -03:00
Claudio Sanches 77879de2cb
Merge pull request #23364 from xristos3490/master
Use high-resolution version of wp spinner
2019-05-22 21:01:50 -03:00
ajayghaghretiya f42b5a5f37 Fix #23784 Shipping zonde UI issue 2019-05-22 11:27:46 +05:30
Claudio Sanches de2a45510b Merge branch 'master' into fix/23003 2019-05-21 17:59:52 -03:00
Rodrigo Primo ec4f131f85 Delete images that are not used anymore
This commit deletes the files assets/images/klarna-white.png and
assets/images/square-white.png. In #23690 we stopped using those two
files so there is no reason to keep them in the repository. Since #23690
was included in a patch release, we opted to keep the images for a
little longer and remove them in a minor release.
2019-05-17 10:19:02 -03:00
Gerhard Potgieter afd7e72c03
Merge pull request #23690 from woocommerce/update/obw-stripe
Update OWB Payment Gateway structure
2019-05-16 18:26:29 +02:00
Gerhard Potgieter 229675c96a
Merge pull request #23603 from Chirag3119/23602
#23602 - I have fixed issue.
2019-05-16 14:05:45 +02:00
Gerhard e131b01133 Modify payment gateway placement, defaults and new logos. 2019-05-13 15:54:44 +02:00
Gerhard 5ceca30f39 CSS changes to remove black backround from old klarna and square logos. 2019-05-13 15:52:48 +02:00
Gerhard b79c02658d Fix eslint for meta-boxes-product-variation.js 2019-05-13 13:36:21 +02:00
Gerhard b77c7fbbd8 Trigger input_changed function when download files removed for variations. 2019-05-13 13:32:30 +02:00
Gerhard Potgieter 984357fb41
Merge pull request #23597 from woocommerce/fix/23509
Added confirmation before saving empty list of countries to sell to.
2019-05-10 10:56:13 +02:00
Gerhard Potgieter 3cfe32d5fe
Merge pull request #23526 from parmarhardip/23505
Solved #23505 WC Setup page UI issue
2019-05-10 10:45:55 +02:00
Gerhard Potgieter 07ea25377a
Merge pull request #23517 from woocommerce/fix/23506
Fix dismiss button in two WC admin notices
2019-05-10 10:37:01 +02:00
Gerhard Potgieter d512752ae9
Merge pull request #23454 from harddy/master
Fixes #23440 : # symbol in Product Category name breaks Reports CSV e…
2019-05-10 10:26:26 +02:00