Commit Graph

30524 Commits

Author SHA1 Message Date
Mike Jolley f90daea1d5
Merge pull request #22799 from woocommerce/remove/cron-plugin-theme-installer
Remove old plugin/theme background installer hooks
2019-02-27 11:38:32 +00:00
Mike Jolley e3c474b563
Merge pull request #22868 from woocommerce/fix/22743
Get insert ID before running actions
2019-02-27 11:17:15 +00:00
Gerhard a1c3048318 Keep tracking enabled if already enabled when saving the wizard. 2019-02-27 12:55:49 +02:00
Konstantin Kovshenin 9447afbc47 Update Marketplace suggestions endpoint URL 2019-02-27 12:26:14 +03:00
haszari 8ce8cdde6e update suggestions JS code to use `active` (WCCOM endpoint has updated schema) 2019-02-27 16:16:49 +13:00
haszari d5287b3f07 switch in WCCOM new (versioned) suggestions host/URL 2019-02-27 16:12:38 +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
Rua Haszard f13a821017
Merge pull request #22815 from woocommerce/add/product-edit-suggestions
Marketplace suggestions in Edit Product screen
2019-02-27 11:04:29 +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 8dbda1b9c9 revert suggestion-related changes in helper:
- no longer required, now using active plugins for suggestions
- get_local_woo_plugins needs to not be cached
- left plugin `slug` in get_local_woo_plugins values, may be useful
2019-02-27 10:19:56 +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
Mike Jolley d5ab20d1a5 get ID before running actions 2019-02-26 20:29:17 +00:00
Gerhard Potgieter 8722317956
Merge pull request #22775 from woocommerce/update/22525
Set no-transform cache header to opt out of weblight
2019-02-26 18:22:57 +02: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
Gerhard Potgieter 46e4897187
Merge pull request #22859 from woocommerce/add/marketplace-suggestions-campaign-tracking
add UTM params to marketplace suggestion URLs
2019-02-26 18:21:23 +02:00
Gerhard Potgieter dbe93b96c4
Merge pull request #22865 from woocommerce/fix/22863
Add alt text to gallery thumbnail
2019-02-26 18:20:35 +02:00
Gerhard Potgieter 3455b2c1cb
Merge pull request #22830 from woocommerce/add/marketplace-updater-wc-queue
Update Marketplace suggestions data using WC_Queue
2019-02-26 17:55:33 +02:00
Mike Jolley 017f0e5e0d
Merge pull request #22834 from nishitlangaliya/issue-22757
feat: wc_product_stock_status_options filter added for stock status options
2019-02-26 14:06:02 +00:00
Mike Jolley 20eb503128 Add alt text to gallery thumbnail 2019-02-26 14:03:25 +00:00
Naveen giri 913b8e84bf Fix wpcs error and avoid unnecessary checks 2019-02-26 18:31:34 +05:30
Gerhard 3dde01570a Remove wp_clear_scheduled_hook for the plugin and theme background installer that does not run via cron anymore. 2019-02-26 12:44:27 +02:00
Gerhard 1e21ebe367 Remove the callbacks only 2019-02-26 12:25:12 +02:00
Mike Jolley 176965d139
Merge pull request #22825 from thatwasnotme/fix/data-stores-docs-param-type
Correct invalid param type from id to int
2019-02-26 10:24:58 +00:00
Gerhard ccbb8313b6 Revert "Remove old hooks for woocommerce_theme_background_installer and woocommerce_plugin_background_installer. There are no scheduled events for these anymore and the Wizard has it's own theme/plugin installer that uses the shutdown hook instead of cron."
This reverts commit 0f771bf4fe.
2019-02-26 12:24:56 +02:00
Mike Jolley 68c1ec6763
Merge pull request #22826 from woocommerce/fix/22708
Calculate shipping before totals during checkout update
2019-02-26 10:24:02 +00:00
Mike Jolley c4d83e19db
Merge pull request #22782 from woocommerce/fix/21767
Use total, not amount, when calculating fees
2019-02-26 10:19:31 +00:00
Mike Jolley 94d7d82423
Merge pull request #22845 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.4.9
2019-02-26 10:18:31 +00:00
Mike Jolley 42c819b64d
Merge pull request #22850 from woocommerce/renovate/mocha-6.x
Update dependency mocha to v6.0.2
2019-02-26 10:17:57 +00:00
haszari dfae7cb9b5 automatically add utm params to suggestion urls, based on context 2019-02-26 15:48:35 +13:00
Mike Jolley 6c35df1551 Return string 2019-02-25 22:01:22 +00:00
Mike Jolley 8792b53ecb shop_messages shortcode requires wc_print_notices 2019-02-25 22:01:07 +00:00
haszari c45a39676c use safe get for API request, linter fixes, doc comments 2019-02-26 10:07:42 +13:00
Krzysztof Grabania 946b1e2469 Remove whitespace characters from Select2 option title 2019-02-25 20:12:54 +01:00
Claudio Sanches 80aee99fee Prevent a few structured data warnings
This prevents warnings about 'image', 'description' and 'sku'.
'brand' included as empty fields just to register.

Note that warnings still comes for empty fields like 'sku' or 'brand'.
This is the message that should throw from Google Console:

> The brand field is recommended. Please provide a value if available.

Since is recommended, this PR should solve the max warnings as possible.

Fixes #22842
2019-02-25 15:49:14 -03:00
Renovate Bot 185270d696
Update dependency mocha to v6.0.2 2019-02-25 18:26:18 +00:00
nishitlangaliya ee621eec8a fix: filter prefix changed and unit test added for fn:wc_get_product_stock_status_options 2019-02-25 19:03:57 +05:30
Gabriel 8a9990f98d
[ADD] Do Action before cart is emptied 2019-02-25 06:01:38 +01:00
Renovate Bot 6aeaf90155
Update dependency autoprefixer to v9.4.9 2019-02-25 03:54:24 +00: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 556bd1b372 remove hard-coded test suggestion data 2019-02-25 13:34:59 +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