Commit Graph

5274 Commits

Author SHA1 Message Date
Rodrigo Primo 6b61d5f025
Merge pull request #24934 from woocommerce/add/filter_invalid_variations_notice
Introduce show_invalid_variations_notice filter
2019-12-05 09:08:24 -03:00
Gerhard 216a86b558 Change filter name to woocommerce_show_invalid_variations_notice and also pass through the $product_object variable. 2019-12-05 08:08:07 +02:00
Claudio Sanches 5fdb880831
Merge branch 'master' into feature/24956 2019-12-04 16:18:39 -03:00
Claudio Sanches 8033d5751e Changed wc_get_product_classname function name to wc_get_product_object 2019-12-04 16:15:16 -03:00
Claudio Sanches 24c473f932
Merge pull request #24991 from woocommerce/add/new-onboarding-ab-test
Onboarding - Show the new experience to 10% of new users
2019-12-04 11:00:23 -03:00
Christopher Allford d3a7266848 Hid variable product types from "Add Products" search on order management page 2019-12-03 14:17:51 -08:00
Claudio Sanches 6a395e2485
Merge pull request #25064 from woocommerce/fix/24315
Optimize variable product duplication slug generation
2019-12-03 15:28:55 -03:00
Claudio Sanches 15ffaeee6b
Merge pull request #25101 from woocommerce/remove-call_user_func_array
Remove a few calls to func_get_args() and call_user_func_array()
2019-12-03 14:51:43 -03:00
Rodrigo Primo 7edd0561d3
Merge pull request #25098 from woocommerce/fix/wccom-back-url-encode
Url encode "wccom-back" param in in-app purchase product link
2019-12-02 18:00:55 -03:00
Rodrigo Primo 00896ffb11
Merge pull request #25026 from woocommerce/fix/25022
Made usage tracking link in setup more transparent
2019-12-02 17:19:10 -03:00
Claudio Sanches 2133ae9acb
Merge pull request #25132 from woocommerce/fix/24812
Added empty categories to the product exporter admin view
2019-12-02 17:01:41 -03:00
Rodrigo Primo 86f59dff09
Merge pull request #24961 from woocommerce/fix/admin-caching-incr
Changed wp_cache invalidation from using increment to using microtime.
2019-12-02 15:32:17 -03:00
Peter Fabian 309c48ab0e Deprecated old cache function and replaced it with a new one. 2019-11-28 14:03:57 +01:00
Christopher Allford 44aed47f4d Added empty categories to the product exporter admin view 2019-11-27 12:08:56 -08:00
Viszt Péter 3d6c3b3551 Fixes for alignment issues on the settings screen introduced by WP 5.3 2019-11-27 13:05:20 +01:00
Paul Dechov 7f65a33fe8 Honor tax rounding preference in edit item and refund flows
The default value ('no') of the setting to round taxes at subtotal was not being honored on the Edit Order screen, which resulted in off-by-one discrepancies between the checkout item total and the edited or refunded item total.

This change is to round to the proper precision (w.r.t. the 'woocommerce_tax_round_at_subtotal' setting) for the default value of the form, as well as when the values are dynamically recomputed.
2019-11-25 17:49:43 +05:30
Rodrigo Primo 193395ddf5 Simplify and modernize two methods
This commit replaces calls to call_user_func_array() with argument unpacking using the spread operator that was added in PHP 5.6 in the following methods:

