Commit Graph

12025 Commits

Author SHA1 Message Date
Mike Jolley d63cf8c52f add next button to pointers and allow it to be dismissed
Closes #15858
2017-07-13 13:09:52 +01:00
Mike Jolley 7c321a2269 Ajaxify widget remove from cart button
Fixes #13171
2017-07-13 12:15:13 +01:00
Ninos Ego 6b101d790e Cleanup: WC_Query (#15800)
* Cleanup: WC_Query
Since WP 4.5 search_post_excerpt() is not needed anymore

* Fixed: Deprecate functions instead removing them

* Fixed: Don't forget to return param, otherwise existing filters would not work anymore

* Increased deprecated version from 3.1 to 3.2 because of milestone in PR

* Typo
2017-07-13 11:28:51 +01:00
Mike Jolley 6d65be1264 Merge pull request #16099 from woocommerce/feature/15982
Order note helper functions
2017-07-13 11:22:02 +01:00
Jason Conroy 0d91f008ac Add terms and conditions to page to api pages property 2017-07-13 16:26:20 +10:00
Claudio Sanches 3265f18af8 Tidy up wc_delete_order_note() 2017-07-12 18:46:19 -03:00
Claudio Sanches 85873d3d28 Not allow 'count' and 'fields' in wc_get_order_notes() 2017-07-12 18:45:27 -03:00
claudiulodro e4840f95c0 escape param wasnt added til php5.3 2017-07-12 14:25:23 -07:00
Claudio Sanches ac8b7f7087 Fixed docblocks 2017-07-12 18:05:44 -03:00
Claudio Sanches d93214e68e Order note helper functions 2017-07-12 18:03:39 -03:00
Claudiu Lodromanean 14aaebd3f5 Merge pull request #16094 from woocommerce/fix/15256
Check we have an object before using product props
2017-07-12 08:25:04 -07:00
Mike Jolley fdcf16bb60 Merge branch 'master' into update/15563
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	assets/css/helper-rtl.css
#	assets/css/helper.css
#	assets/css/wc-setup-rtl.css
#	assets/css/wc-setup.css
#	assets/css/woocommerce-rtl.css
#	assets/css/woocommerce.css
2017-07-12 16:18:13 +01:00
Claudiu Lodromanean bce6e927bb Merge pull request #16091 from woocommerce/fix/15763
Adjust variation name logic
2017-07-12 08:13:49 -07:00
Claudiu Lodromanean de21898b70 Merge pull request #16090 from woocommerce/fix/16084
Sanitize keys in reports class
2017-07-12 08:05:11 -07:00
Mike Jolley b3e0804462 Check we have an object before using product props
Fixes #15256
2017-07-12 15:58:54 +01:00
Mike Jolley 022c528b3e Remove value renaming code 2017-07-12 15:18:05 +01:00
Mike Jolley 6421b2a0be Fix rtrim for non - separators 2017-07-12 15:17:48 +01:00
webspecnick 49ba871795 Add enclosure and escape arguments to importer. Introduce filter to change importer arguments (#16053)
* Introduce woocommerce_product_csv_importer_args filter.

* Add extra args to WC_Product_CSV_Importer. Have fgetcsv use extra args

* Update to follow coding standards.
2017-07-12 12:11:44 +01:00
Mike Jolley 58338354e5 Merge pull request #16085 from woocommerce/add-cross-sells-filter
Add cross-sells filter
2017-07-12 11:24:28 +01:00
Mike Jolley 25cbd4ada8 Sanitize keys in reports class 2017-07-12 10:53:39 +01:00
claudiulodro 4c4526424a Remove race condition 2017-07-11 13:21:42 -07:00
Caleb Burks 572cf3813f Spacing/typo fix
Should really combine all three of these filters into one as well.
2017-07-11 13:37:43 -05:00
Caleb Burks 03d71cd8ee Add filter for cart cross-sells 2017-07-11 13:33:51 -05:00
Claudio Sanches fd1cb2d67f Merge pull request #16052 from woocommerce/feature/13189-refactored
Add select2 to layered nav
2017-07-11 12:39:33 -03:00
Claudio Sanches 2335b5edf5 Merge pull request #16065 from mjangstadt/patch-1
Explicitly set include path
2017-07-11 12:30:01 -03:00
Mike Jolley ca54ae0068 Merge pull request #16077 from woocommerce/fix/16072-2
[REST API] Check if is a valid instance of WC_Product before load data
2017-07-11 16:29:21 +01:00
Claudio Sanches 4262e83187 [REST API] Check if is a valid instance of WC_Product before load data
Closes #16072
2017-07-11 12:27:56 -03:00
Claudio Sanches fa850ecfb4 Removed PayPal legacy code 2017-07-11 12:09:57 -03:00
Mike Jolley b6847ebe60 remove exit 2017-07-11 16:09:31 +01:00
Mike Jolley 94b32e644a HTML emails 2017-07-11 14:52:30 +01:00
Mike Angstadt 00e8c9a505 removed leading slashes
removed leading slashes
2017-07-11 08:45:06 -05:00
Mike Angstadt 2239ad6dcb updated based on reviewer feedback
Updated based on reviewer feedback.
2017-07-11 08:43:55 -05:00
Mike Jolley 3939f50ced Download display in account/checkout 2017-07-11 13:45:35 +01:00
Mike Jolley 70420db6fd Spacing 2017-07-11 11:31:02 +01:00
Mike Jolley ba2063efa4 Merge pull request #15961 from electrokit/order_again_merge_option
Feature: Add option for merging when using 'Order Again'
2017-07-11 11:23:33 +01:00
Mike Jolley bb39053211 Merge pull request #16066 from woocommerce/fix/rest-of-the-world-zone-copy-change
Change the "Rest of the World" zone name to "Locations not covered by your other zones" everywhere
2017-07-11 10:51:44 +01:00
Mike Jolley 5c32abfe6b Merge pull request #16054 from woocommerce/fix/16043
Fix styling and connect button in non-english languages
2017-07-11 10:49:09 +01:00
Mike Jolley be4a3fc99a Typo in set_instance_id() method
Closes #16067
2017-07-11 10:38:50 +01:00
Daniel Rey Lopez 04a83b0faa Change the "Rest of the World" zone name to "Locations not covered by your other zones" everywhere 2017-07-11 08:19:42 +01:00
Mike Angstadt fa4e4e40fd Explicitly set include path
If you override include_path and are including this file from outside this directory's context, performance will degrade as both those locations are incorrectly checked first getting an EOF before include() falls back to looking in this directory.

Explicitly setting the include path checks this directory first regardless of calling context location or include_path override so is ideal.
2017-07-10 21:33:42 -05:00
Claudiu Lodromanean 1699a9769f Merge pull request #16020 from woocommerce/feature/12273
New attribute helper functions
2017-07-10 13:20:59 -07:00
Claudio Sanches a7582d50da Merge pull request #16050 from woocommerce/update/15985
Use select2 in cart
2017-07-10 15:40:56 -03:00
Claudio Sanches 1c18a458be Merge pull request #15994 from woocommerce/fix/15964
Correct embed code
2017-07-10 15:30:25 -03:00
claudiulodro 03403b2c44 Allow times in date fields 2017-07-10 09:19:59 -07:00
Claudiu Lodromanean d850ca235a Merge pull request #16044 from woocommerce/fix/16027
Pass correct value to woocommerce_shipping_classes_save_class when inserting a new term
2017-07-10 08:32:15 -07:00
Mike Jolley e432d2d0ad Fix styling and connect button in non-english languages 2017-07-10 16:29:06 +01:00
Mike Jolley 872dca636f Feedback 2017-07-10 14:48:42 +01:00
Mike Jolley a6967d69d4 Normalise state keys 2017-07-10 14:48:42 +01:00
Mike Jolley a527a9566b Add select2 to layered nav 2017-07-10 14:36:47 +01:00
Mike Jolley 0a3856c5cb Merge branch 'master' into feature-13189 2017-07-10 13:24:42 +01:00
Mike Jolley 555f093ac3 Use select2 in cart
Fixes #15985
2017-07-10 13:14:27 +01:00
Gustaf Folin ead5f208fa Add hook around empty_cart() 2017-07-10 12:13:38 +02:00
Mike Jolley 6685a4199c Pass correct value to woocommerce_shipping_classes_save_class when inserting a new term
Fixes #16027
2017-07-10 10:03:46 +01:00
Akeda Bagus 53807185a8
Fixed typos.
These typos are catched by `misspell` program.

```
find . -type f | grep -v assets | grep -v dummy-data | grep -v i18n | grep -v node_modules | grep -v .git | grep -v apigen |  xargs misspell -w
```

Some results were excluded because of 3rd party ownership and non-english
sentences.
2017-07-10 12:56:28 +07:00
Claudio Sanches a7c4eb3eb7 Improved error handler for wc_delete_attribute() 2017-07-07 18:49:46 -03:00
Claudio Sanches 66895afb38 Added comment to remember about CloudFlare email obfuscation 2017-07-07 18:26:53 -03:00
Claudio Sanches fe1d54b360 Added missing global $wpdb in wc_delete_attribute() 2017-07-07 18:15:59 -03:00
Claudio Sanches e235984e75 Fixed inserted data and clear transients after save attributes 2017-07-07 17:52:13 -03:00
Claudio Sanches 1600edee95 Delete attribute helper 2017-07-07 17:44:31 -03:00
Claudio Sanches b02fc2f516 Updated and create attribute helpers 2017-07-07 17:40:40 -03:00
Claudio Sanches 1f039280aa Added function to get attribute 2017-07-07 17:40:19 -03:00
Claudio Sanches 86d09b0c6a Avoid CloudFlare email obfuscation.
Closes #15082
2017-07-07 15:45:05 -03:00
Claudio Sanches 4ea14a35e2 Merge pull request #16012 from woocommerce/update/14837
Refactor shipping rate to include instance IDs
2017-07-07 12:23:27 -03:00
Claudio Sanches 24864ef6ca Merge pull request #16010 from woocommerce/update/16006
Revise where context is added.
2017-07-07 12:20:15 -03:00
Claudiu Lodromanean 07c9a2de3d Merge pull request #16011 from woocommerce/update/16002
Set allow one slide to false for flexslider
2017-07-07 08:17:33 -07:00
Mike Jolley f79f5bb5cb Simply enables drag and drop sorting on the grouped product field
Fixes #14560
2017-07-07 14:20:30 +01:00
Mike Jolley e539d3125a Refactor shipping rate to include instance IDs 2017-07-07 14:14:29 +01:00
Mike Jolley 79e3bbd0bf Set allow one slide to false for flexslider
Closes #16002
2017-07-07 11:37:10 +01:00
Mike Jolley d7ed343178 Revise where context is added. 2017-07-07 11:20:34 +01:00
Claudio Sanches fe9dd86482 Merge pull request #16001 from woocommerce/fix/format
Fix code formatting
2017-07-06 18:29:53 -03:00
Claudiu Lodromanean 74d6c2378b Merge pull request #16000 from woocommerce/fix/csv-mapping
Change how mapping is posted
2017-07-06 11:37:24 -07:00
claudiulodro 863193bd34 Fix linting problems 2017-07-06 11:12:02 -07:00
Mike Jolley b91da6f021 Change how mapping is posted 2017-07-06 18:51:36 +01:00
claudiulodro be2bbd3d3d Update missed select2 2017-07-06 10:43:10 -07:00
claudiulodro 8a8daabf26 Update with master and recompile assets 2017-07-06 09:06:30 -07:00
claudiulodro a2867fae6a Set up select2 and selectWoo 2017-07-06 08:43:10 -07:00
Claudiu Lodromanean d2fffea591 Merge pull request #15988 from rellect/activation_rtl
Add rtl support for activation.css
2017-07-06 08:22:48 -07:00
Farook Ibrahim d0489206a7 minor typo fix 2017-07-06 17:24:28 +05:30
Mike Jolley ec9a380143 Correct embed code 2017-07-06 12:32:28 +01:00
Refael Iliaguyev 40ef76c12b Add rtl support for activation.css 2017-07-06 09:03:15 +03:00
Claudio Sanches 7e7194ce47 Merge pull request #15974 from woocommerce/fix/15965
Update customer with CRUD and set session data at the same time.
2017-07-05 15:58:21 -03:00
Claudio Sanches 10f039ad79 Merge pull request #15827 from woocommerce/fix/15818
If stock changes between page load and editing, reject stock changes
2017-07-05 15:49:58 -03:00
Mike Jolley beba2757ee feedback 2017-07-05 17:11:34 +01:00
Mike Jolley 57ee9f58cf Update customer with CRUD and set session data at the same time.
Fixes #15965
2017-07-05 12:21:46 +01:00
Mike Jolley d03982bea1 Merge pull request #15966 from woocommerce/fix/15960
[REST API] Allow unset product shipping_class
2017-07-05 11:24:12 +01:00
Mike Jolley f1a19b1424 Merge pull request #15971 from woocommerce/hotfix-fatal-error
Prevent fatal error on order page
2017-07-05 11:10:42 +01:00
Mike Jolley 4c6a6516c0 Merge pull request #15970 from woocommerce/fix/extra-refund-classes
Removed non-existing classes from refunds form on admin
2017-07-05 11:05:32 +01:00
Nicola Mustone cd5c24d7c3 Prevent fatal error on order page
Prevents a fatal error on order pages when variable products are purchased.
2017-07-05 08:20:08 +03:00
Claudio Sanches 6ad9987e0d Merge pull request #15658 from woocommerce/update/15643
get_filtered_term_product_counts performance
2017-07-04 17:30:09 -03:00
Claudio Sanches 0a8a64f10c Merge pull request #15679 from woocommerce/update/coupon-cart-logic
Use the product object rather than function wc_get_product_ids_on_sale
2017-07-04 17:29:30 -03:00
Claudio Sanches d2f9211ffb Removed non-existing classes from refunds form on admin 2017-07-04 17:27:25 -03:00
Claudio Sanches 2d8902c91f Hide Cross-sells if external, removed in #15692 2017-07-04 16:44:08 -03:00
Claudio Sanches 74cba6f863 Merge branch 'master' into grouped-products-settings-improvement 2017-07-04 16:41:33 -03:00
Claudio Sanches ee87024d82 Merge pull request #15956 from woocommerce/add-cart-readdition-notice
Use ajax when restoring an item in the cart
2017-07-04 16:35:23 -03:00
Claudio Sanches bf91127682 Merge pull request #15788 from woocommerce/fix/13353
Clean up user is_paying_customer after deleting an order
2017-07-04 16:26:45 -03:00
Claudio Sanches 78a6585f19 [REST API] Allow unset product shipping_class
Closes #15960
2017-07-04 14:01:17 -03:00
Claudio Sanches cb58142c02 Merge pull request #15963 from woocommerce/fix/slashes-on-objects
leave objects alone rather than slashing in the meta api
2017-07-04 12:45:29 -03:00
Claudio Sanches 00237a6de9 Merge pull request #15959 from woocommerce/update/15949
Extra error checking in terms page content
2017-07-04 12:25:44 -03:00
Claudio Sanches cf12271398 Merge pull request #15934 from woocommerce/fix/15917
Convert data to UTF-8 on import
2017-07-04 12:20:17 -03:00
Mike Jolley b9757cca00 leave objects alone rather than slashing in the meta api
Has tests. Prevents notices when you pass an object to add_meta_data.
2017-07-04 16:09:21 +01:00
Claudio Sanches 888498deb0 Merge pull request #15939 from woocommerce/fix/15911
Use wp_get_raw_referer in my account redirect, and validate all falling back to my account
2017-07-04 12:04:41 -03:00
Mike Jolley 93a98ea91c Merge pull request #15954 from woocommerce/fix-15946
Add `cart_subtotal` to the shipping package
2017-07-04 12:59:24 +01:00
Job f67bf6892e Coupon help (#15958)
* Solves #15945

Change description of help tip to be accurate for current coupon system

* update caps use on PR
2017-07-04 12:07:26 +01:00
Mike Jolley 6f6f410ce1 Use wc_get_raw_referer 2017-07-04 12:05:21 +01:00
Mike Jolley b0a9c5a9c2 Merge pull request #15952 from woocommerce/add-filter-parameter-15923
Pass $column_id into export filter
2017-07-04 11:28:33 +01:00
Mike Jolley 05a328cd33 Merge pull request #15948 from woocommerce/fix/15947
Remove side-effects
2017-07-04 11:27:20 +01:00
Mike Jolley 6bc1c16d77 Merge pull request #15900 from JustinSainton/patch-4
Add search_customers() filter
2017-07-04 10:54:50 +01:00
Caleb Burks 2d52e6e398 Use ajax when restoring an item in the cart 2017-07-04 04:01:59 -05:00
Caleb Burks 5af560e32a Add `cart_subtotal` to the shipping package 2017-07-04 03:05:39 -05:00
Caleb Burks 02ffdaf8f5 Remove unnecessary variable
Don’t this change any longer. Got rid of a foreach loop that was using it.
2017-07-04 01:44:10 -05:00
Caleb Burks c7693b201d Require T&Cs be a different page than checkout 2017-07-04 01:36:34 -05:00
Caleb Burks 817efb551c Pass $column_id into export filter 2017-07-03 23:32:44 -05:00
claudiulodro fe09b4cf54 Remove side-effects 2017-07-03 13:57:32 -07:00
Justin Sainton 31d8a4a6d7 Add additional parenthesis.
Maybe don't throw fatal errors.
2017-07-03 10:19:57 -07:00
Claudiu Lodromanean 7046b480a0 Merge pull request #15907 from tractus/fix-order-date-query
Fixes major issue with wc_get_orders with both date_before and date_after specified
2017-07-03 09:32:24 -07:00
Claudiu Lodromanean 204c13fe8c Merge pull request #15936 from woocommerce/fix/15930
WP_Query expects paged, not page
2017-07-03 09:01:55 -07:00
Claudio Sanches 87e4e7241d Merge pull request #15933 from woocommerce/remove/sandbox-fix
Remove sandbox status forcing in PayPal gateway
2017-07-03 12:52:45 -03:00
Claudio Sanches 4b716ce269 Merge pull request #15943 from woocommerce/update/15926
Added method to escape commas in CSV values
2017-07-03 11:33:43 -03:00
Claudio Sanches 8f4dc81596 Merge pull request #15944 from woocommerce/update/12477
Remove use of protocol relative URls. Filter can be used if needed.
2017-07-03 11:30:07 -03:00
Mike Jolley 432a665a2b Remove use of protocol relative URls. Filter can be used if needed. 2017-07-03 14:58:53 +01:00
Mike Jolley eb5c6d688b Added method to escape commas in CSV values 2017-07-03 14:47:48 +01:00
Mike Jolley f9d1bbba73 Use wp_get_raw_referer in my account redirect, and validate all falling back to my account
Fixes #15911
Closes #15912
2017-07-03 13:30:32 +01:00
Mike Jolley 8ab1ef459c WP_Query expects paged, not page
Fixes #15930
2017-07-03 12:24:30 +01:00
Mike Jolley 655fc002ed Convert data to UTF-8 on import
Fixes #15917
2017-07-03 12:07:07 +01:00
Mike Jolley 59a4f3b0d9 Remove sandbox status forcing in PayPal gateway
Closes #15899

@californiakat Should we add
https://stackoverflow.com/questions/4298117/paypal-ipn-always-return-pay
ment-status-pending-on-sandbox to the docs when 3.2 launches?
2017-07-03 10:46:32 +01:00
Mike Jolley 280a9a625c Merge pull request #15931 from woocommerce/update/skip-meta-filter
Update/skip meta filter
2017-07-03 10:41:40 +01:00
Mike Jolley ccba0a665e Rename function and include less args 2017-07-03 10:38:29 +01:00
Mike Jolley 748c39d966 Add note about #15904 2017-07-03 10:26:26 +01:00
Mike Jolley ffc468af06 Merge pull request #15921 from woocommerce/fix-15920
Export metadata along with custom columns
2017-07-03 10:24:13 +01:00
Caleb Burks b127a67ed8 Add filter to skip metas from being exported 2017-07-02 03:14:24 -05:00
Caleb Burks b7ad5e18fc Export metadata along with custom columns 2017-07-02 02:21:58 -05:00
Trey Richards fb0924b652 Use filtered args in get_orders function. 2017-06-30 17:42:04 -07:00
Trey Richards f019070307 Fixed major issue with getting orders when both before_date and after_date args are set.
Modified unit tests to prevent from happening again.
2017-06-30 17:30:16 -07:00
Justin Sainton 29c9fa55d8 Add search_customers() filter
Includes each of the parameters passed to the method, as well as a context parameter for each query.

Our specific use case for this is for a custom wholesale ordering system, where we're wanting to limit the search to a specific role - so customizing the arguments here would be really helpful.

Ironically, proposed the same thing three years ago and the committed filter no longer exists: e91ca49b6d
2017-06-30 13:52:24 -07:00
Dale Phurrough 25ec8e4985 fixes woocommerce/woocommerce#15896 2017-06-30 21:20:23 +02:00
Claudiu Lodromanean 3fc26b7e24 Merge pull request #15890 from woocommerce/fix/15870
7day should start from midnight, not current time
2017-06-30 09:19:45 -07:00
Claudiu Lodromanean 2aaa0003d4 Merge pull request #15891 from woocommerce/fix/15874
Admin status update should be marked as a manual status transition
2017-06-30 09:13:16 -07:00
Claudiu Lodromanean 318be9db8d Merge pull request #15888 from woocommerce/update/12477
Added woocommerce_get_asset_url filter
2017-06-30 08:49:39 -07:00
Claudiu Lodromanean 5206535b62 Merge pull request #15887 from woocommerce/fix/15872
Use wc_float_to_string on item prices sent to paypal
2017-06-30 08:48:14 -07:00
Claudiu Lodromanean 4c818d584d Merge pull request #15879 from woocommerce/fix/15868
Prevent extra slashes on meta values
2017-06-30 08:36:56 -07:00
Mike Jolley c7e4be8f34 Update flexslider 2017-06-30 15:19:47 +01:00
Mike Jolley 77c938202f Merge branch 'add/15602-store-street-level-address'
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
2017-06-30 15:00:51 +01:00
Mike Jolley d6131f3a74 Field styling 2017-06-30 14:59:45 +01:00
Mike Jolley 58593a154d Admin status update should be marked as a manual status transition
Closes #15874
2017-06-30 11:40:52 +01:00
Mike Jolley 472b983498 7day should start from midnight, not current time
Fixes #15870
2017-06-30 11:34:07 +01:00
Mike Jolley dde62ef475 Added woocommerce_get_asset_url filter
Closes #12477
2017-06-30 11:05:18 +01:00
Mike Jolley 5d20b2f646 Merge pull request #15854 from woocommerce/fix/15853
Add tool for populating order address indexes.
2017-06-30 10:43:36 +01:00
Mike Jolley bf6c39fbf2 Use wc_float_to_string on item prices sent to paypal
Fixes #15872
2017-06-30 10:28:21 +01:00
Mike Jolley 277ccf0ad7 Merge pull request #15677 from ughimire/no-std
Tweak - Added remove icon on my account page dropdown of account page
2017-06-29 22:55:10 +01:00
Mike Jolley 3aa406fdf6 Merge pull request #15875 from woocommerce/fix/15873
Add important line of code back into structured data generation.
2017-06-29 22:53:55 +01:00