Commit Graph

14161 Commits

Author SHA1 Message Date
Claudio Sanches 45dfb7d015
Merge pull request #18427 from woocommerce/fix/18426
Correct bulk edit price formatting.
2018-01-11 12:31:45 -02:00
Claudio Sanches 4586eadcd7
Merge pull request #18420 from tiagohillebrandt/master
Use table format as default.
2018-01-11 12:29:29 -02:00
Mikalai Okun 2e2e5d60e5
Updated strval() to round() 2018-01-11 08:49:54 -05:00
Mike Jolley fbbbc7a8df
Merge pull request #18406 from woocommerce/update/themenotice
Remove unsupported theme notice
2018-01-11 13:46:09 +00:00
Mike Jolley 7f626926b8
Merge pull request #18417 from liquidweb/fix/get-customer-last-order
Rewrite wc_get_customer_last_order() to leverage the customer data store
2018-01-11 13:45:11 +00:00
Mike Jolley 405c2614a8 Use new methods 2018-01-11 12:54:48 +00:00
Mike Jolley c7a3fd266c phpcs 2018-01-11 12:53:47 +00:00
Mike Jolley 16870a30e7 phpcs 2018-01-11 12:32:58 +00:00
Mike Jolley 7a50512e16 Structured data 2018-01-11 12:29:12 +00:00
Mike Jolley f1e0d4929b Implement get_edit_order_url method. 2018-01-11 12:04:39 +00:00
Mike Jolley be8bc99796
Merge pull request #18421 from shivapoudel/notice-logic
Notice logic
2018-01-11 11:32:58 +00:00
Mike Jolley c1fc8c241a Correct bulk edit price formatting. 2018-01-11 11:21:37 +00:00
Mikalai Okun cd8c09769d
Workaround for precision on floating values. 2018-01-11 01:38:36 -05:00
Shiva Poudel 7e731fa4c6 PHPCS fixes 2018-01-11 10:39:30 +05:45
Shiva Poudel 4e3317bbe6 Fix - wc_notice_count logic cont... 2018-01-11 10:32:41 +05:45
Tiago Hillebrandt 84aeb00754 Use table format as default. 2018-01-11 02:41:41 -02:00
Tiago Hillebrandt 8c4a0dfefe Use table format as default. 2018-01-10 22:32:40 -02:00
Manos Psychogyiopoulos 009a21af15 Fix exception handling in v2 update_additional_fields_for_object REST API calls 2018-01-10 20:46:02 +00:00
Steve Grunwell 493298504d Rewrite wc_get_customer_last_order() to leverage the customer data store.
The wc_get_customer_last_order() function (used by the v1 API) was performing a hard-coded SQL query against the postmeta table, regardless of the data store used by the WC_Customer class. This commit effectively makes the function act as a wrapper around WC_Customer::get_last_order().
2018-01-10 18:39:35 +00:00
claudiulodro a3d0d71cdf Deprecate theme notice 2018-01-10 09:52:52 -08:00
claudiulodro d87497962b Revert "Remove unsupported theme notice"
This reverts commit aad3792817.
2018-01-10 09:45:16 -08:00
Claudiu Lodromanean a94ef8dcdc
Merge pull request #18398 from woocommerce/fix/18360
Use intval for download limit and expiry
2018-01-10 09:42:15 -08:00
Mike Jolley fd6002511e
Merge pull request #18404 from woocommerce/fix/18362
Update billing if account form changes.
2018-01-10 17:29:58 +00:00
Mike Jolley 4ffff150b5 fix while loop 2018-01-10 17:28:26 +00:00
Claudio Sanches 8a7066e319
Merge pull request #18414 from woocommerce/fix/18412
Fix wc_notice_count logic and add test
2018-01-10 11:39:08 -02:00
Claudio Sanches 501f03e306
Merge pull request #18411 from MechielCouvaras/patch-1
Update Klarna copy in Setup Wizard
2018-01-10 11:11:41 -02:00
Claudio Sanches 76f66fdbab
Merge pull request #18413 from woocommerce/fix/18377
Rest API - Orders should be created for users who exist on the site only.
2018-01-10 11:10:24 -02:00
Mike Jolley 97673e2de8 Fix wc_notice_count logic and add test 2018-01-10 12:43:48 +00:00
Mike Jolley ee6794fb0c Orders should be created for users who exist on the site only. 2018-01-10 12:32:58 +00:00
Mechiel Couvaras 294b2cca74
Update class-wc-admin-setup-wizard.php
Update to Klarna copy as per their specification.
2018-01-10 12:42:47 +02:00
Shiva Poudel 8232d0ba74 Storefront theme as official theme 2018-01-10 15:30:03 +05:45
claudiulodro aad3792817 Remove unsupported theme notice 2018-01-09 13:51:12 -08:00
Mike Jolley 2ca2cc0f6c Update billing if account form changes. 2018-01-09 17:50:43 +00:00
Mike Jolley 2b2b73b4b7 Pass through zoom options 2018-01-09 15:44:54 +00:00
Mike Jolley fd2b830a9f Use intval for download limit and expiry 2018-01-09 10:56:57 +00:00
Mike Jolley d13dfa65c6 Remove unused code
Closes #18390
2018-01-09 09:33:16 +00:00
claudiulodro 4d370309be Change transient name 2018-01-08 13:09:50 -08:00
Claudiu Lodromanean 8f878a30ed
Merge pull request #18383 from woocommerce/update/18364
Customizer visual feedback for columns and rows
2018-01-08 12:02:43 -08:00
Shiva Poudel 3c659a44fc Include background process library (#18380)
* Include background process library

* PHPCS fixes
2018-01-08 18:57:50 +00:00
Mike Jolley 371f504964 Helpers for theme support vars and error messages. 2018-01-08 18:48:57 +00:00
claudiulodro 00372e9bb0 Remove videos from help sections 2018-01-08 10:48:25 -08:00
claudiulodro a0be4eace9 Merge remote-tracking branch 'origin/square-3.3' into HEAD 2018-01-05 11:44:45 -08:00
Paul Maiorana 00da05c437
Update description for Square per their feedback. 2018-01-05 14:31:37 -05:00
Claudiu Lodromanean 1ae74a56f8
Merge pull request #18372 from woocommerce/fix/17996
Round correctly when removing taxes from prices.
2018-01-05 11:14:30 -08:00
Claudiu Lodromanean 70294e977b
Merge pull request #18371 from woocommerce/fix/18314
Preserve seconds when saving order date.
2018-01-05 11:09:22 -08:00
Claudiu Lodromanean fe4727b593
Merge pull request #18367 from woocommerce/fix/18357
Allow quantities less than 1, but not 0.
2018-01-05 10:55:05 -08:00
claudiulodro b5271064c2 Resolve conflicts 2018-01-05 10:47:27 -08:00
Mike Jolley 856528d529
Merge pull request #18277 from woocommerce/fix/18276
Change sanitize function in product sales report filter box
2018-01-05 14:59:40 +00:00
Mike Jolley a44e4f64ac Round correctly when removing taxes from prices. 2018-01-05 14:56:33 +00:00
Mike Jolley ae723d83fd Preserve seconds when saving order date. 2018-01-05 14:44:36 +00:00
Mike Jolley 2c915ba961 Allow quantities less than 1, but not 0. 2018-01-05 12:48:24 +00:00
Mike Jolley 14afff129c Add appropriate column widths and fix up price method for consistentcy. 2018-01-05 12:23:08 +00:00
Claudiu Lodromanean ae9a98b0a0
Merge pull request #18356 from woocommerce/fix/archive-links
Post types with no archives should not show in breadcrumb.
2018-01-04 08:17:30 -08:00
Mike Jolley 613adb0c07 Post types with no archives should not show in breadcrumb. 2018-01-04 12:09:11 +00:00
claudiulodro cdad70a6b1 Safety first 2018-01-03 13:40:51 -08:00
claudiulodro afdc737ec5 Ajax add to cart button shortcode fix for variations 2018-01-03 13:38:06 -08:00
Claudiu Lodromanean 06a4bfe2af
Merge pull request #18347 from woocommerce/update/remove-unused-variable
Remove two unused variables
2018-01-03 11:13:38 -08:00
claudiulodro d2618c2330 Merge remote-tracking branch 'origin/master' into HEAD 2018-01-03 10:13:23 -08:00
claudiulodro 646caf5753 Tweaks for variation reports 2018-01-03 10:09:53 -08:00
Rodrigo Primo aad2c83994 Remove unused variables
This commit removes two unused variables from WC_Product_Data_Store_CPT class.
2018-01-03 16:00:28 -02:00
Rodrigo Primo 22f1e549ef Manually fixes remaining coding standard violations 2018-01-03 15:57:33 -02:00
Claudiu Lodromanean 14c2180928
Merge pull request #18279 from woocommerce/fix/setup-wizard-service-style-tweak
Setup wizard: adjust styling for service child elements
2018-01-03 09:38:28 -08:00
Rodrigo Primo a2b8e38a61 Fix coding standards violations automatically using phpcbf 2018-01-03 15:27:48 -02:00
Claudiu Lodromanean e15f267270
Merge pull request #18335 from woocommerce/fix/18328
Product downloads - API and download check fixes
2018-01-03 09:14:26 -08:00
Paul Dechov e03f0c201f Align service name logos to top, and adjust padding 2018-01-03 10:43:26 -05:00
Mike Jolley 5eb4ed9b64
Merge pull request #18307 from unfulvio/issue-18223-transient
[#18223] Store related posts query arguments in transient
2018-01-03 11:47:15 +00:00
Mike Jolley 800b4feba1
Merge pull request #18252 from shivapoudel/frontend-session
Only load session handler class on frontend not during cron
2018-01-03 11:19:23 +00:00
Mike Jolley effbf87e22 API should generate or set file ID when setting downloads. Closes #18330 2018-01-03 11:02:38 +00:00
Mike Jolley 3459f83a9d When serving downloads, ensure order/key are set and valid. Fixes #18328 2018-01-03 10:55:57 +00:00
Mike Jolley e1a82a4127 Add nonce to both panels. Closes #18333 2018-01-03 10:37:07 +00:00
Claudiu Lodromanean 373ff64ff8
Merge pull request #18315 from alexminza/master
Fixed Moldova states, added Moldova information for the installer
2018-01-02 14:31:30 -08:00
Claudiu Lodromanean 09f9d86786
Merge pull request #18327 from woocommerce/fix/default-columns-isset
Fix default columns isset check
2018-01-02 11:51:00 -08:00
Claudiu Lodromanean e17dcdf81f
Merge pull request #18297 from macbookandrew/improve-blank-state
add button for creating coupons to coupon blank state
2018-01-02 11:45:28 -08:00
Tiago Noronha ece1963e66 Fix default columns isset check. 2018-01-02 19:27:28 +00:00
Andrew Minion 785641ef3c update link to match rest of codebase 2018-01-02 14:05:47 -05:00
Claudiu Lodromanean de71c92fa0
Merge pull request #18278 from woocommerce/fix/setup-wizard-ppec-api-subject-set-when-unchecked
Setup wizard: don't set PPEC "API Subject" when WCS rerouting is unchecked
2018-01-02 10:39:35 -08:00
Claudiu Lodromanean 6db59dbc91
Merge pull request #18283 from WPprodigy/fix-set-orderby-default
Set default catalog_orderby in customizer
2018-01-02 10:34:18 -08:00
Claudiu Lodromanean 9937edc292
Merge pull request #18285 from WPprodigy/add-filter-woocommerce_loop_product_link
Add woocommerce_loop_product_link filter
2018-01-02 10:11:18 -08:00
Claudiu Lodromanean c52563f558
Merge pull request #18319 from pathurs/patch-1
Geolocation: Remove port from string before checking IP
2018-01-02 10:06:49 -08:00
Claudiu Lodromanean 8d78287da4
Merge pull request #18284 from WPprodigy/update-docs-for-layerednav-function
Update docs.
2018-01-02 09:33:27 -08:00
Claudiu Lodromanean 5382134041
Merge pull request #18306 from unfulvio/issue-18223-filter-related-products
[#18223] Filter results for related products
2018-01-02 08:58:23 -08:00
Claudiu Lodromanean f56fff18d9
Merge pull request #18322 from woocommerce/fix/importer-file-names
Importer file names
2018-01-02 08:10:20 -08:00
Mike Jolley 4e996ce268 Check for mb_detect_encoding support 2018-01-02 13:55:11 +00:00
Mike Jolley 5aee9f973c Append timestamp to filename 2018-01-02 13:29:23 +00:00
Mike Jolley 46c51bb3a6 Allow filename to be set from javascript 2018-01-02 13:16:43 +00:00
Mike Jolley 1a65aed0d9 Merge branch 'pr/18272' 2018-01-02 11:57:45 +00:00
Mike Jolley da281d21ab Keep product check 2018-01-02 11:57:29 +00:00
Mike Jolley 3defa83a81 Missing spaces between city and state.
Closes #18305
2018-01-02 11:45:56 +00:00
Pathurs 119d3485b1
Remove port from string before checking IP
Fix a bug where if `$_['HTTP_X_FORWARDED_FOR']` contains a port, an `rest_is_ip_address()` returns `bool(false)`.

WooCommerce Version: 3.1.2

Observed results of functions and variables:
```
WC_Geolocation::get_ip_address())	                                  string(0) ""
$_SERVER['X-Real-IP']	                                              string(7) "Not set"
$_SERVER['HTTP_X_FORWARDED_FOR']	                                  string(18) "203.41.99.98:50986"
trim( current( explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) )	  string(18) "203.41.99.98:50986"
$_SERVER['REMOTE_ADDR']	                                              string(12) "203.41.99.98"
```

Old result of calling `WC_Geolocation::geolocate_ip()`:
```array(2) { ["country"]=> string(0) "" ["state"]=> string(0) "" }```

New result of calling `WC_Geolocation::geolocate_ip()`:
```array(2) { ["country"]=> string(2) "AU" ["state"]=> string(0) "" }```
2018-01-02 11:54:26 +11:00
Alexander Minza 2307febfa1 Fixed Moldova states 2017-12-30 14:34:12 +02:00
Fulvio Notarstefano b8beb703ef [#18223] Filter results for related products 2017-12-29 12:18:50 +08:00
Fulvio Notarstefano 3045e01f4e [#18223] Store related posts query arguments in transient 2017-12-29 12:12:26 +08:00
Andrew Minion 40d9efc4b8 add button for creating coupons to coupon blank state
Makes it more user-friendly for someone unfamiliar with WordPress/WooCommerce, and even for those who are familiar and don’t immediately see the typical “Add Coupon” button in the top left corner by the header.
2017-12-27 11:53:20 -05:00
Caleb Burks 0192fb9ef0 Add woocommerce_loop_product_link filter 2017-12-25 02:20:40 -06:00
Caleb Burks 2b4a756438 Update docs. 2017-12-25 02:16:10 -06:00
Caleb Burks 54fd171f04 Set default catalog_orderby in customizer 2017-12-24 23:39:44 -06:00
Paul Dechov a87183503f Fix api_subject option being set even when reroute_requests unchecked 2017-12-22 14:57:50 -05:00
Claudiu Lodromanean eb60a17818
Merge pull request #18265 from Miller-Media/millermedia/scheduled_sales_actions
Added actions before & after scheduled sales initiation and completion
2017-12-22 10:23:02 -08:00
Matt Miller 69d9f1f6ff Updated spacing 2017-12-22 09:58:05 -08:00
claudiulodro 611ca58d09 Change sanitize function 2017-12-22 09:46:57 -08:00