Commit Graph

11143 Commits

Author SHA1 Message Date
Claudio Sanches 020e61927b Created abstract product class 2017-05-16 01:02:46 -03:00
Claudio Sanches cc05ed77d2 Properly display the importer results 2017-05-15 20:41:19 -03:00
Claudio Sanches 09cf382d29 Initial code to create/update in the CSV importer 2017-05-15 20:23:44 -03:00
Claudio Sanches 8c73073bf5 Updated docblocks for WC_Importer_Interface::import 2017-05-15 20:11:16 -03:00
Claudio Sanches 121f8f6315 Abstract the product importer 2017-05-15 19:49:53 -03:00
Mike Jolley f40dddacc3 Feedback 2017-05-15 10:42:10 +01:00
Mike Jolley e777b4d557 Merge branch 'feature/product-csv-import-export' into feature/csv-exporter 2017-05-12 21:03:20 +01:00
Mike Jolley 523d9d27cd Styling 2017-05-12 20:40:54 +01:00
Mike Jolley ed32dd558d Nonces and further tidyup 2017-05-12 20:15:08 +01:00
Mike Jolley 0334ed255a Merge pull request #15041 from woocommerce/fix/14985-address
Update all customer fields when updating via checkout
2017-05-12 19:48:20 +01:00
Mike Jolley 5e9f908df7 Merge pull request #15051 from reescott/fixlogtable
Fix #14967 by adding log_id as the secondary sorting column to log list.
2017-05-12 19:47:18 +01:00
Scott Rees b7b75c83f7 Fix #14967 by adding log_id as the secondary sorting column to log list. 2017-05-12 10:22:31 -07:00
Claudio Sanches a273deffcb Merge pull request #15042 from woocommerce/fix/14978
Ensure get_plugin_updates exists
2017-05-12 13:40:54 -03:00
Mike Jolley c63a3c2c12 tidyup 2017-05-12 17:00:14 +01:00
claudiulodro 824d8898a2 Fix unit tests 2017-05-12 08:44:02 -07:00
Mike Jolley 9faac6f60d Filters 2017-05-12 16:39:02 +01:00
Mike Jolley b0b86f13a0 Add missing columns 2017-05-12 16:16:04 +01:00
Mike Jolley a35df1394c Delay final step 2017-05-12 15:26:53 +01:00
Mike Jolley 0bf749aeac Move js into script file 2017-05-12 15:03:00 +01:00
Mike Jolley 8fe0f03a95 Type exporting 2017-05-12 14:48:30 +01:00
Mike Jolley 3d7533e02b Correct variable name 2017-05-12 12:09:05 +01:00
Mike Jolley 6797b2229d Ensure get_plugin_updates exists
Fixes #14978
2017-05-12 10:56:43 +01:00
Mike Jolley de4e2fc667 Update all customer fields when updating via checkout
Adds set_customer_address_fields helper to make it more DRY

