Commit Graph

3830 Commits

Author SHA1 Message Date
haszari ef31fcf012 align product metabox `Get more options` with other tab image labels 2019-02-28 10:05:02 +13:00
Mike Jolley 5a48c41209 Loop panels to disable options rather than look at values 2019-02-27 14:38:11 +00:00
haszari 8ce8cdde6e update suggestions JS code to use `active` (WCCOM endpoint has updated schema) 2019-02-27 16:16:49 +13:00
haszari 243f885a13 randomly select suggestions to display, to improve visibility of each one 2019-02-27 12:29:45 +13:00
haszari 467f8cd1dc marketplace suggestions styling polish:
- opt-in to shared CTA/button styles for orders empty state
- tweak table banner icon margin for perfect centering
- ensure CTA div doesn't get squished and break layout \(product metabox\)
- ensure title+copy is vertically centered in table banner \(remove last margin\)
2019-02-27 11:40:24 +13:00
haszari 0dcc87110b Merge branch feature/marketplace-suggestions into add/product-edit-suggestions
# Conflicts:
#assets/css/admin-rtl.css
#assets/css/admin.css
#assets/css/marketplace-suggestions-rtl.css
#assets/css/marketplace-suggestions.css
#assets/css/marketplace-suggestions.scss
#assets/js/admin/marketplace-suggestions.js
#includes/admin/class-wc-admin-assets.php
#includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php
2019-02-27 10:56:13 +13:00
haszari 69e3856188 show/hide suggestions based on which extensions are active:
- was previously based on folder names of installed plugins
2019-02-27 10:13:48 +13:00
Gerhard Potgieter cc857be201
Merge pull request #22811 from woocommerce/add/orders-list-suggestions
Show marketplace suggestions in orders list empty state
2019-02-26 18:22:02 +02:00
haszari dfae7cb9b5 automatically add utm params to suggestion urls, based on context 2019-02-26 15:48:35 +13:00
haszari 1446424ba4 hide product metabox suggestions tab (etc) when there are no suggestions 2019-02-25 16:27:49 +13:00
haszari 97524aab16 Merge branch 'feature/marketplace-suggestions' into add/product-edit-suggestions
# Conflicts:
#	includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php

+ fix linter errors / warnings
2019-02-25 16:12:24 +13:00
haszari 6a571dc353 fix regression introduced in merge - visibleSuggestions renamed 2019-02-25 16:06:50 +13:00
haszari 1aff17f0b9 Merge branch 'feature/marketplace-suggestions' into add/orders-list-suggestions 2019-02-25 16:05:04 +13:00
haszari c1a2821410 limit maximum of 5 suggestions displayed in any given context 2019-02-25 16:00:47 +13:00
haszari ae3f397855 allow suggestions in multiple contexts:
- fix regression when hiding footer
- rename `visibleSuggestions` for clarity
2019-02-25 15:59:11 +13:00
haszari 1df74d504e allow suggestions to target multiple contexts:
If an array of context strings is specified in json, the suggestion will
be available for display in all specified contexts.
2019-02-25 15:30:00 +13:00
haszari 27195c3834 hide footer, screen options when show suggestions in orders empty state 2019-02-25 13:46:43 +13:00
haszari d89b38cb3f fix up products empty state styles now row-padding is balanced 2019-02-25 11:49:08 +13:00
haszari e68ee17121 tweak layout of product edit suggestions to match designs 2019-02-25 11:12:05 +13:00
haszari e5940a845c opt-in to standard styles for product edit metabox suggestions 2019-02-25 10:24:38 +13:00
haszari cf88165e51 remove icon from marketplace suggestions product edit tab 2019-02-25 10:17:37 +13:00
Valerie 8a796138ef OBW: Add Facebook to recommended step
The end date for the Facebook recommendation
is October 8, 2019.