- WC_Admin_Setup_Wizard::run_deferred_actions()
- WC_Mail::send()
2019-11-22 15:25:08 -03:00
Denis Dvali 0810c4a027 Url encode value of "wccom-back" GET param in product links on in-app marketplace. 2019-11-22 15:02:58 +03:00
Justin Shreve 1fabf2f145 Handle PR feedback 2019-11-21 12:23:05 -05:00
Justin Shreve ff68f30c2c Update opt-in value to 'yes' 2019-11-21 12:00: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 8fd99a74b9 Added descriptive text to the usage tracking documentation link in the setup wizard 2019-11-20 12:47:56 -08:00
Christopher Allford 661f2b7722
Added a comment clarifying the suffix substring when checking slug uniqueness 2019-11-20 10:02:34 -08:00
Christopher Allford 55f49ae26a Added an appropriate @since tag to the generate_unique_slug method 2019-11-20 09:55:35 -08:00
Rodrigo Primo 81187dc359
Merge pull request #25062 from itzmekhokan/fix/25056
Fixed issue #25056
2019-11-19 11:58:25 -03:00
Christopher Allford 753f39ff27 Added unique slug generation for variable product duplication
The standard wp_unique_post_slug() function will run one query per name collision, leading to a large number of queries being made when a product template is duplicated repeatedly. We can avoid this by doing the unique generation ourselves.
2019-11-18 13:49:41 -08:00
Christopher Allford 7f44e23813 Resolved all of the phpcs errors 2019-11-18 13:43:03 -08:00
khokan-cn 55e2a0e199 Fixed issue #25056 2019-11-18 18:03:59 +05:30
Claudio Sanches ba0773d12e Apply wc_get_product_classname() in the current code base 2019-11-13 15:30:09 -03:00
Claudio Sanches 0624894462 Introduced hooks before and after settings form 2019-11-13 13:20:18 -03:00
Christopher Allford 357cd28b77 Made the usage tracking information link in the setup wizard more transparent 2019-11-12 13:27:31 -08:00
Gerhard 40faecc8e7 Add show_invalid_variations_notice filter to hide the invalid variations notice. 2019-10-30 15:17:31 +02:00
Kathy Daring e55af6431c Add woocommerce_admin_process_variation_object before $variation->save() 2019-10-29 11:50:52 -06:00
Vedanshu Jain 8b04f37d22
Merge pull request #24810 from woocommerce/add/in-app-purchases-subs-cache-cleaning
Clean subscriptions' cache for auto-install flow
2019-10-25 10:27:47 +04:00
Akshaya Rane 19e3131d5e Modified comment message 2019-10-22 10:56:08 +05:30
Akshaya Rane b8cdeb2164 Fixed standards error 2019-10-22 00:21:44 +05:30
Akshaya Rane 8ed29fad7f refs #24638 Fixed Stock status update on Bulk Edit 2019-10-21 22:45:05 +05:30
Julia Amosova 14e5d6b3ea Capitalize `T` in `Move to trash` on order page 2019-10-18 14:44:47 +01:00
Rodrigo Primo bb4ded8324 Update links to bug report and feature request issue templates
The name of the bug report and feature request issue templates was
changed in #24844. This commit updates two places where links pointing
to those templates were outdated.
2019-10-17 16:28:01 -03:00
tgglv b3c5dec0e7 Merge remote-tracking branch 'origin/master' into add/in-app-purchases-subs-cache-cleaning 2019-10-17 09:52:41 +05:00
Claudio Sanches 0112ee58a3
Merge pull request #24843 from sisou/patch-2
Use full year and 24h format in order note tooltip
2019-10-16 17:05:58 -03:00
Claudio Sanches 63c2bdafd2
Merge pull request #24793 from xristos3490/fix/24791
Fix/24791
2019-10-16 15:41:51 -03:00
tgglv 2ca1aeac42 Merge remote-tracking branch 'origin/master' into add/in-app-purchases-subs-cache-cleaning 2019-10-16 20:14:54 +05:00
Sören Schwert 8d0e37e6ca
Use full year and 24h format in order note tooltip 2019-10-16 14:59:36 +02:00
vedanshujain 451139e68e Use MIN_PHP and MIN_WP constants in PHP_MIN_REQUIREMENT value so that we don't have to change it everytime. 2019-10-15 16:07:03 +05:30
vedanshujain ec490409ea Refactor to use constant so that we have easy way to reset admin notice version 2019-10-15 16:07:02 +05:30
xristos3490 9eafb785e9 Cleanup 2019-10-15 12:37:21 +03:00
xristos3490 16dac4864b Add use of wp_unslash 2019-10-15 12:36:14 +03:00
tgglv c277696b65 Make WCCOM helper subs cache cleaning public
Relates: https://github.com/Automattic/woocommerce.com/issues/6535
2019-10-11 17:59:39 +05:00
xristos3490 4e2205e17d Fix file perms 2019-10-09 11:26:32 +03:00
xristos3490 d776c19dd4 Replace stripslashes with stripslashes_deep on non-scalar setting values 2019-10-09 11:25:41 +03:00
Gerhard Potgieter 2d796f825e
Merge pull request #24760 from jorostoyanov/jorostoyanov-patch-1
Add woocommerce_after_order_refund_item_name hook
2019-10-08 11:21:51 +02:00
Joro Stoyanov 5c55eea31c
Add woocommerce_after_order_refund_item_name hook 2019-10-03 08:53:10 +03:00
Claudio Sanches 78452a3f0f Fixed post type count only when avaliable in REST API 2019-10-02 15:03:46 -03:00
Claudio Sanches 71d7ac5741 Removed duplicated include of WC_Admin_Importers 2019-10-02 11:35:27 -03:00
Vedanshu Jain f15353cce5
Merge pull request #24745 from woocommerce/fix/24489
Also consider refunded item quantity while increasing stock.
2019-10-02 18:39:03 +05:30
vedanshujain 3c7e74f72d Return early when diff is 0.
Earlier we were also update  `_reduced_stock` meta everytime, but we don't need to when diff is 0 because this means that everything is already consistent.
2019-10-02 17:24:16 +05:30
Nico Mollet 8365365037
Removed space at the end of the line 2019-10-02 13:42:26 +02:00
Nico Mollet 5bcc35c24e
Coupon expiry date tooltip to help understand behaviour
Help understand if the date is included or excluded
2019-10-02 11:48:15 +02:00
Vedanshu Jain 7bb1a0babd
Merge pull request #24536 from nikhil-webkul/patch-3
Add back post type count to system status report
2019-10-02 14:47:48 +05:30
vedanshujain d2d0bf8466 Also consider refunded item quantity while increasing stock.
When updating an order, we call `wc_maybe_adjust_line_item_product_stock` to see if any item stock needs adjusting. We were not considering if an item has been refunded, which was causing incorrect stock adjustments.
This fix also takes in to account that an order has been refunded partially or fully.