Fixes #14985
2017-05-12 10:43:14 +01:00
Claudiu Lodromanean c6fc0003c3 Merge pull request #14971 from woocommerce/improvement/13646
WC_*_Query date queries
2017-05-11 21:43:41 -07:00
Claudio Sanches ed09b4e350 Updated to sanitize data in parse_data method 2017-05-11 11:49:45 -03:00
Claudio Sanches 663c1d5f51 Merge pull request #15012 from woocommerce/fix/14994
Correctly set rating during updates
2017-05-10 19:08:38 -03:00
Mike Jolley 5c6ef16e99 images 2017-05-10 23:05:06 +01:00
Claudio Sanches 9a25f09c7b Included $item to woocommerce_csv_product_import_mapping_options filter 2017-05-10 18:57:57 -03:00
Claudio Sanches 0ec70e6b92 Allow import as meta 2017-05-10 18:56:29 -03:00
Mike Jolley d2c2ead6c4 fix linked product export 2017-05-10 22:53:17 +01:00
Claudio Sanches 44c20f40d7 Merge pull request #15015 from woocommerce/fix/14973
Check we have a valid order in wc_get_payment_gateway_by_order
2017-05-10 18:35:36 -03:00
claudiulodro e31cbfd5c4 Formatting for readibility 2017-05-10 14:33:29 -07:00
Mike Jolley 4cacceeede Variation handling 2017-05-10 22:16:53 +01:00
Claudio Sanches 6f34cdd9cf Skip mapping screen if all fields match CSV default fields 2017-05-10 17:56:00 -03:00
Claudio Sanches 244fb00a27 Initial mapping screen 2017-05-10 17:15:28 -03:00
claudiulodro d461ea86d6 Use local timezone for yyyy-mm-dd queries 2017-05-10 13:08:47 -07:00
Mike Jolley 825dcda917 Selective export 2017-05-10 20:48:56 +01:00
claudiulodro db1d5ac987 Simplify logic 2017-05-10 12:02:15 -07:00
Mike Jolley 7c82087bcd Check we have a valid order in wc_get_payment_gateway_by_order
Fixes #14973
2017-05-10 19:54:20 +01:00
claudiulodro a0727fb8a1 Change to date array 2017-05-10 11:49:11 -07:00
Mike Jolley 37a544dd6f Ensure needle is set
Fixes #15004
2017-05-10 19:30:34 +01:00
Mike Jolley 523cf5d4ed Protect against missing order in admin assets
Closes #15000
2017-05-10 19:26:30 +01:00
Mike Jolley cd9119443a Correctly set rating during updates
Fixes #14994
2017-05-10 19:21:38 +01:00
Claudio Sanches 75def72ff7 Merge pull request #15009 from woocommerce/fix/14970
is_ip_address should be static
2017-05-10 14:48:45 -03:00
Mike Jolley 3ca4ec7927 is_ip_address should be static
Fixes #14970
2017-05-10 18:43:34 +01:00
Mike Jolley 11222655e5 Fix publish status 2017-05-10 17:27:31 +01:00
Mike Jolley fd3bf05017 Working prototype exporter for products 2017-05-10 17:22:08 +01:00
Tobias Schutter 3695414bcf Added scalar check to order item meta 2017-05-10 11:28:32 +02:00
claudiulodro 5625eaf6fd Docblock 2017-05-09 14:57:24 -07:00
claudiulodro 5d86b2f001 Formatting 2017-05-09 14:55:39 -07:00
claudiulodro 93835f69db New working date query format 2017-05-09 14:49:45 -07:00
claudiulodro c89e389b3f Good progress towards better date queries 2017-05-09 11:37:45 -07:00
Mike Jolley 79efb68554 Undo wrong commit 2017-05-09 19:20:36 +01:00
Mike Jolley 19fb7ac079 Fix hardcoded table name 2017-05-09 19:17:24 +01:00
Mike Jolley 2ed5404d8f Merge pull request #14963 from woocommerce/bekarice-fix/duplicate-stock-reduction-paypal
Bekarice fix/duplicate stock reduction paypal
2017-05-09 18:23:36 +01:00
Mike Jolley d9a8de7c16 Ensure order object exists and pass through to avoid requery 2017-05-09 18:20:42 +01:00
Mike Jolley 275e0661ed Merge branch 'fix/duplicate-stock-reduction-paypal' of https://github.com/bekarice/woocommerce into bekarice-fix/duplicate-stock-reduction-paypal 2017-05-09 18:12:45 +01:00
Mike Jolley 478b12f7e8 has_attributes for variations
Fixes #14959
2017-05-09 16:39:41 +01:00
Rasmus 98833fa9c5 Fix param documentation for WC_Product::is_type 2017-05-09 14:10:27 +02:00
Mike Jolley 8c896c3e2a Merge pull request #14948 from woocommerce/pr/14936
Tweaks to Pr/14936
2017-05-09 11:28:31 +01:00
Beka Rice 1c240bb014 Use order data store for stock checks in case of custom order types 2017-05-08 17:58:01 -04:00
claudiulodro 2cf4fcf8d1 formatting 2017-05-08 13:28:55 -07:00
claudiulodro d4ca99342e Line up items and some tweaks 2017-05-08 12:01:55 -07:00
Claudio Sanches 58fa8542b6 Merge pull request #14933 from woocommerce/fix/14815
Use numeric, not decimal
2017-05-08 15:36:39 -03:00
claudiulodro 88d013bdd5 phpcs recommendations 2017-05-08 11:34:50 -07:00
claudiulodro a1580624f1 Couple tweaks 2017-05-08 11:30:56 -07:00
Mike Jolley e0583d2cd9 Merge branch 'master' into update/14848
# Conflicts:
#	includes/class-wc-structured-data.php
2017-05-08 19:13:12 +01:00
Mike Jolley 61352adbf1 Make query code match and remove unneeded index 2017-05-08 19:09:55 +01:00
Mike Jolley a741f2c7bf Make other queries match the new query in 14936 2017-05-08 19:08:59 +01:00
Mike Jolley 26bc5ab35b Merge branch 'master' into pr/14936 2017-05-08 18:54:54 +01:00
Claudio Sanches e92b93f992 Merge pull request #14937 from woocommerce/fix/gallery-noscript-and-alignment
Gallery fixes
2017-05-08 14:45:41 -03:00
Claudio Sanches 1e2b62a1fe Merge pull request #14935 from woocommerce/fix/14909
Correctly exclude terms in wc_get_related_products
2017-05-08 14:45:06 -03:00
Claudio Sanches d2fb33c7d4 Merge pull request #14934 from woocommerce/fix/14151
Only set reply-to if the email + name is set.
2017-05-08 14:43:39 -03:00
Mike Jolley f4941420b0 Merge pull request #14942 from woocommerce/fix/14917
Properly save order items in legacy REST API
2017-05-08 18:17:34 +01:00
Claudio Sanches ec5df6450c Merge pull request #14931 from woocommerce/fix/14854
Hide offers from structured markup when blank
2017-05-08 14:01:58 -03:00
Claudio Sanches 257594a67c Merge pull request #14945 from woocommerce/pr/14875
Pr/14875
2017-05-08 13:56:12 -03:00
Mike Jolley 3c57508f56 Correct variable name in order structured data
Fixes #14944
2017-05-08 17:46:40 +01:00
Mike Jolley 03a69e1d44 Prepend new item keys with `$items_key` to make them unique.
Fixes #14875
2017-05-08 17:44:10 +01:00
Jason Judge 1156cf9e0d Merge branch 'master' of https://github.com/woocommerce/woocommerce 2017-05-08 17:26:46 +01:00
Jason Judge 0a5d9f9a3a Issue #14900 Make INNER select explit. 2017-05-08 17:25:31 +01:00
Mike Jolley 7d956ca797 If prices are the same for all variations, use price not priceSpecification
Closes #14848
2017-05-08 16:53:27 +01:00
Claudio Sanches 7ba011a3b8 Properly save order items in legacy REST API
Closes #14917
2017-05-08 12:37:33 -03:00
Jason Judge 02fed84dc0 Merge branch 'master' of https://github.com/woocommerce/woocommerce 2017-05-08 15:26:36 +01:00
Mike Jolley e84092b900 wc_attribute_taxonomy_id_by_name should use wc_sanitize_taxonomy_name to prevent breaking special chars
Fixes #14920
2017-05-08 15:01:04 +01:00
Jason Judge 9bd56b312f Issue #14900 Make implicit array cast to boolean an explixit check. 2017-05-08 14:39:08 +01:00
Mike Jolley af949b73ec Add noscript style for gallery
Fixes #14882
2017-05-08 14:35:23 +01:00
Mike Jolley bdd3eba7c4 Use correct full size for variation images
Closes #14866
2017-05-08 14:35:07 +01:00
Mike Jolley b961d6fb74 Correctly exclude terms in wc_get_related_products
Fixes #14909
2017-05-08 14:15:16 +01:00
Mike Jolley a4ad49a8e3 Only set reply-to if the email + name is set.
Closes #14151
2017-05-08 12:50:39 +01:00
Mike Jolley 885e332f5a Use numeric, not decimal
Closes #14815
2017-05-08 12:34:00 +01:00
Mike Jolley c7e9a4c809 Hide offers from structured markup when blank
Fixes #14854
2017-05-08 11:59:33 +01:00
Mike Jolley dd3be1278b Merge pull request #14733 from woocommerce/feature/13646
WC_Object_Query & WC_Order_Query
2017-05-07 14:24:12 +01:00
Jason Judge 3dd5acfd47 Issue #14900 Tidy up code (long lines and commented old lines removed). 2017-05-05 22:44:27 +01:00
Jason Judge 980de0cd52 Issue #14900 Some fixes and variable name changes. 2017-05-05 21:54:04 +01:00
Claudio Sanches c0e71a2238 Merge pull request #14797 from woocommerce/fix/14426-1
Standardize rating HTML in all templates
2017-05-05 17:47:28 -03:00
Claudio Sanches b43fec3bd7 Merge pull request #14910 from woocommerce/fix/ip-address
Check if IP address is valid
2017-05-05 17:46:36 -03:00
Jason Judge 105a77a693 Issue #14900 Restructure _wc_term_recount() query.
I will split the super-long lines, and remove the commented old lines,
but just wanted something functional to test in production for tonight.
2017-05-05 21:38:25 +01:00
Claudio Sanches 95f2033f88 Merge pull request #14895 from franticpsyx/tweak-wc-display-item-meta
[3.0] Tweak meta display value rendering in `wc_display_item_meta`
2017-05-05 17:09:03 -03:00
Claudio Sanches d39e317182 Merge pull request #14891 from woocommerce/zipcode-validation-FR
Add zipcode validation for France
2017-05-05 17:07:42 -03:00
Claudio Sanches 08db8cebec Check if IP address is valid 2017-05-05 16:58:08 -03:00