When the option is checked, this will install the extension
'Facebook for WooCommerce' on the user's site.
2019-02-23 17:40:37 -05:00
haszari 3fcdc65283 style orders list suggestions + remove debug code 2019-02-22 20:55:03 +13:00
haszari 37578aa5d4 Merge branch master into feature/marketplace-suggestions
# Conflicts:
#assets/css/admin.scss
2019-02-22 14:17:20 +13:00
haszari 79e7699ccd JS code-style fixes 2019-02-22 12:54:51 +13:00
haszari cda28ceb3a hide empty-state suggestions for mobile too – focus on desktop for v1 2019-02-22 11:57:19 +13:00
haszari 9ed6f591d3 use updated tracks API wcSettings.recordEvent => wcTracks.recordEvent 2019-02-22 11:38:55 +13:00
haszari a7dd094b3a frontload suggestion data as script data, remove ajax request 2019-02-22 11:23:09 +13:00
Mike Jolley e830bd739a Use taxable address when adding/removing coupons 2019-02-21 16:23:20 +00:00
haszari f2deef861e prefix AJAX actions to reduce chance of collision 2019-02-21 15:56:26 +13:00
haszari b4a36dc620 document all js methods 2019-02-21 15:51:41 +13:00
haszari eaa1108df6 fix client side data access after change to `wp_send_json_success` 2019-02-21 10:50:43 +13:00
haszari e37583bb2b remove dismissed suggestions from DOM so styling updates accordingly 2019-02-21 09:52:37 +13:00
Mike Jolley fc1a274fcb Check for hover after timeout 2019-02-20 17:22:43 +00:00
Mike Jolley 76b7a4facf cs 2019-02-20 16:37:40 +00:00
Mike Jolley 1caeb43baf Update photoswipe 2019-02-20 11:49:55 +00:00
haszari f6299cc512 send tracks events when suggestions are displayed, clicked or dismissed:
- Using temporary stand-in tracks API until PR is merged.
- Also fixed logic so table-view suggestion is not "displayed" if
  empty-state suggestions are shown.