Fixes #24489
2019-10-02 13:42:19 +05:30
Gerhard 6d09d0efcf Fix OWB sell in person vertical alignment 2019-09-30 19:31:50 +05:30
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
Rodrigo Primo 364661df4e
Merge pull request #24614 from yash-webkul/patch-3
Fixed escaping in class-wc-admin-dashboard.php
2019-09-26 13:41:34 -03:00
Justin Shreve 9dfdfbf532 Check the box if the user goes back to setup and previously checked it 2019-09-26 11:31:46 -04:00
Yash Kapoor 3ed83341fc
Fixed escaping in class-wc-admin-dashboard.php
Added that space which was removed in previous commit by mistake.
2019-09-26 10:12:34 +05:30
Rodrigo Primo 6f1b814b33
Merge pull request #24613 from yash-webkul/patch-1
Fixed escaping.
2019-09-25 20:29:00 -03:00
aaronlad 6bca35ddbe fix #24671 2019-09-25 18:28:32 +01:00
Justin Shreve 0c3fc315c5 Update tracking opt-in UI. 2019-09-24 14:26:21 -04:00
Rodrigo Primo 1b699621be
Merge pull request #24639 from itowhid06/master
use `esc_html__` instead of  `esc_html`
2019-09-23 12:32:23 -03:00
Rodrigo Primo 7cb614b41d
Merge pull request #24630 from nikhil-webkul/patch-5
Update class-wc-meta-box-product-images.php
2019-09-23 12:30:43 -03:00
Rodrigo Primo 5681cfe70c
Merge pull request #24618 from yash-webkul/patch-14
Added escaping.
2019-09-23 12:24:23 -03:00
Rodrigo Primo 01b86568aa
Merge pull request #24616 from yash-webkul/patch-13
Fixed escaping function.
2019-09-23 12:22:27 -03:00
Rodrigo Primo 36f691e7de
Merge pull request #24615 from yash-webkul/patch-4
Added escaping.
2019-09-23 12:20:41 -03:00
Towhidul Islam 780584230a use `esc_html__` instead of `esc_html` 2019-09-15 21:27:49 +06:00
Nikhil Chaudhary 951c57ada1
Update class-wc-meta-box-product-images.php
Added escaping function where required.
2019-09-14 09:13:48 +05:30
Yash Kapoor df8c0855a4
Added escaping. 2019-09-11 15:37:39 +05:30
Yash Kapoor 5c1a64026a
Fixed escaping function. 2019-09-11 15:12:34 +05:30
Yash Kapoor e8c6fd272b
Added escaping. 2019-09-11 15:06:00 +05:30
Yash Kapoor 6ed6a753db
Fixed escaping in class-wc-admin-dashboard.php 2019-09-11 15:02:10 +05:30
Yash Kapoor 07ce4b9e1c
Fixed escaping. 2019-09-11 14:53:52 +05:30
itzmekhokan 5a54c87c55 Fixed issue #24588 2019-09-07 12:23:33 +05:30
Rodrigo Primo fe2ec80b18
Merge pull request #24546 from woocommerce/fix/24534
Fixed markup in Storefront banner
2019-09-06 12:11:03 -03:00
Claudio Sanches d13d6543f7
Merge pull request #24451 from woocommerce/add/in-app-connect
Add support to allow connect and install for in-app purchase flow.
2019-09-03 21:33:39 -03:00
Claudio Sanches 0ea56e0bab Fixed coding standards 2019-08-30 14:33:59 -03:00
Claudio Sanches 49af62ba8b Allow some HTML markup on addons banner 2019-08-30 14:29:08 -03:00
Nikhil Chaudhary 47e3f9bd3b
Update html-admin-page-status-report.php
Added the missing post type count section.
2019-08-30 11:46:04 +05:30
Nikhil Chaudhary f2f0db602b
Update class-wc-admin-duplicate-product.php
Add escaping where required.
2019-08-29 12:39:09 +05:30
Claudio Sanches e545833c0a
Merge pull request #24524 from yash-webkul/patch-22
Update html-variation-admin.php
2019-08-28 12:51:58 -03:00
Claudio Sanches 866a48db00
Merge pull request #24523 from yash-webkul/patch-21
Update class-wc-admin-addons.php
2019-08-28 12:45:24 -03:00
Claudio Sanches ec1ba8db9c
Merge pull request #24522 from yash-webkul/patch-20
Update html-admin-page-addons.php
2019-08-28 12:45:06 -03:00
Claudio Sanches 0453cca9fd
Merge pull request #24521 from yash-webkul/patch-18
Update class-wc-admin-setup-wizard.php
2019-08-28 12:44:29 -03:00
Yash Kapoor be141f3231
Update html-variation-admin.php
Fixed escaping function for attribute value.
2019-08-28 19:43:02 +05:30
Yash Kapoor 84d2fb7df5
Update class-wc-admin-addons.php
Fixed escaping function for attribute value.
2019-08-28 19:31:58 +05:30
Yash Kapoor 18208163d6
Update html-admin-page-addons.php
Fixed escaping function for attribute value.
2019-08-28 19:26:36 +05:30
Yash Kapoor 83b5450ceb
Update html-admin-page-shipping-zone-methods.php
Fixed escaping function for attribute values.
2019-08-28 19:23:01 +05:30
Yash Kapoor 6443515064
Update class-wc-admin-setup-wizard.php
Fixed escaping function for attribute values.
2019-08-28 19:16:24 +05:30
Claudio Sanches cdd03f5f48
Merge pull request #24478 from marccoup/master
Fixed incorrect page setting id
2019-08-27 17:52:18 -03:00
Yash Kapoor 9517cd7877
Update html-product-csv-import-form.php
Fixed line indentation issue on line no 52.
2019-08-23 18:22:28 +05:30
Yash Kapoor ef2d38097d
Update html-product-csv-import-form.php
Fixed escaping issue.
2019-08-23 18:04:52 +05:30
Yash Kapoor 9eed3757ae
Update html-product-csv-import-form.php
Fixed escaping issue.
2019-08-23 18:03:59 +05:30
Yash Kapoor c3c91298b5
Update html-product-csv-import-form.php
Fixed data-showtext value.
2019-08-23 17:18:01 +05:30
Marc Coupland bc42517c1a Fixed incorrect page setting id 2019-08-23 11:16:29 +01:00
Rodrigo Primo 6ddbd2f9e1
Merge pull request #24469 from mohit-webkul/patch-2
Update html-admin-page-addons.php
2019-08-22 09:55:37 -03:00
Rodrigo Primo 180f260f7f
Merge pull request #24468 from yash-webkul/patch-14
Update html-oauth-start.php
2019-08-22 09:52:35 -03:00
Rodrigo Primo 91501175d5
Merge pull request #24466 from mohit-webkul/patch-1
Update class-wc-admin-menus.php
2019-08-22 09:50:51 -03:00
Yash Kapoor c3791673ef
Update class-wc-admin-setup-wizard.php 2019-08-22 17:14:34 +05:30
Mohit Verma 71db4b4068
Update html-admin-page-addons.php
Added alt tag translation.
2019-08-22 17:01:08 +05:30
Yash Kapoor 478f8eae17
Update html-oauth-start.php
Added translation.
2019-08-22 16:47:01 +05:30
Yash Kapoor 365a701d34
Update class-wc-admin-setup-wizard.php
Added translation.
2019-08-22 16:40:57 +05:30
Mohit Verma c97ca103c1
Update class-wc-admin-menus.php
Fixed escaping in attribute.
2019-08-22 16:21:23 +05:30
Akeda Bagus 62b42893b2
Rename URL param from wccom-helper-nonce to wccom-connect-nonce. 2019-08-17 22:37:02 +07:00
Akeda Bagus aae802f319
Add support to allow in-app purchase installation after connected. 2019-08-17 00:36:28 +07:00
Rodrigo Primo 7cea80a86a
Merge pull request #24291 from woocommerce/prod-shipping-class-alphabetical
Sort shipping classes under products alphabetically
2019-08-08 16:41:30 -03:00
Gerhard 5ea1b72b6a PHPCS fixes 2019-08-05 13:51:46 +02:00
Daniel Bitzer b59e633b15 Fix output escaping for menu titles
Menu title contains HTML
2019-08-05 13:51:45 +02:00
Claudio Sanches 375b989322 Added validation for multiple decimal points 2019-08-02 13:58:02 -03:00
Jesse Pearson 009b0f030d Sort shipping classes under products alphabetically 2019-08-01 13:07:05 -04:00
Claudio Sanches 1e6785f758 Introduced filter to prevent adjust product stock 2019-07-31 17:37:33 -03:00
haszari 8c5eb16c78 shorten in-app-purchase url param keys 2019-07-16 08:30:19 +12:00
Gerhard Potgieter 3958e347cd
Merge pull request #24123 from woocommerce/add/wccom-site-rest-api
Add WCCOM Site REST API
2019-07-15 19:34:14 +02:00
Akeda Bagus f51265e58d
Add @since tag. 2019-07-15 15:42:36 +07: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
haszari dab7cb328a use add_query_arg to determine current page url 2019-07-15 18:07:57 +12:00
haszari f97fa34c01 rename button style param/variable for clarity 2019-07-15 08:50:08 +12:00
Gerhard Potgieter f9697eb03e
Merge pull request #24034 from woocommerce/fix/23508
Fix: check if DB_NAME is defined before using it
2019-07-14 19:54:04 +02:00
Gerhard Potgieter eee56a254f
Merge pull request #23479 from parmarhardip/23381
enhance #23381 Prevent the Cart, checkout and my account page from be…
2019-07-14 19:49:37 +02:00
haszari 8c6a09e7e4 pass current wp-admin path to WCCOM as url param (for "back" link) 2019-07-12 14:50:14 +12:00
haszari 46f2b98bca add in-app-purchase url params to marketplace suggestions buttons 2019-07-12 13:42:35 +12:00
haszari 9652d8f42c add in-app-purchase url params to addons screen cards (in category tabs) 2019-07-12 13:42:35 +12:00
haszari 80f59f3819 fix linter errors (2 phpcbf, 31 manual) 2019-07-12 13:42:34 +12:00
haszari b597ff067a add in-app-purchase url params to addons screen button 2019-07-12 13:42:33 +12:00
haszari 6f29905ece fix phpcs errors (4 phpcbf, 40 manual) 2019-07-12 13:42:33 +12:00
Akeda Bagus d51e843190
Move WCCOM Site related files to `/wccom-site` directory.
Also use queue when installing products so API can respond immediately.
2019-07-11 16:01:53 +07:00
Akeda Bagus c59e1c3553
Fix minor wording issue in error message. 2019-07-11 15:58:06 +07:00
Akeda Bagus 9d047fd912
Make sure to flush cache before checking wccom updates. 2019-07-11 15:58:06 +07:00
Akeda Bagus 18b503dbd6
Add support for theme installation. 2019-07-11 15:58:06 +07:00
tgglv c0d9fc7fc3
Make WP.org plugin support installation method names more precise 2019-07-11 15:58:06 +07:00
tgglv 6eeefd1341
Add WP.org plugin support into Product Activation 2019-07-11 15:58:05 +07:00
tgglv 1fae1d7ba2
Remove redundant line 2019-07-11 15:58:05 +07:00
tgglv 527fbca149
Store product's `installed_path` 2019-07-11 15:58:05 +07:00
tgglv 1dff186076
Add @return types into annotations 2019-07-11 15:58:05 +07:00
tgglv be63fba4cd
Fix typo 2019-07-11 15:58:05 +07:00
tgglv 5bde7b5161
Fix PHP CodeSniffer issues 2019-07-11 15:58:05 +07:00
Akeda Bagus 52a68177a0
Add product info retrieval step before downloading product. 2019-07-11 15:58:04 +07:00
Akeda Bagus 6854f3bdca
Update the state when installation finished. 2019-07-11 15:58:04 +07:00
Akeda Bagus 7ac8232d2c
Make sure to init the upgrader and clean plugins cache before activate. 2019-07-11 15:58:04 +07:00
Akeda Bagus b57f05fde9
Add missing description in docblock. 2019-07-11 15:58:04 +07:00
Akeda Bagus 69a4aa926a
Fix typo in error message. 2019-07-11 15:58:04 +07:00
Akeda Bagus 7adc256344
Move subscription check as part of installation steps. 2019-07-11 15:58:03 +07:00