Commit Graph

12025 Commits

Author SHA1 Message Date
Mike Jolley dd7fe5f158 More tests and precision fixes 2017-07-19 12:26:01 +01:00
Mike Jolley 3a76e4492e todos 2017-07-18 20:48:19 +01:00
Mike Jolley d24faebea8 Split fixed cart from other discounts in class. 2017-07-18 20:42:47 +01:00
Mike Jolley 37fbd96de8 Small tidyup 2017-07-18 18:52:50 +01:00
Mike Jolley 2b9e3aafdd fix endless loop of death 2017-07-18 18:47:05 +01:00
Mike Jolley 6a9e612a83 Some progress on actual discounts 2017-07-18 18:07:46 +01:00
Mike Jolley 268628c09c Include cart item class 2017-07-18 15:42:54 +01:00
Mike Jolley cc8eb28724 Set items based on cart or an order, with tests 2017-07-18 15:42:46 +01:00
Mike Jolley 7f715e4776 WC_Cart_Item class 2017-07-18 15:42:29 +01:00
Mike Jolley 91dbdb0c4c Correct value 2017-07-18 14:29:14 +01:00
Mike Jolley efaa606894 Merge branch 'master' into feature/discounts-class 2017-07-18 14:27:20 +01:00
Mike Jolley dfd7aa78d5 Use class raw data, don't pass it
#16127 caused an issue with fields which don’t require passing args
e.g. esc_url_raw callback. This broke tests.
2017-07-18 14:20:14 +01:00
Mike Jolley 31d535c932 Methods and tests 2017-07-18 14:04:56 +01:00
Mike Jolley 96f0a6e375 DateTime docblocks 2017-07-18 11:46:11 +01:00
Claudio Sanches 8b1b8b6b28 Initial WC_Discounts class 2017-07-18 01:43:31 -03:00
Claudio Sanches 90691e881f Merge pull request #16140 from woocommerce/update/16136
Added `woocommerce_data_store_wp_{$this->meta_type}_read_meta` filter
2017-07-17 19:24:44 -03:00
Jaydeep Rami 3522857d23 Fix typo in WooCommerce plugin (#16135)
* Fixed typo

* Fixed more typo

* Fixed more typo

* Fix tyop

* Fix more typo

* Fix more typo

* Fix typo

* Fix typo

* Fix typo

* Fix typo datatime object

* Fix short name of compat

* Fix typo: update short name

* Fix typo "deactive" to "deactivate" and short BW - Compat

* Fix typo "Backwards compat"

* Fix typo 'parameters'

* Fix more typo 'pararmeters'

* Fix typo 'compund'

* FIx typo order

* Fix typo

* Fix typo 'incorrecly'

* Fix typo 'genarate'

* Fix typo 'reletive'

* Fix typo 'Handly'

* Fix typo 'rotatated'

* Fix typo

* Fix typo 'additonal'

* Fix typos
2017-07-17 11:10:52 +01:00
Mike Jolley 3f1144cf06 Merge pull request #16115 from woocommerce/refactor/woocommerce-class
Moving WooCommerce class to a separate file and fixing coding standards
2017-07-17 11:09:45 +01:00
Mike Jolley 62a3554c22 Merge pull request #16114 from woocommerce/fix/rest-api-options
[REST API] Allow OPTIONS requests again
2017-07-17 11:08:48 +01:00
Mike Jolley 0517673cfa Reverse results of wc_array_cartesian so variations are created in a more expected way
Closes #16117
2017-07-17 11:02:47 +01:00
Mike Jolley a2a34cf0be Added `woocommerce_data_store_wp_{$this->meta_type}_read_meta` filter
#16136
2017-07-17 10:34:44 +01:00
Claudiu Lodromanean 19d844fa53 Merge pull request #16129 from woocommerce/fix/16128
Fixed missing reviews in product_page shortcode with SKU
2017-07-14 10:19:38 -07:00
Claudio Sanches e5ebfb6141 Fixed missing reviews for product_page shortcode with SKU
When quering with SKU, WP_Query does not set `is_single` as true and this
makes fail the check inside `comments_template()`.

Closes #16128
2017-07-14 14:06:18 -03:00
Claudio Sanches 4d3d377bcf Merge pull request #16127 from woocommerce/fix/16119
Importing products with relative fields and skus
2017-07-14 12:55:11 -03:00
Claudio Sanches 14ff34ef81 Moved constants to main class and applied new description 2017-07-14 12:49:16 -03:00
Claudio Sanches 2e663af024 Merge pull request #16122 from woocommerce/update/16069
Check stock levels before showing payment form
2017-07-14 12:35:26 -03:00
Claudio Sanches 4f7b152b96 Merge pull request #16120 from woocommerce/fix/16118
Cast report data to floats
2017-07-14 12:34:00 -03:00
Mike Jolley f63b2e24df Merge pull request #16125 from websupporter/issue-16124
Switch to coupons internal get_email_restrictions() (solves #16124)
2017-07-14 12:34:43 +01:00
Mike Jolley 2bc7f075f5 Make sure placeholders have or check for SKUS
Fixes #16119
2017-07-14 12:33:14 +01:00
Mike Jolley 02dc61677a Improve cleanup of fails 2017-07-14 11:38:49 +01:00
websupporter 72baa43fe2 switch to coupons internal get_email_restrictions() 2017-07-14 13:37:00 +03:00
Mike Jolley 1c6a629d78 Check stock levels before showing payment form 2017-07-14 10:48:43 +01:00
Mike Jolley 44ef034a94 Cast report data to floats
#16118
2017-07-14 10:26:07 +01:00
Claudio Sanches eb4caec13e Applies wc_delete_order_note() and properly delete notes by AJAX 2017-07-13 19:38:37 -03:00
Claudio Sanches 97f9dab0ce Applies wc_get_order_notes() on admin 2017-07-13 19:33:20 -03:00
Claudio Sanches 1b93282245 Change note to content 2017-07-13 19:30:25 -03:00
Claudio Sanches fe550d5322 Fixed coding standards 2017-07-13 15:57:46 -03:00
Claudio Sanches 89bbd4acfa Prevent direct access 2017-07-13 15:46:34 -03:00
Aristeides Stathopoulos e4bf9b3d78 Properly define constants after moving class outside main plugin file. 2017-07-13 15:44:23 -03:00
Aristeides Stathopoulos e7ffb9f910 Move WooCommerce class to separate file. 2017-07-13 15:44:20 -03:00
Claudio Sanches 8aa2701514 Merge pull request #16113 from woocommerce/fix/cod-shipping-logic
Improves cash on delivery logic when dealing with multiple methods
2017-07-13 15:23:15 -03:00
Claudio Sanches f37e066d97 [REST API] Allow OPTIONS requests again 2017-07-13 15:19:17 -03:00
Claudio Sanches 940019f245 Merge pull request #16103 from jconroy/api-terms-page-data
Add the "Terms and conditions" page to the api system status pages property
2017-07-13 15:17:48 -03:00
Mike Jolley 37fc4c8f77 Ajaxify the product category filter (#16110)
* Ajaxify the product category filter

Closes #12773

* Min
2017-07-13 17:04:40 +01:00
Claudiu Lodromanean 287b0107b1 Merge pull request #16109 from woocommerce/fix/15858
add next button to pointers and allow it to be dismissed
2017-07-13 08:45:49 -07:00
Claudiu Lodromanean c5443dddf5 Merge pull request #16107 from woocommerce/update/13171
Ajaxify widget remove from cart button
2017-07-13 08:41:36 -07:00
Claudiu Lodromanean 268166ecd0 Merge pull request #16093 from woocommerce/fix/15824
Fix select box styling in 2017
2017-07-13 08:28:51 -07:00
Mike Jolley 982edb2f9f Improves cash on delivery logic when dealing with multiple methods
If an order has multiple shipping methods, check all against the
allowed methods using a simple array_diff.
2017-07-13 16:21:59 +01:00
Mike Jolley 175e93deb1 Custom colors 2017-07-13 15:05:22 +01:00
Beka Rice 1f95709e42 Fix deprecation notice from accessing order props directly 2017-07-13 09:56:46 -04:00
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