2019-02-20 15:33:57 +13:00
haszari b3ca321669 fix size of products empty state icon in IE - use pixel sizing 2019-02-20 14:49:38 +13:00
haszari 4c1caf9171 display icon images in suggestions + styling tweaks for header/footer 2019-02-20 11:46:06 +13:00
haszari 42e026140a hide inline products list suggestion on mobile (can't get the styling right) 2019-02-20 10:29:41 +13:00
Mike Jolley a37d8ae385 SCSS mailchimp color change missing 2019-02-19 11:22:13 +00:00
Mike Jolley 5397e4ec1a
Merge pull request #22329 from woocommerce/enhancement-manual-stock-changes/21754
Product stock adjustments with manual order line item changes
2019-02-19 10:00:49 +00:00
haszari 21b0be7ef6 share styles and markup for prpducts list suggestion 2019-02-19 16:31:14 +13:00
haszari 4f7145cf49 fix button regression in product table suggestion 2019-02-19 15:09:11 +13:00
haszari bf31d8b052 mobile styles for products empty state suggestions 2019-02-19 14:56:34 +13:00
haszari a03b9abcfb allow dismiss by default + hide products empty-state box if no suggestions 2019-02-19 13:56:49 +13:00
haszari 2b884861b7 add linkout icon to link-style suggestion CTAs (for empty products footer link) 2019-02-19 13:55:46 +13:00
haszari cc51dd4376 style products empty header/footer + support link style:
- added link-text to trigger link style for suggestion CTA, button is now opt-in
- made suggestion rendering more generic, should display something sensible if there are missing attribs
- all CTA links/buttons open in new tab via target attr
2019-02-19 12:22:06 +13:00
haszari 9cd81c371e add header & footer to products empty suggestions box 2019-02-19 11:54:58 +13:00
haszari c7b630b1f8 update products list empty state (incl. suggestions) to latest designs 2019-02-19 10:46:44 +13:00
Mike Jolley 5bb5ae6265 Update from master 2019-02-18 16:54:24 +00:00
Mike Jolley afe219d854 Select an option vs state 2019-02-18 11:49:46 +00:00
Mike Jolley 4672a47d67 Update from master 2019-02-18 11:41:05 +00:00
haszari 012da5da24 support dismissing empty-state suggestions + polish dismiss styling:\n- hover style for x\n- disable border/underline active state inherited from <a>\n- layout styling for empty-state suggestions, button on right\n- make test data more like mockup (no category recommendation in list) 2019-02-18 15:55:26 +13:00
haszari d395967019 hide suggestions immediately after user clicks x (using jQuery.fadeOut) 2019-02-18 11:48:18 +13:00
Mike Jolley 34998caa43 Add time to fragment request 2019-02-15 17:35:44 +00:00
Mike Jolley e830b42ba7 Remove old safari code 2019-02-15 17:10:17 +00:00
haszari bf9f14c0b6 ajax api for dismissing specific marketplace suggestions (first cut) 2019-02-15 14:52:24 +13:00
haszari 9a7a9ad045 update styling of products table suggestion + add dismiss button 2019-02-15 13:30:53 +13:00
haszari 4ad413ea83 move hard-coded suggestion data to woo API (WCCOM api coming soon) 2019-02-14 15:47:32 +13:00
haszari 64c71cb724 fill out products empty state suggestions:
- add back product suggestions data
- hide page admin elements, focus layout on onboarding
- bulk-fix indentation in admin.scss
- reinstate default BlankState styling (overrides are intended for products only, accidentally overwrote)
2019-02-14 14:05:07 +13:00
haszari 8db91f44c0 styling products empty state OBW style, including existing add/import + suggestions 2019-02-14 12:16:59 +13:00
haszari c9f9d01f4b ensure list suggestions render correctly with optional url/copy attributes 2019-02-14 11:21:58 +13:00
haszari aa31d6f708 use attributes + DOM (not html snippet) for products empty state suggestions 2019-02-14 11:16:39 +13:00
haszari 9388b033fc use attributes & DOM api for table row banner render - html snippet is too flexible/risky 2019-02-14 10:53:25 +13:00
haszari 165a462fa2 style marketplace suggestions list banner 2019-02-13 14:49:28 +13:00
haszari e7adedb262 fix issue with footer overlapping empty products layout - hide footer 2019-02-13 14:35:56 +13:00
haszari c615fd6549 style marketplace suggestions 2019-02-13 14:32:36 +13:00
haszari aca9930b4b style marketplace cards grid in empty products screen 2019-02-13 13:54:05 +13:00
haszari 429908158e remove use of ES6 features in marketplace suggestions (const, =>) 2019-02-13 13:34:25 +13:00
haszari 87c0f7c92f fix reference to data global (lint) 2019-02-13 12:19:42 +13:00
haszari 42852d7b67 in-product discovery - enqueue styles as separate module 2019-02-13 12:18:39 +13:00
haszari 8151f28c79 in-product discovery - show items if companion extension(s) installed 2019-02-13 11:33:37 +13:00
haszari 5671a6f7ca in-product discovery - don't promote extensions that are already installed:
- + move suggestions client code to a module, enqueued only on relevant pages
2019-02-13 10:39:27 +13:00
Mike Jolley b70471448c Merge fix/21858 2019-02-12 16:19:32 +00:00
Mike Jolley f669428bdc
Merge pull request #22652 from woocommerce/fix/22507
Dump `max-width` in notices
2019-02-12 16:13:05 +00:00
Mike Jolley 4b8e808a97
Merge pull request #22664 from woocommerce/fix/21788
BlockUI on order form submit
2019-02-12 16:11:08 +00:00
haszari 2c24a567d0 in-product discovery - render suggestions in products list 2019-02-12 16:24:37 +13:00
Mike Jolley 8404b644da
Merge pull request #22645 from woocommerce/update/21963
Add notice hash to store notice cookie
2019-02-08 13:05:03 +00:00
Gerhard Potgieter d0898e6a80
Merge pull request #22629 from woocommerce/performance/22260
Use `get` instead of `load` on cart page
2019-02-06 15:47:17 +02:00
Mike Jolley 3948e9f83c BlockUI on order form submit 2019-02-05 11:40:10 +00:00
Mike Jolley fa9465a2cb novalidate order review form 2019-02-05 11:23:47 +00:00
Mike Jolley 5f5272ba2e
Merge pull request #22541 from woocommerce/pr/20830
Init cart widget when added to sidebar via the customizer
2019-02-05 10:39:29 +00:00
Mike Jolley 7760571985 Dump max width in notices 2019-02-04 16:07:51 +00:00
Mike Jolley 1928f34699 Add notice hash to store notice cookie
Closes #21963
2019-02-04 13:18:09 +00:00
Mike Jolley 893b33973c Merge branch 'fix/22147' 2019-02-04 13:05:40 +00:00
Mike Jolley 25a92b1d92 Feedback 2019-02-04 12:51:20 +00:00
Mike Jolley a5d62b83a8 Merge branch 'enhancement/woocommerce_display_product_attributes' 2019-02-04 11:25:13 +00:00
Mike Jolley 34dbf96847
Merge pull request #22410 from woocommerce/remove/simplify-commerce
Remove simplify commerce gateway from core
2019-02-04 11:23:23 +00:00
Mike Jolley 24bc59a025
Merge pull request #22443 from woocommerce/fix/21705
Placeholder resizing improvements
2019-02-04 11:13:49 +00:00
Mike Jolley 8fde07153a Use get instead of load 2019-02-01 14:30:42 +00:00
Mike Jolley 20b65a421c Merge branch 'pr/21454' 2019-01-31 16:30:27 +00:00
Mike Jolley e299da75b0 Update styling for remember me 2019-01-31 16:28:54 +00:00
Mike Jolley db36dea3d0
Merge pull request #22590 from woocommerce/fix/22395
Added more types of input to styling in admin/variations.
2019-01-31 13:10:32 +00:00
Ron Rennick c45dc09687 only set shipping cost required when method is enabled 2019-01-29 14:24:08 -04:00
Peter Fabian ad06f62669 Added more types of input to styling in admin/variations. 2019-01-28 19:32:21 +01:00
Mike Jolley 9b655c0ba7 Use hasSelectiveRefresh 2019-01-23 21:29:55 +00:00
Mike Jolley 6cfd5db528
Merge pull request #22524 from woocommerce/fix/22499
Option "Used for variations" should not appear for non-variable product types
2019-01-23 20:22:49 +00:00
Mike Jolley 3a94fc6d00 Introduce steps and cleanup variable names for clarity 2019-01-23 18:29:33 +00:00
Mike Jolley 01696d92b0 Add comments and round to 10 2019-01-23 17:34:51 +00:00
Mike Jolley f96d59ac2b Merge branch 'pr/21043' 2019-01-23 15:16:50 +00:00
Mike Jolley 987a24afdc Timeout param 2019-01-23 15:16:40 +00:00
Rodrigo Primo d08745e041 'Used for variations' checkbox should only appear for variable products
When editing product attributes, the checkbox 'Used for variations' should only be displayed when editing a variable product. The code has checks in place to control the display of this checkbox when adding an attribute or when loading the product attributes, but it was missing a check when saving product attributes which is added in this commit.
2019-01-22 15:13:02 -02:00
Rodrigo Primo a713e63502 Fix eslint errors 2019-01-22 15:04:43 -02:00
Mike Jolley 4d4d34a2d1
Merge pull request #22514 from woocommerce/update/mailchimp-branding-setup-wizard
Updates Mailchimp branding in setup wizard
2019-01-22 12:39:24 +00:00
Gareth Allison e54b1dabbd Changes tile background color to gold
As per Mailchimp's color guidelines on https://mailchimp.com/about/brand-assets/
2019-01-21 16:33:46 +02:00
Gareth Allison e60dca5c3b Adds updated Mailchimp avatar image 2019-01-21 16:33:08 +02:00
Eric Defore 148e308d38 Have ProductGallery object utilize arguments that are passed into it. 2019-01-18 12:20:13 -05:00
Eric Defore c1c8a88920 Add before and after Events for Product Galleries on Product Single 2019-01-18 12:08:38 -05:00
Mike Jolley ac29165892
Merge pull request #22459 from woocommerce/fix/21770
Prevent selected payment method description box from sliding up
2019-01-17 13:35:22 +00:00
Claudiu Lodromanean c2c7cbeccb
Merge pull request #22444 from woocommerce/fix/22119
Fix checkout field locales on first load
2019-01-16 09:39:42 -08:00
Ron Rennick 5bba703723 update trigger name to `wc_cart_emptied` 2019-01-16 10:36:35 -04:00
Mike Jolley 2ea7e4fb6a woocommerce_display_product_attributes filter 2019-01-16 12:25:19 +00:00
Ron Rennick 3fae170c14 notify script plugins that the cart was emptied 2019-01-15 14:44:28 -04:00
Mike Jolley 35a01fd06a Update select placeholders on locale change 2019-01-15 15:50:55 +00:00
Mike Jolley ec1d44c742 Prevent selected payment method description box from sliding up
Closes #21770
2019-01-15 12:14:55 +00:00
Mike Jolley f6fe8d1abc Priority should use integers
#22227
2019-01-14 14:58:00 +00:00
Mike Jolley d83c9c5f5b When page is ready, make fields update for all country fields 2019-01-14 14:44:54 +00:00
Mike Jolley 3922d186e0 trigger event when ready (wc_address_i18n_ready) 2019-01-14 14:44:14 +00:00
Mike Jolley 198fdce1bf Larger placeholder to allow more resizing 2019-01-14 13:54:01 +00:00
Mike Jolley 9d381d456b Remove simplify commerce gateway 2019-01-10 12:01:27 +00:00
Rodrigo Primo 5117a65638
Merge pull request #22116 from woocommerce/fix/refund-hash-reload/22115
Strip hash from URL that prevents reload on refunds
2019-01-09 18:20:37 -02:00
Claudiu Lodromanean e27ef52875
Merge pull request #20667 from woocommerce/fix/20658
Make product edit form aware publish was pressed
2019-01-09 12:17:38 -08:00
Rodrigo Primo b115a7587f
Merge pull request #21966 from woocommerce/add/21955
Filter out buttons from edit order row click
2019-01-09 17:23:29 -02:00
Mike Jolley 83543a9232 Handle publish and save post buttons by storing ID of button pressed 2019-01-09 16:31:53 +00:00
Mike Jolley 679af01f8d Merge branch 'fix/20658' of https://github.com/woocommerce/woocommerce into fix/20658 2019-01-09 16:11:14 +00:00
Mike Jolley 6dd984e0cf Merge branch 'master' into fix/20658 2019-01-09 16:09:19 +00:00
Mike Jolley a4925ff916 Loop to match text versions of attribute names and avoid problems with entities 2019-01-08 14:08:27 +00:00
Mike Jolley 038a1a103a
Merge pull request #21496 from kukac7/feature/img-optim
images, svgs optim
2019-01-08 11:25:10 +00:00
Mike Jolley b7e5c1b047
Merge pull request #21679 from amielucha/master
Fixes typos in class comments.
2019-01-08 11:11:42 +00:00
Claudiu Lodromanean 2e1e77f6f0
Merge pull request #22330 from woocommerce/fix/21708
Add special button style for connect button
2019-01-07 11:40:31 -08:00
Tiago Noronha f4243c6a08
Merge pull request #22225 from faisal-alvi/fix-22211
Fix-22211
2019-01-07 12:33:52 +00:00
Faisal Alvi 1999254456 pull-22225 suggestions applied 2019-01-07 16:01:52 +05:30
Mike Jolley 58c3731030 Add special button style for connect button 2019-01-03 14:41:09 +00:00
Mike Jolley 247fd3f610 Update notes with response 2019-01-03 13:37:32 +00:00
Mike Jolley 5ef45f51f6 Stock handling in ajax class only 2019-01-03 12:23:49 +00:00
Faisal Alvi 9df0cb7e0a fix-22267 v2.0 2018-12-21 13:17:27 +05:30
Ron Rennick 0456cb7323 update second instance of href reassign in cart.js, props @joshuatf 2018-12-19 11:19:47 -04:00
Ron Rennick dc41135a05 use reload() instead of reassigning href property 2018-12-19 11:16:59 -04:00
Joshua Flowers dc12b7d2d6 Use reload instead of assigning href to window.location 2018-12-17 10:27:20 +08:00
Faisal Alvi d8c926a243 Fix-22211 2018-12-14 15:46:25 +05:30
Joshua Flowers a16eba8543 Strip hash from URL that prevents reload on refunds 2018-12-04 10:11:40 +08:00
Claudiu Lodromanean 2e157427fc
Merge pull request #21970 from woocommerce/feature/twenty-nineteen
Enhanced compatibility with Twenty Nineteen
2018-11-27 09:13:14 -08:00
Tiago Noronha 0f343256c2 Multiple styling fixes 2018-11-23 00:59:33 +00:00
Tiago Noronha 99ab28a886 Remove border and add handheld styling to pagination 2018-11-19 14:40:43 +00:00
Tiago Noronha a0d2a4d219 Style pagination to match Twenty Nineteen 2018-11-19 14:35:34 +00:00
Gerhard 0227150f75 Filter out buttons as well from the onRowClick event on the orders table. 2018-11-19 10:26:54 +02:00
Tiago Noronha 4e01bf18dd Twenty Nineteen basic styling 2018-11-16 16:38:05 +00:00
Tiago Noronha 3168f13d9d Skeleton for Twenty Nineteen integration 2018-11-16 16:38:05 +00:00
claudiulodro 3fc51354a4 Decode variation html dimensions 2018-11-06 17:10:20 -05:00