Brent Shepherd
89e932c338
Fix shipping tax when calling calculate_shipping()
...
The $shipping_taxes is a multidimensional array so array_sum() does not
correctly sum the values. The $merged_taxes is a single level array with
all other taxes set, so array_sum() can be safely used on it.
2017-09-21 16:48:32 -07:00
Matt Miller
c87762177b
Add check for 0 as a string
2017-09-21 16:21:49 -07:00
claudiulodro
ee30de89a8
Shuffle things around to prevent errors and for better performance
2017-09-21 14:06:44 -07:00
claudiulodro
279ac6814c
Move clipboards off zeroclipboard
2017-09-21 13:09:36 -07:00
Claudiu Lodromanean
abc43c473e
Merge pull request #16877 from nicoladj77/patch-1
...
Check for nonce when Cancelling Order.
2017-09-21 10:27:12 -07:00
Claudiu Lodromanean
e713b5beb3
Merge pull request #16869 from woocommerce/fix/16861
...
Fix legacy access to array props (fees, taxes, coupon totals + taxes)
2017-09-21 09:47:29 -07:00
claudiulodro
d5981b34e8
Remove redundant rendundancy in deprecation notices
2017-09-21 09:45:38 -07:00
Matt Miller
a871d36380
Added wp_unslash() to address fields on the checkout page ( #16874 )
...
* Added wp_unslash() to address fields on the checkout page
* Cleaned up code indentation
* Added wp_unslash() function on remaining POST address fields on checkout
2017-09-21 17:37:27 +01:00
Claudiu Lodromanean
3063825c4d
Merge pull request #16867 from woocommerce/fix/16853
...
Add legacy shipping conditon
2017-09-21 09:24:14 -07:00
Claudiu Lodromanean
5e24b86d61
Merge pull request #16866 from woocommerce/fix/16840
...
Add subtotal to min and max spend code
2017-09-21 09:08:34 -07:00
Claudiu Lodromanean
3440460127
Merge pull request #16865 from woocommerce/fix/16862
...
remove spam field
2017-09-21 09:06:08 -07:00
Nicola Peluchetti
74bea6ec7d
Check for nonce when Cancelling Order.
2017-09-21 03:08:06 +03:00
Brent Shepherd
470c5f7a1d
Use __FUNCTION__ for filter hook name
...
To avoid including the WC_Cart class name and a double colon.
Example hook from WC_Cart::get_total():
* Before this PR: woocommerce_cart_WC_Cart::get_total
* After this PR: woocommerce_cart_get_total
2017-09-20 14:45:37 -07:00
Mike Jolley
5151415eec
Merge branch 'discounts-class-fixes-and-tests'
2017-09-20 18:44:18 +01:00
Mike Jolley
9c63da78c4
Fixed limit to x by avoiding changing the original item (uses clone)
2017-09-20 18:42:10 +01:00
Mike Jolley
21dfde842a
Revised coupon sort order to not rely on IDs which can differ between cart and tests
...
Also edited test to match
2017-09-20 18:41:48 +01:00
Shakeeb Sadikeen
da6a37c0d1
fixed : custom tab with no class error
...
when class is not passed with custom tab. echo's undefined index error with classes fixed
2017-09-20 22:14:58 +05:30
Mike Jolley
c0542be4ff
Merge branch 'pr/16841'
2017-09-20 15:47:37 +01:00
Mike Jolley
3d9902c4d5
Page template should have higher priority.
2017-09-20 15:47:30 +01:00
Mike Jolley
eb79566985
Fix legacy access to array props (fees, taxes, coupon totals + taxes)
...
Closes #16861
2017-09-20 15:39:05 +01:00
Mike Jolley
f1f3a6fbc0
Add legacy shipping conditon
...
Closes #16853
2017-09-20 14:11:47 +01:00
Mike Jolley
9e1bd3c54d
phpcs
2017-09-20 14:03:06 +01:00
Mike Jolley
2c70444123
Add subtotal to min and max spend code
...
Closes #16840
2017-09-20 13:51:41 +01:00
Mike Jolley
6aea8d0718
Wrap conditonal in add to cart shortcode string output
...
Closes #16856
2017-09-20 13:18:16 +01:00
Mike Jolley
d52677b0ac
Fix like query escape in background processing
...
Closes #16846
2017-09-20 12:46:27 +01:00
Mike Jolley
c91cd01379
remove spam field
...
Closes #16862
2017-09-20 11:51:33 +01:00
Mike Jolley
04ba489628
Merge pull request #16835 from thenbrent/tweak_internal_meta_message
...
Tweak internal meta notice
2017-09-20 03:39:56 -07:00
Mike Jolley
de1eceb95e
Merge pull request #16843 from woocommerce/fix/16800
...
Make importer columns case-insensitive
2017-09-20 03:39:27 -07:00
claudiulodro
133b664cc3
Only set prices if set in request
2017-09-17 11:44:00 -07:00
claudiulodro
9d8e308a78
Make importer columns case-insensitive
2017-09-17 10:18:03 -07:00
Claudiu Lodromanean
f9120672bd
Merge pull request #16767 from hjoelr/bugfix-coupon-cache
...
Bugfix: coupon object cache not being cleared upon deletion
2017-09-17 09:45:45 -07:00
Claudiu Lodromanean
2bf8a742f2
Merge pull request #16838 from woocommerce/fix/16834
...
Init price slider after using customizer
2017-09-17 09:24:07 -07:00
Emran Ahmed
066a857d19
Supporting Custom Post Type Template
...
Supporting Custom Post Type Template for Single Product.
2017-09-17 02:22:05 +06:00
Mike Jolley
d125739742
fix init
2017-09-16 12:37:29 -07:00
Claudiu Lodromanean
75279ddfbc
Merge pull request #16824 from woocommerce/fix/16778
...
Ensure we have arrays in find/replace
2017-09-16 12:36:10 -07:00
Mike Jolley
2bbeab247c
Merge pull request #16822 from woocommerce/fix-16821
...
Remove extra space in tax state code
2017-09-15 16:43:41 -07:00
Mike Jolley
a62bb30200
Merge pull request #16803 from iamdharmesh/master
...
Apply filter on product csv importer steps.
2017-09-15 16:39:20 -07:00
Mike Jolley
8973a0cdad
Merge pull request #16797 from Umangvaghela/add-esc_html
...
add esc_html in class-wc-checkout.php file
2017-09-15 16:37:50 -07:00
Brent Shepherd
81b9160973
Add offending key to error message
2017-09-15 15:58:34 -07:00
Brent Shepherd
f404affff4
Tweak internal meta notice
...
To remove ambiguity with accessing properties via $object->meta_key
syntax, which was deprecated with WC 3.0.
2017-09-15 15:48:53 -07:00
Mike Jolley
d3da954133
Move cart totals setter for 3.1 compat
...
Closes #16794
2017-09-15 11:15:50 -07:00
Umangvaghela
e38d01bcfa
Resolve Issue
2017-09-15 10:54:30 -07:00
Mike Jolley
11d6b4e7d8
Ensure we have arrays in find/replace
...
Closes #16778
2017-09-14 17:37:23 -07:00
corsonr
e9cc8242ce
Remove extra space in tax state code
...
Fixes #16821
Spaces shouldn’t allowed in tax state code, only 2 letters are required.
2017-09-14 15:50:25 -07:00
Mike Jolley
bac98218f3
Merge pull request #16782 from hjoelr/bugfix-discounts-wrong-var
...
Bugfix: Discounts not using the right variable
2017-09-14 11:32:27 -07:00
Mike Jolley
f9719c79eb
Merge pull request #16795 from hjoelr/bugfix/freeshipping-coupon
...
Bugfix: Resolve 'non-numeric value encountered' error in PHP 7.1 when freeshipping coupon used
2017-09-14 11:31:17 -07:00
Dharmesh Patel
d877ab31c5
Apply filter on product csv importer steps.
2017-09-13 23:56:15 +05:30
Umangvaghela
37edbbedf5
add esc_html in class-wc-checkout.php file
2017-09-13 13:01:59 +05:30
Joel Rowley
458a6c87c7
Resolve 'non-numeric value encountered' error in PHP 7.1 when freeshipping coupon used
2017-09-12 21:33:43 -04:00
Joel Rowley
bb5cb38832
Bugfix: Discounts not using the right variable
2017-09-11 15:56:49 -04:00
Joel Rowley
521bde2fba
Bugfix: coupon object cache not being cleared upon deletion
2017-09-09 22:47:25 -04:00
nils-fredrik@maksimer.no
39bde22e56
Apply filter to posted data in checkout.
2017-09-08 21:34:55 +02:00
Claudio Sanches
419244051e
Merge pull request #16743 from woocommerce/update/rest-base-request-uri
...
API - use current scheme
2017-09-08 14:49:23 -03:00
Claudiu Lodromanean
213bfabb24
Merge pull request #16763 from woocommerce/fix/16757
...
Update shipping code to see if full address has been entered before showing no shipping notice
2017-09-08 09:43:23 -07:00
Claudiu Lodromanean
fcb7da5599
Merge pull request #16760 from woocommerce/update/16746
...
Handle external URLs for images
2017-09-08 09:33:37 -07:00
Mike Jolley
a7b2ae8661
Update shipping code to see if full address has been entered before showing no shipping notice
...
Fixes #16757
2017-09-08 14:54:15 +01:00
Michal Zuber
21c25f326b
Remove dupe check
...
Already checked at 0337293e39/includes/abstracts/abstract-wc-product.php (L1593)
2017-09-08 14:25:02 +02:00
Mike Jolley
d09d7d1358
wc_get_relative_url/wc_is_external_resource helpers
2017-09-08 12:20:03 +01:00
Mike Jolley
0337293e39
Merge pull request #16753 from hjoelr/bugfix-calc-disc-sequentially
...
Bugfix: woocommerce_calc_discounts_sequentially checks were doing the opposite of the WC setting
2017-09-08 11:44:43 +01:00
Mike Jolley
1f1903bcf4
Merge pull request #16752 from hjoelr/bugfix-double-precision
...
Bugfix: wc_remove_number_precision() indirectly called twice from get_discount()
2017-09-08 10:57:09 +01:00
Joel Rowley
3b166b6a44
Bugfix: woocommerce_calc_discounts_sequentially checks were doing the opposite of the WC setting
2017-09-07 21:43:27 -04:00
Joel Rowley
e6530a3555
Bugfix: wc_remove_number_precision() indirectly called twice from get_discount()
2017-09-07 21:34:58 -04:00
claudiulodro
ccade24ce5
Only set some fields on new orders
2017-09-07 13:50:47 -07:00
Mike Jolley
ee3ea1b739
Only make http resources relative - https can be left alone.
...
Closes #16737
2017-09-07 16:55:29 +01:00
Mike Jolley
b0cb64b93d
API - use current scheme
...
This caused issues for me locally forcing http to test requests. Ok to
change @claudiosanches ?
2017-09-07 15:32:29 +01:00
Mike Jolley
a8a33c8f0d
Merge pull request #16717 from woocommerce/refactore/wc_maybe_define_constant
...
Use wc_maybe_define_constant() in all places
2017-09-07 12:16:13 +01:00
Mike Jolley
fe6608f2b7
Merge pull request #16738 from woocommerce/fix/16733
...
Support numeric coupon errors in is_coupon_valid
2017-09-07 12:15:51 +01:00
Mike Jolley
199eb78304
Support numeric coupon errors in is_coupon_valid
2017-09-07 11:14:05 +01:00
Boro Sitnikovski
d0db4c6934
Reintroduce find and replace variables
2017-09-07 09:58:54 +02:00
Claudio Sanches
f6375b64d7
Removed old test
2017-09-06 20:25:41 -03:00
Claudio Sanches
4e9cf1c598
Restored WooCommerce->define access to private
2017-09-06 14:47:35 -03:00
Claudio Sanches
f8f9c7b04c
Merge branch 'master' into add_to_cart_variation
2017-09-06 14:33:57 -03:00
Claudiu Lodromanean
1d165009d0
Merge pull request #16711 from woocommerce/update/16703
...
Auto update db filter
2017-09-06 09:32:16 -07:00
Claudio Sanches
a785824d64
Merge pull request #16726 from woocommerce/fix/variation-add-to-cart-support
...
Variation ID add to cart support
2017-09-06 13:16:46 -03:00
Mike Jolley
7fefc5f5b5
Revise logic to deal with variation IDs
2017-09-06 17:05:21 +01:00
Mike Jolley
6fee915fdb
phpcs
2017-09-06 16:47:48 +01:00
Claudio Sanches
45debc0b47
Merge pull request #16722 from woocommerce/fix/16720
...
Add option to disable validation when applying coupons
2017-09-06 11:37:59 -03:00
Mike Jolley
90f227da69
Shortcode rand sorting
2017-09-06 14:36:14 +01:00
Mike Jolley
6ff78e29fe
Fix conditonal on cart redirect
...
Closes #16724
2017-09-06 13:44:30 +01:00
Mike Jolley
d08bf4b489
Add option to disable validation when applying coupons
...
Closes #16720
2017-09-06 11:26:34 +01:00
Mike Jolley
2aa735a334
Merge pull request #16709 from woocommerce/fix/16705
...
Legacy find/replace handling for emails.
2017-09-06 10:57:17 +01:00
Mike Jolley
10a873a808
Remove find/replace definition
2017-09-06 10:52:45 +01:00
Mike Jolley
f041155f8a
Merge pull request #16713 from woocommerce/fix/php-notice-on-item-order
...
Fix PHP notice on item order
2017-09-06 10:51:37 +01:00
Mike Jolley
9c5765b625
This should be off by default
2017-09-06 10:49:03 +01:00
Mike Jolley
5e052a27c4
Merge pull request #16718 from woocommerce/fix/16678
...
Preserve the behavior of wc_price filter
2017-09-06 10:41:15 +01:00
Mike Jolley
e0a01d7018
syntax error
2017-09-06 10:40:40 +01:00
Brian Henry
6cf9f45978
Always apply woocommerce_countries_allowed_countries filter
...
'woocommerce_countries_allowed_countries' filter previously was not applied when 'all' was the selected option.
2017-09-05 16:37:29 -07:00
Claudio Sanches
97498ba975
Preserve the behavior of wc_price filter
...
The default behavior as been changed after #16678
Current 3rd party integrations should already be expecting the price as a
formatted string.
Closes #16678
2017-09-05 17:38:17 -03:00
Claudio Sanches
a13158a75a
Apply wc_maybe_define_constant() in all places
2017-09-05 16:52:39 -03:00
Claudio Sanches
f98aeb5b91
Use WC()->define() into wc_maybe_define_constant()
2017-09-05 16:51:09 -03:00
Boro Sitnikovski
5224eab917
Update PR with new logic
2017-09-05 19:56:56 +02:00
James Golovich
562912a27a
Allow variable products to be added via simple HTTP Request
...
Matches existing behavior of simple products that allow adding via a URL link.
2017-09-05 09:12:53 -07:00
Gabor Javorszky
d3ade84852
Add cart object to filters with quantity updates
...
No issue.
Other filters (remove cart item, restore cart item) have the cart object passed as well. These ones should be too.
2017-09-05 16:40:44 +01:00
Boro Sitnikovski
85e3cee634
Use prop getters/setters instead
2017-09-05 15:17:16 +02:00
Boro Sitnikovski
ff9316b093
Fix PHP notice on item order
2017-09-05 14:06:13 +02:00
Mike Jolley
990e33dd07
Remove debug
2017-09-05 11:56:02 +01:00
Mike Jolley
a4a9badbb9
Refactor and introduce `woocommerce_enable_auto_update_db`
2017-09-05 11:54:17 +01:00
Mike Jolley
5c5a8f4e8e
Helper functions
2017-09-05 11:54:04 +01:00
Mike Jolley
cbe4e26c97
Legacy find/replace handling
...
Closes #16705
2017-09-05 10:15:32 +01:00
Mike Jolley
16dd43c9dc
Blockui
2017-09-04 18:11:51 +01:00
Mike Jolley
1fb572f9ee
Remove columns
2017-09-04 18:05:34 +01:00
Mike Jolley
2a71a66fc9
Order screen refinements and preview window
2017-09-04 17:42:31 +01:00
Mike Jolley
056720d3e7
Search within current terms to reduce meta query
...
Closes #16591
2017-09-04 12:57:28 +01:00
Mike Jolley
671a4d7b21
Merge pull request #16687 from pmgarman/patch-2
...
Match the database sizes up with the right labels
2017-09-04 10:17:49 +01:00
Mike Jolley
42e19f1bb8
Merge pull request #16678 from Drivingralle/patch-3
...
Pass unformated price into filter to allow better overwrite
2017-09-04 10:15:51 +01:00
Patrick Garman
05c27f0f70
Match the database sizes up with the right labels
2017-09-02 18:56:29 -05:00
Claudio Sanches
a37741b842
Merge pull request #16682 from woocommerce/fix/16681
...
Remove featured image on empty image array
2017-09-01 17:42:38 -03:00
claudiulodro
8c523ee0b9
Remove featured image on empty image array
2017-09-01 11:14:48 -07:00
Anton Timmermans
f73c198404
Cache currencies for performance
2017-09-01 18:30:08 +02:00
Ralf Wiechers
245c354209
Pass unformated price into filter to allow better overwrite
...
Attempt to fix #16674 .
Tried to add som PhpDocs to make
2017-09-01 17:50:06 +02:00
Mike Jolley
845b7a570e
Merge remote-tracking branch 'origin/master'
2017-09-01 11:02:20 +01:00
Mike Jolley
91f1f63100
Code standards
2017-09-01 11:02:11 +01:00
Mike Jolley
e4d113e755
Merge pull request #16666 from woocommerce/fix/16654
...
Prevent reordering variable products if no variation set.
2017-09-01 10:25:02 +01:00
Boro Sitnikovski
d934bf89e1
Use proper variable scoping on class level instead of function level
2017-09-01 10:46:29 +02:00
james
1820c6a99d
Fix Issue #16663 . Moved meta creation to `prepare_object_for_database`.
2017-08-31 18:17:14 +01:00
claudiulodro
b37f7c8c23
Prevent reordering variable products if no variation set.
2017-08-31 09:54:14 -07:00
Claudiu Lodromanean
29c99d629c
Merge pull request #16662 from woocommerce/fix/16659
...
Better handling for legacy email find/replace filters
2017-08-31 09:07:22 -07:00
james
ce39e3aaa8
Fix Issue #16663 .
2017-08-31 14:01:24 +01:00
Mike Jolley
1a8a16c79c
Merge pull request #16661 from Umangvaghela/fixissue
...
fix issue
2017-08-31 12:22:15 +01:00
Mike Jolley
21bd0e5397
Better handling for legacy email find/replace filters
...
Closes #16659
2017-08-31 12:21:02 +01:00
Umangvaghela
16e51760ec
fix #16656
2017-08-31 16:34:17 +05:30
Mike Jolley
1e9e6c461f
Unit test for #16653
2017-08-31 11:42:19 +01:00
Claudio Sanches
a2d0069e2f
Fixed docblocks and conditionals
2017-08-30 19:30:46 -03:00
Claudio Sanches
3d3f570746
Reduced number of conditionals in WC_Shortcode_Products class
2017-08-30 18:18:15 -03:00
Mike Jolley
d58a09e76a
Merge branch 'master' into helper-updates
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
2017-08-30 21:22:48 +01:00
Konstantin Kovshenin
4a5d0c3ec3
Helper: Clean up unused code.
2017-08-30 18:39:45 +03:00
Mike Jolley
2da895c68d
Update price if product type changes
...
Fixes #16650
2017-08-30 16:23:57 +01:00
Konstantin Kovshenin
64467a0925
Helper: Cache a zero updates count if update data is not available or empty.
2017-08-30 17:46:33 +03:00
Mike Jolley
fce69c3dad
Fix status page padding
2017-08-30 15:39:54 +01:00
Konstantin Kovshenin
ebb5bfc521
Helper: Better markup for filters output.
2017-08-30 17:39:02 +03:00
Konstantin Kovshenin
b5f1692ff3
Helper: Unify update-count markup into a single helper method.
2017-08-30 17:19:06 +03:00
Konstantin Kovshenin
a9619da513
Merge branch 'helper-updates' of github.com:woocommerce/woocommerce into helper-updates
2017-08-30 17:12:36 +03:00
Konstantin Kovshenin
a59ce3b6b1
Helper: Change woo- prefix to woocommerce-com-.
2017-08-30 17:07:37 +03:00
Mike Jolley
8ffbd331e0
Merge pull request #16644 from woocommerce/feature/15979-4
...
Allow select visibility in product shortcodes
2017-08-30 12:16:46 +01:00
Mike Jolley
b0a9cd935e
Merge pull request #16640 from leewillis77/feature/plugin-compat-on-status-report
...
Flag untested extensions on the status report
2017-08-30 11:41:02 +01:00
Lee Willis
e3be6a12dd
Check all plugins for presence in the untested plugins list, not just WooCommerce ones
2017-08-30 10:25:01 +01:00
Lee Willis
5400bbaf6d
Use array_key_exists() instead of in_array()
2017-08-30 10:16:49 +01:00
Claudio Sanches
6dc58b4f6a
Allow select visibility in product shortcodes
...
Ref #15979
2017-08-29 18:29:29 -03:00
Lee Willis
cec5fef23c
Flag untested extensions on the status report
2017-08-29 17:15:16 +01:00
claudiulodro
1fc98e3ba7
Query objects can also return objects
2017-08-29 08:36:50 -07:00
Claudiu Lodromanean
bee9a35e72
Merge pull request #16593 from woocommerce/update/search-order-16565
...
Show sorting on search results but default to relevance
2017-08-29 07:48:26 -07:00
Mike Jolley
7e76b87039
Merge pull request #16596 from woocommerce/fix/16594
...
Manual coupons support
2017-08-29 13:46:13 +01:00
Mike Jolley
2fbecb20ad
Merge pull request #16633 from woocommerce/fix/cart-index
...
Fall back to defaults if not set in cart
2017-08-29 12:45:21 +01:00
Mike Jolley
fe847630b2
Tests when tax is not enabled
2017-08-29 12:38:35 +01:00
Mike Jolley
c29b9acb5b
Fix variable name
...
Closes #16636
2017-08-29 11:19:03 +01:00
Mike Jolley
8703481742
Merge pull request #16601 from ethitter/add/disable-mkdir
...
Allow install-related directory creation to be bypassed
2017-08-29 11:12:24 +01:00
José Marques
09ddc43171
Helper: removes brackets from update counter indicator
2017-08-29 10:52:57 +01:00
José Marques
9cc3840de4
Helper: convert filter markup into a list
2017-08-29 10:11:47 +01:00
Mike Jolley
e0b4d59bb6
Merge pull request #16566 from franticpsyx/reload-order-items-on-add
...
Reload items table after adding line item manually
2017-08-29 10:08:29 +01:00
Mike Jolley
144520db25
Merge pull request #16612 from Miller-Media/master
...
Absolute value for gmt_offset in scheduled sales
2017-08-29 10:07:44 +01:00
Manos Psychogyiopoulos
a55c2714f5
Do away with 'new_row' class
2017-08-29 12:02:02 +03:00
Mike Jolley
66d0a8560d
Merge pull request #16611 from iamdharmesh/master
...
fixed issue #16610
2017-08-29 10:00:43 +01:00
Mike Jolley
5a026cd016
Merge pull request #16608 from shivapoudel/unused-styles
...
Remove unused product taxonomy styles
2017-08-29 09:59:11 +01:00
Konstantin Kovshenin
8b46283ca6
Helper: Fix some WPCS errors.
2017-08-29 10:23:34 +03:00
claudiulodro
734ed70462
Fall back to defaults if not set in cart
2017-08-28 14:12:35 -07:00
Claudio Sanches
f48a5443e4
Updated the shortcode attributes for the new names
2017-08-28 17:57:39 -03:00
Claudio Sanches
acad44e3c9
Auto map legacy attributes to the new ones
2017-08-28 17:45:56 -03:00
Claudio Sanches
8115886433
Improved WC_Shortcode_Products possible attributes names
2017-08-28 17:27:35 -03:00
Matt Miller
42e6d4dffe
Removed extra tab character
2017-08-28 13:25:20 -07:00
Claudio Sanches
08db6a91c8
Merge pull request #16631 from woocommerce/feature/pre-search-customers
...
Pre query filter for search customer method.
2017-08-28 17:18:52 -03:00
Claudio Sanches
c571b6767b
Merge pull request #16606 from woocommerce/update/widgets-16132
...
Widget depth settings and improvements
2017-08-28 16:37:05 -03:00
Claudio Sanches
c9dc585a7f
Fixed coding standards
2017-08-28 16:36:32 -03:00
Matt Miller
a9db02d340
Variable update on sale schedule event fix
...
Removed extra variable declaration
2017-08-28 12:35:11 -07:00
Claudio Sanches
c03520a661
Allow pre query filter return an empty array
2017-08-28 16:23:12 -03:00
Claudio Sanches
d5aae55725
Prevent "Argument #N is not an array" warning when WP_User_Query returns null
2017-08-28 16:15:19 -03:00
Claudio Sanches
f8c18ba899
Introduced pre query filter to WC_Customer_Data_Store::search_customers()
2017-08-28 16:14:13 -03:00
Claudiu Lodromanean
b46262c3c6
Merge pull request #16613 from woocommerce/feature/15979-2
...
Allow [products] to be used instead of any other product shortcode
2017-08-28 10:35:03 -07:00
Claudiu Lodromanean
c36a6811c5
Merge pull request #16600 from woocommerce/feature/15979
...
Introduces WC_Shortcode_Products class
2017-08-28 10:33:35 -07:00
Konstantin Kovshenin
a3b08d6497
Merge remote-tracking branch 'origin/master' into helper-updates
2017-08-28 13:46:14 +03:00
Konstantin Kovshenin
94dbdc86b9
Helper: Add "shared" labels for shared subscriptions.
2017-08-28 11:59:13 +03:00
Konstantin Kovshenin
6b14b83cd2
Helper: Make sure redirect actions preserve selected filters.
2017-08-28 11:53:31 +03:00
Konstantin Kovshenin
5fded42d28
Helper: Add subscriptions filters.
2017-08-28 11:39:41 +03:00
Konstantin Kovshenin
51a2d45578
Helper: Make sure transients are not empty before setting again.
2017-08-28 10:53:48 +03:00
Konstantin Kovshenin
578f25ebdc
Helper: Don't display (0) in top navigation when no updates available.
2017-08-28 10:32:51 +03:00
Konstantin Kovshenin
0cafd1a499
Helper: Refresh update transients when refreshing update data.
2017-08-28 10:31:08 +03:00
Konstantin Kovshenin
d854f92ee1
Helper: Cache update count fetch and clear cache after an update.
2017-08-28 10:23:33 +03:00
Konstantin Kovshenin
a41d5da411
Helper: Add update-count to the Extensions top nav menu.
2017-08-28 10:01:01 +03:00
Konstantin Kovshenin
9f3403af06
Helper: Add a plugin-count to the Extensions admin menu.
2017-08-28 09:52:59 +03:00
Claudio Sanches
500ee02dfa
Allow [products] to be used instead of any other product shortcode
...
This allow `[products]` to be used instaed of `[product_category]`,
`[featured_products]`, `[sale_products]`, `[best_selling_products]`,
`[recent_products]`, and `[top_rated_products]`.
Ref #15979
2017-08-25 20:04:53 -03:00
Claudio Sanches
b6f789fc56
Improved WC_Shortcode_Products code
2017-08-25 19:39:43 -03:00
Matt Miller
34b64764c7
Absolute value for gmt_offset in scheduled sales
...
In the event that you choose a -GMT value, the values are incorrect in some instances. For examples, if we choose a -7 GMT value, the gmt_offset will evaluate to '-7'.
On line 309, $ve will equal '+'.
On line 312, previously, $ve . get_option( 'gmt_offset' ) would evalute to '+-7'.
2017-08-25 15:25:39 -07:00
Claudio Sanches
b032a82381
Fixed coding standards
2017-08-25 19:25:19 -03:00
Claudio Sanches
32ea76f09f
Render product_attribute shortcode results with WC_Shortcode_Products
2017-08-25 19:07:10 -03:00
Claudio Sanches
ddeea547b1
Use WC_Shortcode_Products inside featured_products shortcode
2017-08-25 18:42:02 -03:00
Dharmesh Patel
ce764eb6ba
fixed issue #16610
2017-08-26 00:36:06 +05:30
Claudio Sanches
72df581c6f
Use WC_Shortcode_Products inside top_rated_products shortcode
2017-08-25 15:55:34 -03:00
Shiva Poudel
1bc1bc7201
Remove unused product taxonomy styles
2017-08-26 00:08:33 +05:45
Mike Jolley
31a90bdd85
Handle prices including tax calcs
2017-08-25 18:21:27 +01:00
Mike Jolley
4ac1ed84cc
Fallback no coupon data
2017-08-25 16:15:28 +01:00
Mike Jolley
2682d86660
Move comment
2017-08-25 16:09:56 +01:00
Boro Sitnikovski
3cd1bedade
Set coupon virtual state on when initializing virtual coupons during recalculation
2017-08-25 17:07:07 +02:00
Claudio Sanches
c0da59d75a
Use WC_Shortcode_Products inside best_selling_products shortcode
2017-08-25 11:46:47 -03:00
Claudio Sanches
3dabdda480
Apply WC_Shortcode_Products class into sale_products shortcode
2017-08-25 11:00:48 -03:00
Mike Jolley
961c190985
Comments
2017-08-25 14:42:56 +01:00
Mike Jolley
1c303c159c
Notes
2017-08-25 12:52:49 +01:00
Mike Jolley
9fa685eb71
wp_dropdown_categories is viable again!
2017-08-25 12:49:51 +01:00
Mike Jolley
55d75cdcb7
Add max depth option to widget
...
Closes #16132
2017-08-25 12:49:40 +01:00
Mike Jolley
ff5228e944
Standardise widget titles and descriptions
...
Follow the same pattern as core WP widgets, including title case.
Avoids terms like ‘layered nav’ which has no real meaning to new users.
2017-08-25 12:07:17 +01:00
Mike Jolley
3b3ceebc1f
Merge pull request #16579 from Chouby/action_before_import
...
Add action woocommerce_product_import_before_import
2017-08-25 11:19:20 +01:00
Erick Hitter
aa881a0c47
Clarify inline doc
2017-08-24 21:42:32 -07:00
Erick Hitter
c43155aff7
Allow directory creation to be bypassed
2017-08-24 21:16:32 -07:00
Claudio Sanches
0cea847c63
Renamed $loop_name to $type
2017-08-24 22:22:42 -03:00
Claudio Sanches
d7bea55aae
Use WC_Shortcode_Products to render product shortcode results
2017-08-24 22:16:42 -03:00
Claudio Sanches
9b1a047c6f
Use WC_Shortcode_Products inside recent_products shortcode
2017-08-24 21:31:58 -03:00
Claudio Sanches
71019aadfe
Moved woocommerce_shortcode_products_query filter to parse_query_args
2017-08-24 21:24:51 -03:00
Claudio Sanches
461066d2b1
Allow query products by category on products shortcode
2017-08-24 21:24:05 -03:00
Claudio Sanches
429aecd400
Allow set loop name
2017-08-24 20:20:14 -03:00
Claudio Sanches
a398e4893c
Fixed static method and added default value for construct method
2017-08-24 20:11:18 -03:00
Claudio Sanches
51e80b944b
Apply new WC_Shortcode_Products class into WC_Shortcodes::products
2017-08-24 19:33:14 -03:00
Claudio Sanches
7958f9cca9
Ignore coding standards
2017-08-24 19:17:18 -03:00
Claudio Sanches
84cf4d0be8
Fixed query args
2017-08-24 18:59:04 -03:00
Rami Yushuvaev
323c177bb0
i18n: Avoid using HTML tags in translation strings
...
Old translation string:
* `If you like <strong>WooCommerce</strong> please leave us a %s rating. A huge thanks in advance!`
New translation string:
* `If you like %1$s please leave us a %2$s rating. A huge thanks in advance!`
2017-08-25 00:39:13 +03:00
Claudio Sanches
4f18cea88b
Removed extra comments, params and static method
2017-08-24 15:30:44 -03:00
Claudio Sanches
321832ade4
Introduced new WC_Shortcode_Products class
2017-08-24 15:29:30 -03:00
Mike Jolley
1e65a918d5
Pull meta to apply coupons which do not exist
2017-08-24 17:08:45 +01:00
Mike Jolley
8b4086caf2
Hide link to non-existing coupons
2017-08-24 17:08:34 +01:00
Mike Jolley
487478daa9
Store details about the original coupon
2017-08-24 17:07:49 +01:00
Mike Jolley
b84efc1acd
is_virtual to track manual coupons
2017-08-24 17:07:39 +01:00
Mike Jolley
8ce583889a
Apply filters to carts only, and add is_virtual helper
2017-08-24 17:07:31 +01:00
Claudio Sanches
abb9886df1
Merge pull request #16592 from woocommerce/fix/16587
...
If no title is set when uploading images, use filename
2017-08-24 12:05:48 -03:00
Mike Jolley
220b37d5f2
Show sorting on search results but default to relevance
...
Closes #16565
2017-08-24 12:58:50 +01:00
Mike Jolley
7a817ee103
Added back missing discount row
...
Closes #16586
2017-08-24 12:49:49 +01:00
Mike Jolley
8e6085b2c0
If no title is set when uploading images, use filename
...
Closes #16587
2017-08-24 12:33:53 +01:00
Josh Smith
49c7449e8b
Merge remote-tracking branch 'upstream/master'
2017-08-23 22:41:04 +00:00
Claudiu Lodromanean
56e1207903
Merge pull request #16583 from woocommerce/update/apply-fees
...
Improved apply fees
2017-08-23 13:35:18 -07:00
Mike Jolley
25fb505fc4
Debug
2017-08-23 16:42:58 +01:00
Claudio Sanches
b46f5c91e4
Merge pull request #16584 from ramiy/patch-1
...
i18n: Avoid using HTML tags in translation strings
2017-08-23 11:51:28 -03:00
Claudio Sanches
0bf1aa1cb0
Merge pull request #16581 from woocommerce/fix/16577
...
Imported non-published variations should be private, not draft
2017-08-23 11:47:04 -03:00
Mike Jolley
9d877a3b34
Unused vars
2017-08-23 14:40:34 +01:00
Mike Jolley
2beddc59a7
docblocks
2017-08-23 14:38:00 +01:00
Mike Jolley
e0de3643bc
ID is unused
2017-08-23 14:28:25 +01:00
Mike Jolley
9483a7ec19
invalid return
2017-08-23 14:27:30 +01:00
Mike Jolley
c60859bf3c
types
2017-08-23 14:27:10 +01:00
Mike Jolley
a7b697b679
type checks
2017-08-23 14:25:41 +01:00
Rami Yushuvaev
ff289f3bf4
i18n: Avoid using HTML tags in translation strings
...
This PR moves the `<code>` HTML tags from the translation strings.
It also moves the server variables outside of the translation string, because translators can accidentally translate it wrong.
2017-08-23 16:22:52 +03:00
Mike Jolley
714c4c672e
unused prop
2017-08-23 14:21:42 +01:00
Mike Jolley
be042ee8f3
Set to amount before calc
2017-08-23 12:24:33 +01:00
Mike Jolley
804feb9333
Store fee amount and prevent totals going negative
2017-08-23 12:15:06 +01:00
Mike Jolley
d9e455b9c6
Merge branch 'master' into update/apply-fees
2017-08-23 11:26:13 +01:00
Mike Jolley
f18a146d0f
Prompt to apply fee in admin
2017-08-23 11:22:18 +01:00
Mike Jolley
22813663d7
Merge pull request #16569 from woocommerce/update/fees-api-class
...
WC_Cart_fees and negative fee calculations
2017-08-23 10:59:19 +01:00
Mike Jolley
b3e92869f9
Imported non-published variations should be private, not draft
...
Fixes #16577
2017-08-23 10:45:18 +01:00
Frédéric Demarle
04b6e80065
Add action woocommerce_product_import_before_import
2017-08-23 09:37:41 +02:00
Josh Smith
39544cb27b
[ #12517 ] Remove calls to action woocommerce_process_product_file_download_paths since download ids should no longer change. They are now static UUIDs.
2017-08-23 03:22:33 +00:00
Josh Smith
df64c48103
[ #12517 ] In deprecated function call for update_download_id, use __METHOD__ instead of hard coded function name
2017-08-23 03:21:35 +00:00
Josh Smith
d9685ef061
[ #12517 ] Revert change to class WooCommerce @since comment
2017-08-23 03:20:46 +00:00
Josh Smith
cd89246b87
[ #12517 ] Deprecate process_product_file_download_paths function since download log ids should no longer change based on file paths
2017-08-23 03:16:50 +00:00
Josh Smith
5e4269267f
[ #12517 ] Change spacing and add full stop to comment to match WordPress style guide.
2017-08-23 03:15:23 +00:00
Josh Smith
e11e88fa4e
[ #12517 ] When tracking downloads, increment/decrement download count and downloads remaining in SQL to avoid race conditions with updating in PHP
2017-08-23 03:12:58 +00:00
Josh Smith
4400a026b8
[ #12517 ] Remove unneeded ArrayAccess implementation from WC_Customer_Download_Log
2017-08-23 03:11:38 +00:00
Josh Smith
ee13db49a2
[ #12517 ] Move download log table to const and helper, output download log report titles in standalone function, reorganize download log data store read for code readability
2017-08-23 03:10:14 +00:00
Josh Smith
1734580b0a
[ #12517 ] Order download permissions: Use i18n number formatting on download count and proper escaping on report links
2017-08-23 03:03:27 +00:00
Josh Smith
aa7e145ffe
[ #12517 ] Fixing capitalization for titles on admin reports
2017-08-23 03:01:35 +00:00
Josh Smith
868a0e0e84
Merge remote-tracking branch 'upstream/master'
2017-08-23 02:33:01 +00:00
Josh Smith
148fa16055
[ #12517 ] Removing unnecessary isset on check for download id in WC_Product
2017-08-23 02:27:42 +00:00
Claudiu Lodromanean
95130b2403
Merge pull request #16574 from woocommerce/feature/16554
...
Allow import/export product position (menu_order)
2017-08-22 14:13:52 -07:00
Claudiu Lodromanean
bdba4f7636
Merge pull request #16572 from woocommerce/fix/16559
...
Introduces woocommerce_get_product_id_by_sku filter
2017-08-22 13:31:45 -07:00
Claudio Sanches
7ad0dd55f9
Allow import 'menu_order'
2017-08-22 17:22:39 -03:00
Claudio Sanches
0b3811bd11
Change Position key from 'position' to 'menu_order'
2017-08-22 16:46:09 -03:00
Claudio Sanches
af23ad42d7
Included "position" (menu_order) to exported products
2017-08-22 16:33:19 -03:00
Claudio Sanches
02a7f4d5ab
Merge pull request #16561 from woocommerce/fix/16557
...
API v1 should create v1 webhooks
2017-08-22 15:19:16 -03:00
Claudio Sanches
03a189726e
Introduces woocommerce_get_product_id_by_sku filter
...
Closes #16559
2017-08-22 15:04:21 -03:00
Claudiu Lodromanean
6c2a944b74
Merge pull request #16570 from woocommerce/fix/16568
...
Add product to cart on each iteration for BW compat.
2017-08-22 09:31:21 -07:00
Claudiu Lodromanean
8a9a51643e
Merge pull request #16563 from woocommerce/fix/16560
...
Prevent regular price being lower than the sale price
2017-08-22 09:08:09 -07:00
Mike Jolley
559982fbe7
Unused variable
2017-08-22 17:02:48 +01:00
Mike Jolley
56c0c1e259
remove old set
2017-08-22 16:41:03 +01:00
Mike Jolley
a70e9bbf9b
Add product to cart on each iteration for BW compat.
...
Closes #16568
2017-08-22 16:39:51 +01:00
Mike Jolley
c41fb8f00c
docblock
2017-08-22 16:31:45 +01:00
Mike Jolley
8dbd9b88a7
Admin calc
2017-08-22 16:26:35 +01:00
Mike Jolley
00cb48a5fe
Pass through to order
2017-08-22 16:20:23 +01:00
Mike Jolley
367f08d79f
Negative fee logic for cart
2017-08-22 16:12:37 +01:00
Mike Jolley
57865204aa
Cart fees class and legacy
2017-08-22 15:17:58 +01:00
Mike Jolley
0bad6b3e52
add_db_table_prefix method for 5.2 support
2017-08-22 13:51:50 +01:00
Manos Psychogyiopoulos
1596979d75
Reload order items on add
2017-08-22 15:19:20 +03:00
Mike Jolley
56f2dc6005
Merge pull request #16562 from Umangvaghela/Update-condition
...
Update condition
2017-08-22 11:45:46 +01:00
Mike Jolley
fb2d8cb394
Prevent regular price being lower than the sale price
...
Closes #16560
2017-08-22 11:43:48 +01:00
Umangvaghela
5794a9cb34
Update condition
2017-08-22 15:23:34 +05:30
Mike Jolley
2a5a47016f
API v1 should create v1 webhooks
...
Fixes #16557
2017-08-22 10:40:35 +01:00
Gregory Karpinsky
73b20bfece
Update class-wc-admin-settings.php
...
Typo: visbility --> visibility
2017-08-21 22:00:23 -04:00
Mike Jolley
d68291b3ac
Merge pull request #16086 from woocommerce/improvement/versions
...
Extensions version check.
2017-08-21 18:18:04 +01:00
Mike Jolley
9ee732d68c
Text
2017-08-21 18:11:47 +01:00
Claudio Sanches
e0e0092f9a
Merge pull request #16549 from woocommerce/fix/16547
...
Handle isset for legacy props, and adjust free shipping logic
2017-08-21 12:38:08 -03:00
Claudio Sanches
37352b60c4
Merge pull request #16546 from woocommerce/fix/16539
...
Improve email directory writable checking
2017-08-21 12:36:17 -03:00
Claudio Sanches
1cfdaaa108
Merge pull request #16548 from woocommerce/fix/16524
...
Swap to text input for tax rate %, and format as decimal.
2017-08-21 12:32:53 -03:00
Claudio Sanches
237d5b646a
Merge pull request #16544 from woocommerce/fix/16537
...
If auth cannot occur, don't send request.
2017-08-21 12:31:46 -03:00
Mike Jolley
95fe91e622
Tweak version code
2017-08-21 16:04:06 +01:00
Mike Jolley
b20ef5dcac
Styling
2017-08-21 15:53:08 +01:00
Mike Jolley
5c271af844
Handle isset for legacy props, and adjust free shipping logic
...
Closes #16547
2017-08-21 13:01:20 +01:00
Mike Jolley
95cc51ae5c
Swap to text input for tax rate %, and format as decimal.
...
Closes #16524
2017-08-21 12:49:23 +01:00
Mike Jolley
6ee0ef1ee8
Copy update for c6ca8a6024
2017-08-21 12:38:14 +01:00
Mike Jolley
3886987346
Merge pull request #16543 from mihaigrigori/master
...
\WC_Legacy_Cart::get_cart_for_session must return a value
2017-08-21 11:57:16 +01:00
Mike Jolley
c6ca8a6024
Update copy with plugins page link
...
Closes #16496
2017-08-21 11:53:34 +01:00
Mike Jolley
05dc9d3c0f
Improve email directory writable checking
...
Closes #16539
2017-08-21 11:32:21 +01:00
Mike Jolley
bf2ca1f3d3
If auth cannot occur, don't send request.
...
Fixes #16537
2017-08-21 10:49:00 +01:00
Mihai Grigori
f6a6cef1d9
\WC_Legacy_Cart::get_cart_for_session must return a value
2017-08-21 11:58:29 +03:00
rspublishing
9ed2f7544f
Updated XAF and XOF denominators
2017-08-20 21:48:18 +02:00
Josh Smith
413444c616
Merge remote-tracking branch 'upstream/master'
2017-08-20 04:09:17 +00:00
Claudio Sanches
56b8829f46
Merge pull request #16530 from woocommerce/fix/query_names
...
Rename filters to be unique
2017-08-18 14:33:58 -03:00
claudiulodro
4ed359d336
Rename filters to be unique
2017-08-18 10:25:21 -07:00
Mike Jolley
0dc1754b91
Merge branch 'master' into update/store-owner-newsletter
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# assets/css/twenty-seventeen-rtl.css
# assets/css/twenty-seventeen.css
# assets/css/woocommerce-rtl.css
# assets/css/woocommerce.css
2017-08-18 18:21:55 +01:00
Mike Jolley
fcef2c7f71
Copy update
2017-08-18 18:21:23 +01:00
Claudio Sanches
b93a95423f
Use wc_strtolower() to format coupon code
...
Improves #16519
2017-08-18 14:11:33 -03:00
Mike Jolley
36f5827bc0
Merge pull request #16351 from pmgarman/feature-system-status-site-size-data
...
Add “site size” areas to system status report
2017-08-18 17:49:12 +01:00
Claudio Sanches
8d8ffb6e9e
Included @since tag to wc_is_webhook_valid_topic()
2017-08-18 13:41:51 -03:00
Claudio Sanches
95de32d9c7
Changed webhook table name for #16390
2017-08-18 13:41:02 -03:00
Claudiu Lodromanean
07d5e2e7ca
Merge pull request #16525 from woocommerce/update/tax-class-setter
...
Only set valid tax classes in product abstract
2017-08-18 09:27:03 -07:00
Mike Jolley
db62f4c567
Merge pull request #16526 from JPry/bug/docblocks
...
Update some docblocks with proper parameters
2017-08-18 17:24:43 +01:00
Claudio Sanches
105388e9b2
Merge pull request #16527 from woocommerce/fix/importer-att
...
Fix importer fatal error
2017-08-18 13:23:40 -03:00
Mike Jolley
3d002f842f
Fix get totals method
2017-08-18 17:18:41 +01:00
Jeremy Pry
2d4b7356df
Update some docblocks with proper parameters
2017-08-18 12:18:19 -04:00
claudiulodro
24e9f80f1a
wc_get_attribute_taxonomies returns objects
2017-08-18 09:17:04 -07:00
Mike Jolley
d9f9e74bd9
Only set valid tax classes in product abstract
2017-08-18 17:06:22 +01:00
Claudiu Lodromanean
b0f190fa1d
Merge pull request #16517 from woocommerce/integrate-cart-sessions-class
...
Integrate cart sessions, getters and setters
2017-08-18 08:41:57 -07:00
Mike Jolley
313a797f23
Merge branch 'master' into integrate-cart-sessions-class
2017-08-18 16:37:25 +01:00
Mike Jolley
4567169aa9
Fix remove from cart
2017-08-18 16:37:24 +01:00
Claudiu Lodromanean
4d715d7f54
Merge pull request #16509 from woocommerce/cart-sessions-class
...
Added WC_Cart_Session class
2017-08-18 08:30:36 -07:00
Claudiu Lodromanean
a4d3518a61
Merge pull request #16508 from woocommerce/remove-manual-discounts
...
Removed manual discounts code
2017-08-18 08:30:07 -07:00
Claudiu Lodromanean
4b23d5c5ba
Merge pull request #16523 from woocommerce/fix/16481
...
Change password label
2017-08-18 08:29:10 -07:00
Claudiu Lodromanean
db8ee8d306
Merge pull request #16519 from woocommerce/fix/16497
...
Format coupon code with mb_strtolower
2017-08-18 08:28:40 -07:00
Mike Jolley
97f9a4037a
Change password label
2017-08-18 16:18:49 +01:00
Mike Jolley
f957546cc4
Format coupon code with mb_strtolower
...
Fixes #16497
2017-08-18 15:43:34 +01:00
Mike Jolley
1f692ffb64
Merge pull request #16485 from Korkey128k/master
...
Wrapped 'Delete selected row(s)' button in condition
2017-08-18 15:38:14 +01:00
Mike Jolley
c22fb01903
Merge pull request #16516 from Umangvaghela/issue-16515
...
update Yoda condition
2017-08-18 15:06:44 +01:00
Mike Jolley
1c8ad67a9e
Fix tests and tax merges
2017-08-18 15:05:01 +01:00
Mike Jolley
b854c1775c
Tests
2017-08-18 13:53:22 +01:00
Mike Jolley
302512e51f
Combine taxes correctly
2017-08-18 13:48:53 +01:00
Umangvaghela
b994ea69ca
update Yoda condition
2017-08-18 17:58:58 +05:30
Mike Jolley
a2858245fe
Remove call - it's hooked
2017-08-18 12:52:29 +01:00
Mike Jolley
d2e3839d99
Use getters and setters in cart class
2017-08-18 12:51:45 +01:00
Mike Jolley
a190dc79c3
Legacy getters/setters
2017-08-18 12:24:17 +01:00
Mike Jolley
b34b7bf850
Merge pull request #16512 from Umangvaghela/issue-16511
...
Yoda condition is missing in class-wc-ajax.php
2017-08-18 12:08:06 +01:00
Mike Jolley
b9fea8419b
getters and setters for totals
2017-08-18 12:05:18 +01:00
Umangvaghela
5e8723b99e
Set Yoda condition
2017-08-18 16:26:21 +05:30
Mike Jolley
0c751087f9
Cast to arrays
2017-08-18 11:44:07 +01:00
Mike Jolley
aefb9c4705
Moved magic method to legacy
2017-08-18 11:37:22 +01:00
Mike Jolley
c0368362ce
First pass
2017-08-18 11:29:26 +01:00
Mike Jolley
a9a93436fc
rename ajax method
2017-08-18 10:59:55 +01:00
Mike Jolley
1d95593131
Localise message
2017-08-18 10:58:11 +01:00
Mike Jolley
a55716eed4
WC_Cart_Session
2017-08-18 10:54:41 +01:00
Mike Jolley
e99471c0cd
Removed manual discounts code
2017-08-18 10:36:10 +01:00
Claudio Sanches
2a3d37cc89
Webhooks does not have meta data
2017-08-17 19:42:54 -03:00
Claudio Sanches
909c3f6c8f
Fixed extra "!" and ")" on #16489
2017-08-17 19:05:46 -03:00
Claudio Sanches
2d19d47357
Fixed spacing
2017-08-17 19:04:36 -03:00
Claudio Sanches
3266fd48fe
Fixed how to auto set dates
2017-08-17 18:43:08 -03:00
Claudio Sanches
b93a9732df
Fixed validation of set_status and set_topic
2017-08-17 18:36:42 -03:00
Claudio Sanches
568aae5e0f
Validate webhook topic before set
2017-08-17 17:57:09 -03:00
Claudio Sanches
bf674bce6e
Validate webhook status
2017-08-17 17:54:31 -03:00
Claudio Sanches
3fb17f23e7
Merge pull request #16478 from ramiy/patch-1
...
i18n: Rewrite the translation string logic
2017-08-17 13:59:37 -03:00
Claudio Sanches
fad774267c
Merge branch 'master' into feature/16445
2017-08-17 13:32:47 -03:00
Claudio Sanches
e31da15959
Improve test_wc_load_webhooks() checking when returns false
2017-08-17 12:32:30 -03:00
Claudio Sanches
8c120da100
Test webhook functions
2017-08-17 12:29:34 -03:00
Claudio Sanches
d02a7655fd
Allow numeric api version on Webhook CRUD
2017-08-17 12:18:32 -03:00
Claudio Sanches
bc95b1c153
Moved wc_is_webhook_valid_topic to wc-webhook-functions.php
2017-08-17 12:06:45 -03:00
Claudio Sanches
4762c04b4b
Removed shop_webhook post type and removed upgrade scripts
...
With Webhook CRUD there is no more need to update hooks on database.
2017-08-17 11:37:57 -03:00
Claudio Sanches
1829c81689
Fixed coding standards
2017-08-17 11:14:41 -03:00
Claudio Sanches
9fac34fbcb
Save webhook results on wp cache
2017-08-17 11:07:30 -03:00
Claudio Sanches
455888fae4
Included get_webhooks_ids() to interface
2017-08-17 10:52:42 -03:00
Claudio Sanches
dcf3e27155
New helpers to load webhooks
2017-08-17 10:51:20 -03:00
Claudio Sanches
00185c5911
Webhook data store
2017-08-17 00:08:32 -03:00
Alex James Bishop
d4a02819a7
Add filter to woocommerce_order_again_button to match WC_Form_Handler->order_again
...
This commit adds the `woocommerce_valid_order_statuses_for_order_again` filter to the conditional check
before displaying the order-again button.
The purpose is to enable consistency when altering the valid order again statuses - in the past a dev would
need to use this filter to let the order through the form handler, and then override the template file for a really
trivial reason just to get the button to display.
2017-08-17 11:31:06 +09:30
Claudio Sanches
1a3a2c0658
Updated webhook database schema
...
Allow default dates to '0000-00-00 00:00:00' and failure_count to '0'
2017-08-16 21:48:09 -03:00
Claudio Sanches
256ad31130
Include missing date methods on Webhook CRUD
2017-08-16 21:40:31 -03:00
Claudio Sanches
20291a6305
Webhook CRUD
2017-08-16 21:20:02 -03:00
Claudio Sanches
67a6a7ce7f
Deprecated WC_Webhook::update_status
2017-08-16 21:14:07 -03:00
Claudio Sanches
a8f0f854f4
Legacy Webhook class
2017-08-16 21:07:24 -03:00
Claudio Sanches
e8defa48dc
Webhook database schema
2017-08-16 15:37:22 -03:00
Corey Smith
a6cf08d8cf
Wrapped 'Delete selected row(s)' button in condition
2017-08-16 11:56:30 -05:00
Claudiu Lodromanean
5ff7704db4
Merge pull request #16476 from woocommerce/fix/16455
...
Fix breadcrumbs for regular categories
2017-08-16 08:49:01 -07:00
Rami Yushuvaev
4ae42313ce
i18n: Rewrite the translation string logic
...
The single translation string `by` is not easy to translate without a context. In this case, using the context function `_x()` is not the best solution.
A better way would be to create two complete translation strings for refund with a user and without a user.
2017-08-16 14:25:38 +03:00
ragulka
d73e7e4f9d
Prevent unwanted double cart notices ( #16460 )
...
* Don't add shipping zone debug message when doing ajax
Prevent an issue where the "Customer matched zone" debug message is shown twice after first selecting a shipping method and then changing a product's quantity in cart and clicking Update cart.
* Don't pass event object to cart.update_cart
Prevent accidentally preserving cart notices when `wc_update_cart` event is triggered on body. If the event object is passed to update_cart() as the first param, it evaluates to true, forcing existing notices to be preserved.
* Pass custom arguments to cart.update_cart()
Instead of simply not passing the event object, pass any custom arguments, so it's possible to do something like: $( body ).trigger( 'wc_update_cart', true ); to still preserve notices if needed.
2017-08-16 11:34:35 +01:00
Mike Jolley
201b3bc056
Merge pull request #16466 from woocommerce/fix/rounding
...
Fix discounts rounding issues
2017-08-16 11:28:09 +01:00
Mike Jolley
38ab37597c
Merge pull request #16467 from ramiy/patch-1
...
i18n: Simpler translation string with placeholders
2017-08-16 11:26:06 +01:00
Mike Jolley
34ae983cc9
Merge pull request #16470 from ramiy/patch-4
...
i18n: Simpler translation string with placeholders
2017-08-16 11:25:48 +01:00
Mike Jolley
bf84592e87
Merge pull request #16469 from ramiy/patch-3
...
i18n: Merge two similar translation strings
2017-08-16 11:25:23 +01:00
Mike Jolley
3aee17faeb
Fix breadcrumbs for regular categories
...
Closes #16455
2017-08-16 11:22:22 +01:00
Patrick Garman
f19a63e1d7
Merge the DB and DB Table Size tables
2017-08-15 19:52:14 -05:00
Rami Yushuvaev
125ead910a
i18n: Simpler translation string with placeholders
...
One more... replacing function name with `%s` placeholder, this way translators can't misspell the function name.
2017-08-16 00:42:32 +03:00
Rami Yushuvaev
43744e4f27
i18n: Merge two similar translation strings
...
Replace:
`wp_remote_get() failed. Contact your hosting provider.`
`wp_remote_post() failed. Contact your hosting provider.`
With:
`%s failed. Contact your hosting provider.`
Note:
This also a good practice because the function name is outside of the translation string, this way the translator can't misspell the function name.
2017-08-16 00:32:36 +03:00
Rami Yushuvaev
d1f4acc730
i18n: Simpler translation string with placeholders
...
Replace:
`wc_get_product should not be called before the woocommerce_init action.`
With:
`%1$s should not be called before the %2$s action.`
2017-08-16 00:26:14 +03:00
Rami Yushuvaev
0087536296
i18n: Simpler translation string with placeholders
...
Replace:
`WC_Logger::log was called with an invalid level "%s".`
With:
`%1$s was called with an invalid level "%2$s".`
2017-08-16 00:22:46 +03:00
claudiulodro
9a47146716
Fix discounts rounding issues
2017-08-15 14:11:25 -07:00
Claudio Sanches
82a6de2e49
Merge pull request #16459 from ramiy/patch-3
...
i18n: Avoid using HTML tags in translation strings
2017-08-15 14:48:35 -03:00
Claudio Sanches
3a12f7b494
2.1.2 db update functions
2017-08-15 13:01:28 -03:00
Claudio Sanches
339ab41bf1
Remove unfiltered_html capability from Shop Managers
2017-08-15 12:57:12 -03:00
Claudio Sanches
9e8aa83d47
Escape product names on reports
2017-08-15 12:56:35 -03:00
Claudio Sanches
0fec9dbfe7
Merge pull request #16458 from ramiy/patch-2
...
i18n: Simpler translation string with placeholders
2017-08-15 12:49:31 -03:00
Mike Jolley
129eae141a
Fix custom discount amounts not multiplying by qty
2017-08-15 16:25:39 +01:00
Mike Jolley
3c18d5e849
Adjust total discount for ex.tax
2017-08-15 16:25:39 +01:00
Claudio Sanches
7a44c3d700
Merge pull request #16457 from ramiy/patch-1
...
i18n: Simpler translation string with placeholders
2017-08-15 12:05:32 -03:00
Mike Jolley
de35d9ba02
Apply woocommerce_coupon_get_discount_amount without cents
...
cc @claudiulodro
2017-08-15 15:29:22 +01:00
Claudio Sanches
a6017741ad
Merge pull request #16456 from woocommerce/update/status-tools
...
Tool to purge webhook logs
2017-08-15 11:02:27 -03:00
Mike Jolley
835d0ab450
Fix remove tax column
...
Closes #16443
2017-08-15 14:51:12 +01:00
Rami Yushuvaev
6f7c817b78
i18n: Avoid using HTML tags in translation strings
...
This PR moves the `<strong>` HTML tags from the translation strings.
Replacing: `Order scheduled for: <strong>%1$s</strong>.`
With: `Order scheduled for: %s.`
We did the same in WordPress core across several releases (4.3 - 4.7). Because it's makes the translation process to RTL language (like Hebrew) much easier.
2017-08-15 15:07:55 +03:00
Rami Yushuvaev
7ce117a0ca
i18n: Simpler translation string with placeholders
...
Replace:
`The provided handler <code>%s</code> does not implement WC_Log_Handler_Interface.`
With:
`The provided handler %1$s does not implement %2$s.`
2017-08-15 14:48:42 +03:00
Rami Yushuvaev
7ad61068e1
i18n: Simpler translation string with placeholders
...
Replace:
`The class <code>%s</code> provided by woocommerce_logging_class filter must implement <code>WC_Logger_Interface</code>.`
With:
`The class %1$s provided by %2$s filter must implement %3$s.`
2017-08-15 14:39:41 +03:00
Mike Jolley
392ce417bc
docblocks
2017-08-15 12:21:12 +01:00
Mike Jolley
3852ce59c8
Tool to purge webhooks
2017-08-15 12:15:17 +01:00
Mike Jolley
a44a57b5d9
Improve tools page styling
2017-08-15 12:05:34 +01:00
Mike Jolley
f62d505797
Merge pull request #16427 from nyordanov/variation-permalink-infinite-loop
...
Prevent infinite recursion in WC_Post_Data::variation_post_link()
2017-08-15 10:59:36 +01:00
Mike Jolley
4101e313bb
Merge pull request #16392 from woocommerce/feature/admin-apply-discount-15501
...
[WIP] Admin discounts
2017-08-15 10:07:00 +01:00
Mike Jolley
70248b2fa6
Merge pull request #16419 from woocommerce/fix/1645
...
Use array_replace in order item apply_changes
2017-08-15 09:59:02 +01:00
claudiulodro
2eb107b0af
Add 5.2 fallback
2017-08-14 11:45:54 -07:00
claudiulodro
ae80d12d80
Merge master
2017-08-14 11:12:09 -07:00
Claudiu Lodromanean
28c5af4922
Merge pull request #16440 from woocommerce/fix/16422
...
Adjust coupon user limit logic
2017-08-14 10:24:51 -07:00
Claudiu Lodromanean
1f2891cfd3
Merge pull request #16439 from woocommerce/fix/16432
...
Switch CLI tools command over to v2 API
2017-08-14 10:04:02 -07:00
Claudiu Lodromanean
f0126852a5
Merge pull request #16438 from woocommerce/fix/16405
...
Add error handling for wp_insert_term
2017-08-14 10:01:22 -07:00
Rami Yushuvaev
17d10b3e9f
i18n: Fix some translation strings ( #16441 )
...
* i18n: permissions -> permission
* i18n: permissions -> permission
2017-08-14 17:25:08 +01:00
Mike Jolley
be11c1089f
Fix tests
2017-08-14 16:03:50 +01:00
Mike Jolley
7ddfe0703b
Store coupon item taxes
2017-08-14 15:57:51 +01:00
Mike Jolley
c74835ec31
Use WP_User_Query
2017-08-14 12:51:04 +01:00
Mike Jolley
40757ddf86
Search given email against all user fields for matches.
2017-08-14 12:28:19 +01:00
Mike Jolley
6f4fd61a4f
Do not check if logged in
2017-08-14 12:28:03 +01:00
Mike Jolley
147a7f9419
Switch CLI tools command over to v2 API
...
Closes #16432
2017-08-14 10:45:44 +01:00
Mike Jolley
c63e94d299
Add error handling for wp_insert_term
...
Fixes #16405
2017-08-14 10:40:00 +01:00
Mike Jolley
a7f6d49f16
Merge pull request #16421 from bekarice/fix/shipping-availability-filters
...
Pass WC_Shipping_Method instance to availability filters
2017-08-13 11:19:42 +01:00
Nikolay Yordanov
96b4467179
Prevent infinite recursion in WC_Post_Data::variation_post_link()
...
If a variation's parent doesn't exist, WC_Product_Variation::get_parent_id()
will return 0, which causes WC_Post_Data::variation_post_link()
to enter into an infinite recursion trying to get the permalink
of the nonexistent parent
2017-08-12 11:26:32 +01:00
Claudio Sanches
4d87f94622
Merge pull request #16408 from woocommerce/fix/16398
...
CSV Import; correctly set stock props.
2017-08-11 21:49:20 -03:00
Jeroen Sormani
607cd878e0
Settings parent construct ( #16412 )
...
* Miscellaneous cleanup of typos + change some return types for IDE helpers
* Call/use parent::__construct() to add filters for settings output, saving
2017-08-11 21:36:35 -03:00
Claudio Sanches
2ffc09de0d
Merge pull request #16411 from woocommerce/fix/16306
...
Don't subtract negative taxes in net sales report
2017-08-11 21:30:25 -03:00
claudiulodro
b99ed2228c
No array_replace in WP or PHP 5.2
2017-08-11 14:11:46 -07:00
Beka Rice
c54b0ecd9d
Pass WC_Shipping_Method instance to availability filters
2017-08-11 16:36:18 -04:00
claudiulodro
837e7e1ed2
Use array_replace in order item apply_changes
2017-08-11 13:24:43 -07:00
claudiulodro
a0effafef9
Move discount row in frontend
2017-08-11 11:48:08 -07:00
Claudiu Lodromanean
15179b0e48
Merge pull request #16416 from woocommerce/manual-discounts-on-fees-shipping
...
Manual discounts on fees and shipping
2017-08-11 11:30:27 -07:00
claudiulodro
46e003d3c6
Remove shipping and discount lines
2017-08-11 11:10:44 -07:00
Mike Jolley
b826d02f9b
Split tax across items for discounts
2017-08-11 17:53:49 +01:00
Josh Smith
fe01910b8b
Fixing spacing on WC_Product and WC_Install
2017-08-11 16:49:49 +00:00
Josh Smith
6dadaa0f7f
Merge remote-tracking branch 'upstream/master'
2017-08-11 16:29:16 +00:00
Mike Jolley
d61a97cb57
Missing abstract methods
2017-08-11 16:17:24 +01:00
Mike Jolley
1545e46fd5
cache clearing
2017-08-11 16:17:13 +01:00
Mike Jolley
def5e0cdee
get_tax_class_counts_for_items
2017-08-11 16:17:00 +01:00
Mike Jolley
9eece1cb1e
Include shipping and fee in total
2017-08-11 16:16:50 +01:00
Mike Jolley
e20d886972
calculate_item_discounts for clarity
2017-08-11 16:16:36 +01:00
Mike Jolley
2accbdbd45
Load order after updating items
2017-08-11 16:16:22 +01:00
Mike Jolley
3496e8dca4
Match order of cart discount
2017-08-11 16:16:09 +01:00
Mike Jolley
2c5a5b9409
Discounts should be last
2017-08-11 16:15:53 +01:00
Mike Jolley
56726deb5a
Fix recalculate_coupons
2017-08-11 13:52:40 +01:00
Mike Jolley
7620473fa5
Support callback for index
2017-08-11 13:52:28 +01:00
Mike Jolley
5b4e5482dd
Don't subtract negative taxes in net sales report
...
Fixes #16306
2017-08-11 12:38:09 +01:00
Mike Jolley
5587ff6874
Variation data store should remove product_type term on save
...
Closes #16409
2017-08-11 12:32:12 +01:00
Mike Jolley
0f54e57093
CSV Import; correctly set stock props.
...
Closes #16398
2017-08-11 11:07:12 +01:00
Mike Jolley
e124841cbf
Merge pull request #16401 from woocommerce/fix/16378
...
Use new CRUD actions to trigger Webhooks
2017-08-11 10:35:23 +01:00
Josh Smith
9e06209277
Merge remote-tracking branch 'upstream/master'
2017-08-11 05:00:52 +00:00
Claudio Sanches
3f12fd1b01
Fixed missing hooks in legacy REST API
2017-08-10 18:57:31 -03:00
Claudio Sanches
40cb0e2e95
Trigger only customer.created webhook
2017-08-10 18:57:13 -03:00
Claudiu Lodromanean
a5ffbe6e7f
Merge pull request #16403 from woocommerce/fix/16195
...
[Importer] Allow "unfiltered_html" for name, description and short description fields
2017-08-10 13:55:46 -07:00
Claudiu Lodromanean
77bed2396c
Merge pull request #16400 from woocommerce/fix/16394
...
Apply logical sort order to discounts
2017-08-10 13:43:32 -07:00
claudiulodro
3618ef1725
Handle couple todos
2017-08-10 13:37:05 -07:00
claudiulodro
9e70a74857
Styling
2017-08-10 13:29:32 -07:00
Claudio Sanches
a01ffdd11d
Better variable naming for importer parser methods
2017-08-10 17:23:31 -03:00
Claudio Sanches
fe05e09015
Skip title, description and exceprt sanitization and let WP handle it
...
Should simulate the same behavior from WP admin, so just need to skip
extra sanitization, so WP can handle it while salving with
`wp_insert_post()` and `wp_update_post()` where will check for
`unfiltered_html` capability.
WP core already did something like it, but on REST API: https://core.trac.wordpress.org/ticket/38609
Fixes #16195
2017-08-10 17:17:56 -03:00
claudiulodro
28f0431c56
Coupon usage counts
2017-08-10 11:27:13 -07:00
claudiulodro
f1e6fd53bd
Prevent double coupons
2017-08-10 11:14:01 -07:00
claudiulodro
fa35104486
Coupon amount validation
2017-08-10 11:00:57 -07:00
Claudio Sanches
069cf21c08
Use new CRUD actions to trigger Webhooks
...
Closes #16378
2017-08-10 13:56:17 -03:00
Mike Jolley
51dffc0853
Apply logical sort order to discounts
...
Closes #16394
2017-08-10 17:24:27 +01:00
Mike Jolley
db87fc68b9
Fix refs
2017-08-10 16:33:21 +01:00
Mike Jolley
87858d1407
recalc on remove/add
2017-08-10 16:32:24 +01:00
Mike Jolley
30c80c6ad5
Fix tax recalc
2017-08-10 16:22:17 +01:00
Mike Jolley
22d6c789ab
herpa derpa
2017-08-10 15:57:34 +01:00
Mike Jolley
e90fb6d54f
fix discount apply and save
2017-08-10 15:33:01 +01:00
Mike Jolley
cd8fb23884
Add ability to get local item rather than from DB
2017-08-10 14:38:02 +01:00
Mike Jolley
e2599d83c8
Apply methods
2017-08-10 14:22:27 +01:00
Mike Jolley
3dc9f06f6a
Remove fixed discounts correctly
2017-08-10 12:06:03 +01:00
Mike Jolley
06381f28bd
Edit items rather than recreate
2017-08-10 11:38:09 +01:00
Mike Jolley
2a4a078266
Merge branch 'feature/admin-apply-discount-15501' into feature/coupon-remove
2017-08-10 11:25:21 +01:00
Mike Jolley
1fd1699bcd
Ensure isset
2017-08-10 11:25:08 +01:00
claudiulodro
a416ebe09b
It kind-of works.
2017-08-09 14:55:35 -07:00
Mike Jolley
aa82a54f47
Prevent notices
2017-08-09 19:27:19 +01:00
Mike Jolley
e429a27ba4
No need for 'off'
2017-08-09 19:12:33 +01:00
Mike Jolley
5874fb8715
Type and sum fix
2017-08-09 19:11:02 +01:00
Mike Jolley
c556facd41
Fix percent coupon and display
2017-08-09 19:02:10 +01:00
Mike Jolley
f71dc64d35
Manual discounts and negative taxes
2017-08-09 18:53:10 +01:00
claudiulodro
1328e17069
Fix logic
2017-08-09 10:10:46 -07:00
Mike Jolley
2def474421
Order calc
2017-08-09 16:19:10 +01:00
Mike Jolley
f0a9050241
HTML
2017-08-09 16:17:30 +01:00
Mike Jolley
f480c98d11
Data stores
2017-08-09 16:17:02 +01:00
Mike Jolley
d0cd8b3022
WC_Order_Item_Discount
2017-08-09 16:16:44 +01:00
Mike Jolley
722ac5ad78
Load order items
2017-08-09 16:16:36 +01:00
Mike Jolley
6c0750e2e9
Discount lines and button
2017-08-09 14:55:42 +01:00
Mike Jolley
d40edfe9a6
add_order_discount ajax method
2017-08-09 14:54:30 +01:00
Mike Jolley
858d3842ea
Move method so it's available in admin
2017-08-09 14:54:05 +01:00
Mike Jolley
73350e5418
Fake round half down in PHP 5,2
...
Fixes unit tests.
2017-08-09 11:59:50 +01:00
Mike Jolley
30a85e9f8d
Merge branch 'pr/16036'
2017-08-09 10:11:20 +01:00
Mike Jolley
140771e759
Merge branch 'master' into improvement/versions
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# assets/css/helper-rtl.css
# assets/css/helper.css
# assets/css/twenty-seventeen-rtl.css
# assets/css/twenty-seventeen.css
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-08-09 10:08:06 +01:00
Mike Jolley
8af2ce8a20
Merge pull request #16379 from EmilEriksen/master
...
Store status_transition in a local variable and reset it before firing hooks in order to avoid infinite loops
2017-08-09 10:01:24 +01:00
Josh Smith
d8b6b2042a
Merge remote-tracking branch 'upstream/master'
2017-08-08 21:20:35 +00:00
Mike Jolley
86a225a8d9
Newsletter signup
2017-08-08 18:00:47 +01:00
Mike Jolley
5443f44fcc
Improve location step
2017-08-08 17:32:21 +01:00
Mike Jolley
c486cea531
copy fix
2017-08-08 17:21:01 +01:00
Mike Jolley
e82ca1c1a6
Styling and unknown plugin detection
2017-08-08 17:12:50 +01:00
Mike Jolley
6e59b540e1
Merge pull request #16382 from woocommerce/improve/16165
...
Allow define customer ID in wc_get_account_formatted_address()
2017-08-08 16:17:26 +01:00
Claudio Sanches
d8af7cdeec
Merge pull request #16380 from woocommerce/fix/16316
...
Fix filename image handling
2017-08-08 12:11:17 -03:00
Claudio Sanches
56f654eb4c
Allow define customer ID in wc_get_account_formatted_address()
...
This should help 3rd party integrations, like custom emails or invoices.
Releated to #16165
2017-08-08 12:08:06 -03:00
Mike Jolley
e9c3ebebdc
Merge branch 'master' into feature/discounts-class
...
# Conflicts:
# includes/abstracts/abstract-wc-data.php
# woocommerce.php
2017-08-08 15:49:59 +01:00
Mike Jolley
3778918a0a
Merge branch 'master' into pr/14751
...
# Conflicts:
# includes/class-wc-structured-data.php
2017-08-08 15:28:31 +01:00
Mike Jolley
396faa19d7
phpcs
2017-08-08 15:25:32 +01:00
Mike Jolley
90f0a835b1
Fix filename image handling
2017-08-08 15:00:03 +01:00
Mike Jolley
866f1cd818
Merge branch 'master' into pr/16191
...
# Conflicts:
# includes/wc-account-functions.php
2017-08-08 13:20:17 +01:00
Mike Jolley
a97d3470db
Merge branch 'master' into pr/16164
...
# Conflicts:
# includes/class-wc-cache-helper.php
2017-08-08 13:12:37 +01:00
Mike Jolley
73eb086696
Merge branch 'pr/16165'
2017-08-08 13:10:16 +01:00
Mike Jolley
2f6aaa85bb
Avoid using meta directly
2017-08-08 13:04:27 +01:00
Mike Jolley
19d0841b70
Merge pull request #16340 from grey-rsi/wc-emails-filters
...
Add filters to make possible send emails in language different from d…
2017-08-08 11:53:36 +01:00
Mike Jolley
202498298e
Merge pull request #16374 from woocommerce/fix/12273-4
...
Product attributes helper functions implementation
2017-08-08 11:51:38 +01:00
Emil Kjær Eriksen
ee830d19b4
Store status_transition in a local variable and reset it before firing hooks
2017-08-08 12:47:16 +02:00
Mike Jolley
a4b81c2a22
Merge pull request #16252 from helgatheviking/issues-16221-settings-save-order
...
Move settings init/save to load-$settings hook. Closes #16221
2017-08-08 11:40:17 +01:00
Mike Jolley
684a2b22ed
typo
2017-08-08 11:07:36 +01:00
Mike Jolley
e7ff4186eb
remove include
2017-08-08 10:52:54 +01:00
Mike Jolley
ceb191e73e
The world is not ready for WC_Cart_Item
2017-08-08 10:52:31 +01:00
Mike Jolley
6dc67ee133
phpcs
2017-08-08 10:51:35 +01:00
Mike Jolley
81806617d7
Fix total and rounding logic for tests
2017-08-08 09:24:26 +01:00
Claudio Sanches
1a9b499be8
Apply attribute helper functions to importers and REST API
2017-08-07 22:34:25 -03:00
Claudio Sanches
70e0ab857e
Implement attributes functions to admin
2017-08-07 22:34:20 -03:00
Claudio Sanches
a3a3d7c242
Initial implementation of product attribute helper functions
2017-08-07 22:33:57 -03:00
Claudio Sanches
2796615054
Flush rewrite rules after delete attributes
2017-08-07 22:30:14 -03:00
Claudio Sanches
6dfcf95b5e
Properly update and delete attributes
...
- Now keep all the original hooks without deprecated anything,
- Update product metadata and terms metadata while changing slugs.
- Delete terms while deleting attributes
2017-08-07 22:29:37 -03:00
Claudio Sanches
29e73d27f4
Introduced woocommerce_attribute_created
...
And flush rewrite rules when created attribute.
2017-08-07 22:26:46 -03:00
Claudio Sanches
dd36ae87d3
Improved wc_create_attribute() inline doc
2017-08-07 22:26:42 -03:00
claudiulodro
c8a7ac8940
Unit tests
2017-08-07 14:31:58 -07:00
Claudio Sanches
53ea3c8b96
Merge branch 'master' into fix/16347
2017-08-07 16:36:36 -03:00
Claudiu Lodromanean
0286023878
Merge pull request #16367 from woocommerce/fix/16287
...
Fix variable stock status setting by using CRUD methods
2017-08-07 11:31:10 -07:00
Claudiu Lodromanean
dd094088b0
Merge pull request #16336 from woocommerce/fix/16241
...
Only return tax classes if product is taxable.
2017-08-07 10:02:02 -07:00
Mike Jolley
7a829036c2
Fix tests
2017-08-07 17:49:46 +01:00
Mike Jolley
f20081c33c
Merge pull request #16334 from woocommerce/fix/16253
...
Add precision to price filter
2017-08-07 17:19:44 +01:00
Mike Jolley
299fcc327c
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# includes/class-wc-cache-helper.php
2017-08-07 17:11:26 +01:00
Mike Jolley
622b4b35d6
Remove white space
2017-08-07 17:10:36 +01:00
Mike Jolley
baa5da8e6e
Merge branch 'master' into pr/16301
2017-08-07 17:10:18 +01:00
Claudiu Lodromanean
f7ef7588b9
Merge pull request #16360 from woocommerce/fix/16337
...
nocache headers during form actions
2017-08-07 08:59:34 -07:00
Mike Jolley
8db31eefe2
Fix variable stock status setting by using CRUD methods
...
Closes #16287
2017-08-07 15:16:38 +01:00
Boro Sitnikovski
9022261f13
Fix cache issue.
...
From discussion with @mikejolley:
The class is not doing its job of invaliding cache after adding a line item.
At any point (action hook), a 3pd can call `get_items` and it will cache the items for that particular order so any subsequent calls to it will return bad data.
Unless you ADD items, `get_items` will return good data.
So adding items in this case is not invalidating, so that's the bug.
Relates to: https://github.com/woocommerce/woocommerce-bookings/issues/1310
2017-08-07 15:29:17 +02:00
Mike Jolley
d46988b6a6
Improve add payment method logic
2017-08-07 12:39:16 +01:00
Mike Jolley
847e4859f8
Include add_payment_method in gateway abstract
2017-08-07 12:38:50 +01:00
Mike Jolley
862f67d98b
wc_get_var helper method
2017-08-07 11:02:19 +01:00
Mike Jolley
e2839d3c09
Add nocache_headers to early update actions
2017-08-07 11:02:02 +01:00
Mike Jolley
af1dce3544
Set nocache constants on all nocache_headers
2017-08-07 11:01:38 +01:00
Boro Sitnikovski
d1dc2a4390
Fix fatal error on deleting refunded order
2017-08-07 11:38:10 +02:00
Mike Jolley
2b0a672ba7
Merge pull request #16348 from jamesckemp/patch-6
...
Add sorting ID and menu orders to sorting action
2017-08-06 20:36:34 +01:00
Patrick Garman
1314158a14
Add “site size” areas to system status report
...
The size of the site very much impacts the status of the site. This type of information would be extremely helpful when supporting a site.
1) post counts - can reveal high volumes of specific kinds of post types both within WC (orders, products, etc) or outside (revisions, attachments, third party ones, etc)
2) table sizes - a site with a 5MB postmeta table is very different than a site with a 5GB postmeta table, which is different than a site with a 50GB postmeta table, and require different kinds of support and focus.
2017-08-06 01:15:10 -04:00
James Kemp
8ebe8a1720
Add sorting ID and menu orders to sorting action
2017-08-05 12:05:47 +01:00
Josh Smith
644ac674d7
[ #12517 ] Replace download_id on customer download and product download with static UUID instead of filename based hash, to preserve download links, logs, and permissions across filename changes
2017-08-05 04:42:31 +00:00
Josh Smith
677b81174e
[ #12517 ] Add statistic on download count to download permissions listings on order details page
2017-08-05 04:35:37 +00:00
claudiulodro
48f03b15ed
Use correct server variable
2017-08-04 14:27:22 -07:00
Josh Smith
dfeead42a5
[ #12517 ] Add download log report to WC admin reports, with link from Order details Downloads section
2017-08-03 21:24:53 +00:00
claudiulodro
c634ac6cf1
Prevent auto updates if dangerous.
2017-08-03 11:42:19 -07:00
Claudiu Lodromanean
ab543148ff
Merge pull request #16335 from woocommerce/fix/16309
...
Add shortcode to description output in structured data
2017-08-03 11:09:16 -07:00
sergey.r
62d078edf5
Add filters to make possible send emails in language different from default
2017-08-03 14:58:44 +03:00
Mike Jolley
958bd092ba
Add date/time to hover.
...
Closes #16331
2017-08-03 08:48:17 +02:00
Mike Jolley
6af275da6e
Only return tax classes if product is taxable.
...
Fixes #16241
2017-08-03 08:44:02 +02:00
Mike Jolley
827083c051
Add shortcode to description output in structured data
...
Closes #16309
2017-08-03 08:28:35 +02:00
Mike Jolley
52b10d8be4
Merge pull request #16313 from opportus/master
...
Fixes #16010
2017-08-03 08:24:12 +02:00
Mike Jolley
d79ebf7a2f
Typo in tag text, fixes #16332
2017-08-03 08:19:57 +02:00
Mike Jolley
39af6fbe94
Add precision to price filter
...
Closes #16253
2017-08-03 08:17:23 +02:00
Mike Jolley
cbb8d48f5f
Merge pull request #16291 from woocommerce/improvement/13645
...
Product search helpers.
2017-08-03 08:03:37 +02:00
claudiulodro
338f51df31
Remove duplicate class
2017-08-02 14:59:01 -07:00
claudiulodro
7f614d17d4
Modularize to corral different areas better
2017-08-02 14:57:17 -07:00
claudiulodro
80708255ee
Fix inc tax price calculation
2017-08-02 11:07:33 -07:00
claudiulodro
7c0afc1fed
Comments
2017-08-01 15:24:15 -07:00
claudiulodro
9b22463c69
Little cleanup
2017-08-01 15:17:35 -07:00
claudiulodro
343b3913a4
Updates screen modal.
2017-08-01 15:04:11 -07:00
claudiulodro
91f1d41842
Clarify logic
2017-08-01 13:21:23 -07:00
claudiulodro
5e8f957f3a
Formatting
2017-08-01 12:52:12 -07:00
Claudiu Lodromanean
46090bca0d
Merge pull request #16302 from bekarice/fix/deprecation-notice-product-type
...
Fix PHP deprecation notice
2017-08-01 10:55:48 -07:00
opportus
f448c692ca
Fixes #16010
...
Allows single SD item having a `@context`
2017-08-01 14:32:40 +02:00
Mike Jolley
4a0ea16eda
Defer re-calc when adding grouped products to cart
...
Closes #16235
2017-08-01 13:36:46 +02:00
claudiulodro
036d709b19
Use item subtotal for discount item price
2017-07-31 14:44:51 -07:00
Beka Rice
e78b4d4d1e
Fix PHP deprecation notice
2017-07-31 17:16:08 -04:00
claudiulodro
8fac8fc80b
Cleanup
2017-07-31 13:18:39 -07:00
claudiulodro
43cbcd04ef
Remove extra calcs and populate item totals
2017-07-31 11:48:34 -07:00
Marian Kadanka
6183a840db
Fix product category archives not being cached due to inconsistency
...
Wordpress function get_queried_object_id() returns conflicting IDs
for pages and product category archives which in current
implementation results in product category archives possibly not
being cached if their tag ID conflicts with Woocommerce's special
page IDs - cart, checkout, etc.
Let's switch to implementation using is_page() to address this.
2017-07-31 20:47:19 +02:00
Claudiu Lodromanean
95ffa441e0
Merge pull request #16290 from woocommerce/feature/15500-1
...
Soft deprecated WC_Cart->coupon_applied_count
2017-07-31 09:16:33 -07:00
Josh Smith
3953fd081c
[ #12517 ] Get data for get_download_count from download log table
2017-07-31 03:44:11 +00:00
Josh Smith
399269a4f1
[ #12517 ] Implement logging product downloads into new logging table
2017-07-30 22:38:17 +00:00
Josh Smith
3959cf09a5
Fix comments for setter functions on WC_Customer_Download
2017-07-30 19:26:32 +00:00
claudiulodro
e1fad0d7eb
Bring up to date with master
2017-07-28 14:27:19 -07:00
Claudio Sanches
77855f9d07
Soft deprecated WC_Cart->coupon_applied_count
2017-07-28 18:12:56 -03:00
Claudio Sanches
b8305f150e
Use WC_Cart_Totals to calculate totals
2017-07-28 17:41:46 -03:00
Claudio Sanches
de52221004
Fixe fatal error while trying to sum an empty array
2017-07-28 17:38:43 -03:00
claudiulodro
d9c2b2cdea
Cleanup
2017-07-28 13:38:12 -07:00
claudiulodro
8dc0641149
Remove uneeded parse args
2017-07-28 13:31:53 -07:00
claudiulodro
b5e5f035fb
Clean up
2017-07-28 13:27:19 -07:00
Will G
3a6a8872f3
Fix script 'async' property typo in WP_Admin_Help
2017-07-28 16:05:06 -04:00
claudiulodro
e335724c50
Finalize product query
2017-07-28 11:59:44 -07:00
Mike Jolley
0839f5716b
phpcs
2017-07-28 17:49:39 +01:00
Mike Jolley
c16df62b54
Fix tests and bootstrap
2017-07-28 17:43:08 +01:00
Mike Jolley
64e04c614a
fix variable in calculate_discounts
2017-07-28 16:43:51 +01:00
Mike Jolley
14717d4ebb
fix call to apply_coupon_fixed_cart_remainder
2017-07-28 16:33:02 +01:00
Mike Jolley
c7cb46a524
Fix array shift usage
2017-07-28 16:31:11 +01:00
Mike Jolley
9170b61a1c
fix in cents logic direction.
2017-07-28 16:17:57 +01:00
Mike Jolley
e23e55bb27
Methods for getting specific totals and discounts whilst keeping storage in a single array
2017-07-28 15:35:41 +01:00
Mike Jolley
51fbb1aec3
set_items_from_cart
2017-07-28 13:02:39 +01:00
Mike Jolley
9b458f9368
Remove private validation methods from coupon and use discounts class
2017-07-28 12:20:49 +01:00
Mike Jolley
5ed2f147a7
woocommerce_coupon_is_valid
2017-07-28 11:51:57 +01:00
claudiulodro
b56b87c97b
Good progress on wc_discount and manual discount handling
2017-07-27 14:08:38 -07:00
claudiulodro
3a11e345a6
Fix some things and hook up discount class
2017-07-27 11:08:22 -07:00
claudiulodro
409320482a
Get everything working again
2017-07-27 10:37:20 -07:00
claudiulodro
0aa9894bae
Merge remote-tracking branch 'origin/feature/discounts-class' into HEAD
2017-07-27 09:32:08 -07:00
Claudiu Lodromanean
74d33bd510
Merge pull request #16275 from woocommerce/feature/discounts-class-totals-refactored
...
Cart totals class and calculation improvements
2017-07-27 09:01:55 -07:00
Mike Jolley
fcfa510445
Fixed totals tests
2017-07-27 16:57:05 +01:00
Mike Jolley
decda1edf6
Merge pull request #16168 from webspecnick/add-filter-to-export-product-args
...
Add a filter to arguments passed to wc_get_products during prepare_data_to_export()
2017-07-27 15:58:39 +01:00
Mike Jolley
f47bb39a06
Merge pull request #15479 from woocommerce/add/poc-no-managing-meta-directly
...
Proof of concept to error when internal meta props are accessed directly
2017-07-27 15:54:24 +01:00
Claudio Sanches
fc5f199906
Deprecated WC_Coupon validation methods
2017-07-27 11:46:17 -03:00
Mike Jolley
795d8fa2fd
Tests
2017-07-27 15:46:02 +01:00
Mike Jolley
ded2be8d28
Legacy filters
2017-07-27 15:31:10 +01:00
Mike Jolley
6054519605
Discount taxes
2017-07-27 13:48:58 +01:00
Mike Jolley
98db84dfdd
Passing tests
2017-07-27 11:01:48 +01:00
Mike Jolley
c6b8ad598f
Precision functions
2017-07-27 10:51:08 +01:00
Mike Jolley
306db69eaf
Remove order subclass
2017-07-27 10:49:47 +01:00
Mike Jolley
ad2e408a66
Merge pull request #16267 from Valks/patch-1
...
Fix incorrect access level in class-wc-product-variation.php
2017-07-27 08:31:13 +01:00
claudiulodro
cfb04f0ead
Boolval wasnt added til php 5.5
2017-07-26 13:48:36 -07:00
claudiulodro
d15a2f5f6a
Make tax calculation optional
2017-07-26 13:46:50 -07:00
claudiulodro
ea0bd7980a
Get order totals working
2017-07-26 12:06:05 -07:00
claudiulodro
77838d05bb
Fix unknown item variable
2017-07-26 10:25:08 -07:00
Mike Jolley
b9b4336c1b
Removed some duplicate keys
2017-07-26 16:50:34 +01:00
Claudiu Lodromanean
b10d61eef3
Merge pull request #16219 from Nabesaka/master
...
Output custom attributes to radio inputs
2017-07-26 08:15:16 -07:00
Claudiu Lodromanean
2900ceca30
Merge pull request #16213 from woocommerce/fix/16206
...
Remove duplicate inherited method
2017-07-26 08:05:27 -07:00
Mike Jolley
abdb325d83
Order items
2017-07-26 15:47:30 +01:00
Valks
dd857d25eb
Update class-wc-product-variation.php
...
The variable $post_type is incorrectly public, must be protected.
2017-07-27 00:00:21 +10:00
Mike Jolley
1faae6a7aa
Order subclass
2017-07-26 14:32:43 +01:00
Mike Jolley
250dabaf41
WC_Cart_Totals subclass
2017-07-26 12:44:06 +01:00
Mike Jolley
052be04ee7
Use passed through cart item, rather than try to generate a custom one
2017-07-26 11:26:50 +01:00
Mike Jolley
e9f35febd0
Store cart item as part of items array
2017-07-26 11:26:35 +01:00
Mike Jolley
457a7c2a32
phpcs/tidy discounts class
2017-07-26 11:07:17 +01:00
Mike Jolley
58b54673d1
Merge pull request #16256 from woocommerce/feature/discounts-coupon-validation
...
Add coupon validation logic to WC_Discounts
2017-07-26 10:21:56 +01:00
Claudio Sanches
0f58d0cfc1
Merge pull request #16214 from woocommerce/fix/16179
...
Ensure we have a http URL for file path replacements
2017-07-26 01:21:58 -03:00
Claudio Sanches
70c2f7436b
Merge pull request #16233 from woocommerce/fix/16232
...
Check data is an array in set_variation method
2017-07-26 01:15:01 -03:00
Claudio Sanches
f0dfff4a86
Sync with feature/discounts-class
2017-07-25 22:41:18 -03:00
Claudio Sanches
2573adedd5
Moved coupon validation logic to WC_Discounts
2017-07-25 22:36:41 -03:00
claudiulodro
dfee2c0cbe
Maybe integrate cart and total classes
2017-07-25 14:44:54 -07:00
Mike Jolley
889a3cfdd5
Merge pull request #16111 from woocommerce/fix/15986
...
Improve tracking page validation
2017-07-25 21:04:16 +01:00
Kathy Darling
fe0c190894
Move settings init/save to load-$settings hook. Closes #16221
2017-07-25 14:43:26 -04:00
claudiulodro
ec6d11bd67
Just needs visibility support and cleanup
2017-07-25 10:01:24 -07:00
Mike Jolley
b68adf748b
Tests pass
2017-07-25 17:25:06 +01:00
claudiulodro
689c5e7006
Better code
2017-07-25 08:36:01 -07:00
Mike Jolley
474799889f
Disable discounts tests until rewritten
2017-07-25 15:57:58 +01:00
Mike Jolley
40cb2c9cb0
phpcs
2017-07-25 15:24:00 +01:00
Mike Jolley
4c4f26ff41
Changes to allow shipping to be calculated from totals class
...
Moved some items from
https://github.com/woocommerce/woocommerce/pull/11889/files to support
this.
2017-07-25 15:11:32 +01:00
Mike Jolley
e8e200195f
fees pass
2017-07-25 14:05:49 +01:00
Fulvio Notarstefano
7781b2ea4d
[ #16242 ] Add context to woocommerce_backordered_item_meta_name
2017-07-25 11:54:03 +08:00
claudiulodro
cdbead8961
Clean up and tests
2017-07-24 15:05:23 -07:00
Mike Jolley
ee545e7793
Totals progress
2017-07-24 17:21:08 +01:00
Mike Jolley
504a216582
Check data is an array in set_variation method
...
Closes #16232
2017-07-24 10:43:34 +01:00
Mike Jolley
45a9826a80
Totals class and tests files
2017-07-23 12:05:11 +01:00
Mike Jolley
45258a7e02
Started adding totals class from https://github.com/woocommerce/woocommerce/pull/11889/files
2017-07-21 16:49:52 +01:00
Paul Robinson
7c01201e34
Add custom attributes into radio fields for woocommerce_form_field
2017-07-21 14:23:21 +01:00
Mike Jolley
83b60573fa
Framework for discount class
2017-07-21 14:22:40 +01:00
Mike Jolley
fd12c344f8
Ensure we have a http URL for file path replacements
...
Closes #16179
2017-07-21 11:11:17 +01:00
Mike Jolley
e44450a40c
Remove duplicate inherited method
...
Closes #16206
2017-07-21 10:39:24 +01:00
Claudio Sanches
cb3e1de0be
Fixed coding standards
2017-07-20 18:14:53 -03:00
Mike Jolley
499519eaac
WC_Discount class
2017-07-20 20:50:09 +01:00
Mike Jolley
e5ec0e66e3
fixed discount
2017-07-20 20:33:27 +01:00
Jaydeep Rami
46d3638089
Fix missing return statement ( #16148 )
...
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
2017-07-20 18:01:14 +01:00
Mike Jolley
0e96bd8a93
Discount rows
2017-07-20 17:34:30 +01:00
Claudio Sanches
48cfff4ab1
Merge pull request #16199 from woocommerce/fix/16145
...
Unset variable prices on read.
2017-07-20 12:39:19 -03:00
Mike Jolley
06c1a2ad8d
apply discount
2017-07-20 14:33:38 +01:00
Mike Jolley
3faa1c1ee9
Unset variable prices on read.
...
Closes #16145
2017-07-20 12:48:14 +01:00
Adrian Mörchen
d7484336c1
Fixed wrong class reference in comment
2017-07-20 13:29:54 +02:00
Saul Fautley
68470b51a4
Updated structured data for products
...
- Replaced outdated `priceSpecification` with `AggregateOffer`.
- Restructured data according to Google's latest specifications.
- Use product short_description if available.
2017-07-19 18:53:02 +02:00
Mike Jolley
f77fc21785
test_get_applied_coupons
2017-07-19 16:17:58 +01:00
Mike Jolley
24fcf52c59
Store applied_coupons
2017-07-19 15:55:56 +01:00
Claudio Sanches
18873ac9a7
Merge pull request #16189 from woocommerce/update/16153
...
Use comment_status input name
2017-07-19 11:23:06 -03:00
Mike Jolley
916294b7d0
Use comment_status input name
...
Closes #16153
2017-07-19 15:18:33 +01:00
Claudio Sanches
0a5cbae506
Merge pull request #16188 from woocommerce/fix/16184
...
Unchecked checkbox should be an empty string
2017-07-19 11:09:39 -03:00
Mike Jolley
578da2d126
Unchecked checkbox should be an empty string
...
Closes #16184
2017-07-19 14:58:46 +01:00
Claudio Sanches
af4c8b4d34
Merge pull request #16186 from woocommerce/fix/16157
...
Fix copy pasta errors in refunded email template
2017-07-19 10:52:23 -03:00
Claudio Sanches
eedc83b037
Merge pull request #16185 from woocommerce/fix/16156
...
Add placeholders array used in descriptions and for find and replace
2017-07-19 10:51:53 -03:00
Mike Jolley
16870c9c25
Fix copy pasta errors in refunded email template
...
Closes #16157
2017-07-19 14:30:47 +01:00
Mike Jolley
28cb0909c8
Add placeholders array used in descriptions and for find and replace
...
Fixes #16156
2017-07-19 14:25:00 +01:00
Mike Jolley
3c12a06c46
Limit to x
2017-07-19 13:49:22 +01:00
Mike Jolley
dd7fe5f158
More tests and precision fixes
2017-07-19 12:26:01 +01:00
Mike Jolley
8d277a263b
Sort by order + zone ID as a fallback in shipping zones
...
Fixes #16170
2017-07-19 10:16:50 +01:00
jaydeeprami
55100562b3
Fix typo in '@oaram' to '@param'
2017-07-19 08:14:41 +05:30
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
Nick Hoobin
25038f6d0f
Add a filter to arguments passed to wc_get_products during prepare_data_to_export()
2017-07-18 10:38:36 -05: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
Paul Wilde
b64d855d96
Introduce `wc_get_account_formatted_address` function which removes a bunch of logic outside of the my-account template file.
2017-07-18 15:18:53 +01:00
Paul Wilde
60bbb41be8
Introduce `wc_get_account_orders_actions` function to reduce the amount of logic inside the account orders template files.
2017-07-18 15:03:26 +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
Mike Jolley
0d7cb826cb
Restore transient
2017-07-17 19:36:45 +01:00
Mike Jolley
5642ee0c4d
Only check active plugins
2017-07-17 19:35:14 +01:00
Mike Jolley
0b606c8bbe
Styling and code tidy
2017-07-17 19:30:21 +01:00
Mike Jolley
ece770490f
Escape and localise
2017-07-17 18:14:38 +01:00
Mike Jolley
809ff9c31d
correct escaping
2017-07-17 18:13:18 +01:00
Mike Jolley
8c17027eb6
Merge branch 'master' into improvement/versions
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# assets/css/helper-rtl.css
# assets/css/helper.css
# assets/css/twenty-seventeen-rtl.css
# assets/css/twenty-seventeen.css
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
# assets/css/woocommerce-rtl.css
# assets/css/woocommerce.css
2017-07-17 18:04:28 +01: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
terence1990
f93413920b
Changed template name to receipt
2017-07-15 17:41:34 +01:00
claudiulodro
35c4c7fbe6
v2
2017-07-14 13:47:29 -07:00
claudiulodro
129763dadf
Split up notices
2017-07-14 12:44:16 -07: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
claudiulodro
8c8684b8aa
Move meta query init above sku query
2017-07-14 10:10:37 -07:00
claudiulodro
96bc5e6f95
cleanup
2017-07-14 10:07:18 -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
claudiulodro
b04534bb85
Hook everything up to wc_product_query
2017-07-14 10:01:25 -07:00
claudiulodro
f66198c37d
Initial working wc_get_products
2017-07-14 09:50:20 -07: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
claudiulodro
40198bf2c8
Modal beta
2017-07-13 15:38:12 -07: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
claudiulodro
addee6335c
Save incase of accidental update
2017-07-13 13:16:35 -07:00
claudiulodro
20ebe8c193
Modal
2017-07-13 12:47:13 -07: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
claudiulodro
45ba7fcbbb
Corral things together
2017-07-13 11:00:39 -07: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
ac4d2db43a
Improve tracking page validation
...
Ensures error messages are vague but reflect the posted data.
Closes #15986
2017-07-13 14:50:30 +01: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
claudiulodro
753979ec49
WC_Product_Query
2017-07-12 13:58:39 -07:00
claudiulodro
b355e016cd
Do notice in a pop-up
2017-07-12 12:38:19 -07:00
Konstantin Kovshenin
75e3f3973b
Helper: Fix plugin information modals for some extensions.
...
Adds a woo- prefix to the slug when fetching update information
for themes and extensions. Allows us to look up these slugs later
when fetching plugin information and pass the correct product id
to the /info endpoint.
2017-07-12 19:14:48 +03:00
Konstantin Kovshenin
c91922a004
Helper: Add a label to lifetime subscriptions.
2017-07-12 18:37:10 +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
claudiulodro
0f134d2b6f
Begin product query
2017-07-12 07:44:53 -07: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
claudiulodro
8dd21ec1c4
Resolve merge conflicts
2017-07-11 12:11:01 -07:00
claudiulodro
c557a71f14
Better phrasing
2017-07-11 12:04:43 -07:00
claudiulodro
0444cdef3c
Initial notice implementation
2017-07-11 11:59:39 -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
claudiulodro
f79c4a254c
Good progress
2017-07-11 07:52:40 -07: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
Terence O'Donoghue
43eaa8356a
Fixed template reference spacing
2017-07-11 09:53: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
Mike Jolley
4f66d214fa
Merge pull request #15829 from woocommerce/fix/15725
...
Use type check in coupon constructor
2017-06-29 22:42:43 +01:00
Mike Jolley
3bfd2bab48
Prevent extra slashes on meta values
...
by_mid functions do not expect slashes
Fixes #15868
2017-06-29 22:41:11 +01:00
claudiulodro
6706da6d45
Move to prevent undefined errors
2017-06-29 11:46:30 -07:00
claudiulodro
0db60b56c9
Re-add removed line.
2017-06-29 11:43:30 -07:00
Claudiu Lodromanean
62800a68f9
Merge pull request #15862 from woocommerce/fix/exclude-comment-where
...
Comment feed where clauses should be appended
2017-06-29 11:23:08 -07:00
claudiulodro
587dc56d9a
Formatting
2017-06-29 11:16:26 -07:00
claudiulodro
2948e46cb4
Add tool for adding address indexes.
2017-06-29 11:14:09 -07:00
Mike Jolley
ac32384a74
Merge pull request #15835 from woocommerce/display-wc-page-post-states
...
Add post states for WC pages
2017-06-29 12:42:10 +01:00
Mike Jolley
ad48fd8069
Comment feed where clauses should be appended
...
Applies to both exclude_order_comments_from_feed_where and
exclude_webhook_comments_from_feed_where
They need to append the additonal where clause to avoid SQL errors on
the feed URL.
2017-06-29 11:29:54 +01:00
claudiulodro
d19de0364c
Revert "Add billing+shipping indices to old orders"
...
This reverts commit 2d48099f20
.
2017-06-28 13:40:55 -07:00
claudiulodro
2d48099f20
Add billing+shipping indices to old orders
2017-06-28 12:03:18 -07:00
Claudio Sanches
6228e356b1
Merge pull request #15842 from woocommerce/fix/15840
...
Skip non existing rows on merge
2017-06-28 11:19:21 -03:00
Claudio Sanches
41cd12c123
Merge pull request #15844 from woocommerce/update/15839
...
Update MX states and MX state data
2017-06-28 11:14:48 -03:00
Claudio Sanches
70ae880f29
Merge pull request #15843 from woocommerce/fix/15834
...
Force date created on update if not set.
2017-06-28 11:11:40 -03:00
Mike Jolley
429e4bfed1
Merge pull request #15837 from thenbrent/revert_pr_14706
...
Revert pull request #14706 with changes to Abstract_WC_Order::get_item() to avoid critical fatal errors
2017-06-28 13:31:57 +01:00
Mike Jolley
b83f3cb9af
handle MX state updates
2017-06-28 12:57:37 +01:00
Mike Jolley
49f2dae450
Merge pull request #15823 from ChaseWiseman/fix-checkout-shipping-calculator
...
Don't output the shipping calculator markup on the Checkout page
2017-06-28 12:30:47 +01:00
Mike Jolley
8dcbf9aa8d
Force date created on update if not set.
...
Closes #15834
2017-06-28 12:25:23 +01:00
Mike Jolley
e937047d04
Skip non existing rows on merge
2017-06-28 12:06:33 +01:00
Brent Shepherd
1992d90d37
Revert "Merge pull request #14706 from crodas/make_get_item_consistent"
...
This reverts commit 56ffa3d2aa
, reversing
changes made to 64a60de24f
.
2017-06-27 22:28:23 -07:00
Caleb Burks
029c28a462
Fix copy/paste fail
2017-06-27 23:55:14 -05:00
Caleb Burks
290a90c8f8
Add post states for WC pages
2017-06-27 23:38:09 -05:00
claudiulodro
506c01f56a
Fix codesniffer violations
2017-06-27 14:19:59 -07:00
claudiulodro
4e7d3333cf
Use type check in coupon constructor
2017-06-27 13:53:56 -07:00
Mike Jolley
1265633286
If stock changes between page load and editing, reject stock changes
...
Fixes #15818
2017-06-27 21:22:46 +01:00
Claudio Sanches
b9c76c568b
Prefer "live rates form"
2017-06-27 17:00:48 -03:00
Claudio Sanches
a0425ad1b9
Remove Canada Post duplicated description
...
Duplicated with description from
includes/admin/class-wc-admin-setup-wizard.php:506
2017-06-27 16:57:46 -03:00
Chase Wiseman
f8a040ad04
Only output the shipping calculator markup on the cart page
2017-06-27 11:37:55 -07:00
Claudio Sanches
5bc03b41cf
Redirect ?customer-logout=true to the correct endpoint
...
Checking also for `'true' === $wp->query_vars['customer-logout']` to avoid infite loops when permalinks are deactivated and "My account" is the front page.
Closes #15789
2017-06-27 14:10:20 -03:00
Claudio Sanches
be0fc10bfe
Merge pull request #15817 from woocommerce/fix/15795
...
Only set default if no value is set in API settings
2017-06-27 13:05:58 -03:00
Claudio Sanches
fe542d4d4e
Merge pull request #15816 from woocommerce/fix/15808
...
Add slashes to meta value in data store before passing to WP functions
2017-06-27 13:03:13 -03:00
Claudio Sanches
fbd92c8105
Merge pull request #15815 from woocommerce/fix/15794
...
Prevent duplicate sections in tax and api endpoints
2017-06-27 13:01:05 -03:00
Claudiu Lodromanean
5bbe82571f
Merge pull request #15814 from woocommerce/fix/15804
...
Fix notice and missing terms in importer
2017-06-27 08:45:52 -07:00
Mike Jolley
afcfb4eb35
Only set default if no value is set in API settings
2017-06-27 15:29:31 +01:00
Mike Jolley
d568069c37
Add slashes to meta value in data store before passing to WP functions
...
Fixes #15808
2017-06-27 15:11:32 +01:00
Mike Jolley
33a4e74697
Prevent duplicate sections in tax and api endpoints
2017-06-27 14:58:33 +01:00
Mike Jolley
26b98bc3df
Fix notice and return correct attribute ID
2017-06-27 14:39:30 +01:00
Mike Jolley
591cac37d1
Increased batch size
2017-06-27 14:39:18 +01:00
Daniel Hüsken
d6377c9609
will improve #15806
2017-06-27 14:43:51 +02:00
Daniel Hüsken
84881c3e36
Importer fix file type detection on local path
2017-06-27 14:21:05 +02:00
Manos Psychogyiopoulos
c8e166f706
Add woocommerce_product_importer_formatting_callbacks filter
2017-06-27 01:49:18 +03:00
Manos Psychogyiopoulos
7778bf894e
Allow DRY product importer integration
2017-06-26 23:49:48 +03:00
Claudiu Lodromanean
a05252753f
Merge pull request #15790 from woocommerce/fix/15781-2
...
Remove BOM signature from imported results
2017-06-26 12:49:59 -07:00
Claudio Sanches
ec1500d1b7
Remove BOM signature from imported results
...
Fix missing mapping for ID column
2017-06-26 16:08:05 -03:00
Claudio Sanches
ab9c331a8d
Merge pull request #15785 from woocommerce/fix/15781
...
Importer tweaks and fixes
2017-06-26 16:07:19 -03:00
claudiulodro
ee9c762bdc
Enqueue selectWoo
2017-06-26 11:50:08 -07:00
Mike Jolley
afd43b3b78
Look for mapped ID when parsing ID field
2017-06-26 18:41:51 +01:00
Mike Jolley
dd25736d64
Clean up user is_paying_customer after deleting an order
2017-06-26 18:32:36 +01:00
Claudio Sanches
1fb11d0be7
Merge pull request #15783 from woocommerce/fix/15770
...
After duplicating variations, ensure the duplicated object is current
2017-06-26 13:41:17 -03:00
Mike Jolley
496b741d1c
Create placeholder when mapping relative ids
2017-06-26 17:40:20 +01:00
Mike Jolley
04a27389ef
Clean up failed imports
2017-06-26 14:11:27 +01:00
Mike Jolley
a907fd8627
get_catalog_ordering_args should cast orderby to string
...
Fixes #15769
2017-06-26 13:38:57 +01:00
Mike Jolley
372d7f6077
After duplicating variations, ensure the duplicated object is current
...
Fixes #15770
2017-06-26 12:54:46 +01:00
Mike Jolley
4972e83e51
Merge pull request #15775 from dixitadusara/issue/15772
...
issue solved Pass more params to woocommerce_duplicate_product_exclude_children filter
2017-06-26 12:24:37 +01:00
dixitadusara
f77d2184ca
issue solved Pass more params to woocommerce_duplicate_product_exclude_children filter
2017-06-26 12:34:20 +05:30
Claudio Sanches
783f2318c4
Fixed undefined variable for importer default mapping
2017-06-23 15:33:37 -03:00
Mike Jolley
5c2a69c668
Add BOM for excel
2017-06-23 17:19:50 +01:00
Mike Jolley
13d7be2422
Merge pull request #15755 from woocommerce/fix/15754
...
Fix method title escaping in zones
2017-06-23 16:17:54 +01:00
Mike Jolley
1d9148241c
Merge pull request #15751 from woocommerce/feature/helper
...
Helper copy update
2017-06-23 16:17:24 +01:00
Mike Jolley
43dc9ec823
Fix method title escaping in zones
...
Closes #15754
2017-06-23 12:50:32 +01:00
José Marques
22da32bd9c
Helper: removes unnecessary caps in copy
2017-06-23 12:49:05 +01:00
José Marques
f0f6495dc5
Helper: updates conpy and button class on connection screen
2017-06-23 09:29:20 +01:00
Claudio Sanches
25a2ee0ca8
Use default English mapping when English is not the current language
2017-06-22 18:07:12 -03:00
Claudio Sanches
1806590e71
Invert special importer mapping options to allow multiple keys
2017-06-22 18:06:10 -03:00
claudiulodro
7bb5dffc2f
Flip param count and priority
2017-06-22 09:10:52 -07:00
Claudiu Lodromanean
5ebc4a4010
Merge pull request #15740 from woocommerce/update/prime-term-caches
...
Update/prime term caches for product queries
2017-06-22 08:18:55 -07:00
Mike Jolley
d1ad5a92d2
Merge pull request #15721 from woocommerce/feature/helper
...
Helper Bug Fixes
2017-06-22 16:17:56 +01:00
Claudiu Lodromanean
a77a7c02c0
Merge pull request #15739 from woocommerce/fix/importer-15735
...
Minor importer fixes
2017-06-22 08:11:15 -07:00
Konstantin Kovshenin
29c000207a
Helper: Escape sites_active and sites_max on subscription output.
2017-06-22 17:17:49 +03:00
Konstantin Kovshenin
45a6c45b8f
Helper: Better code readability for primary/secondary classes.
2017-06-22 16:59:39 +03:00
Konstantin Kovshenin
0786c31d15
Helper: Escape `master_user_email` on output.
2017-06-22 16:49:10 +03:00
Konstantin Kovshenin
0cd10a12ef
Helper: Move subscription sorting into methods for PHP 5.2 compat.
2017-06-22 16:47:07 +03:00
Mike Jolley
67bc729ea5
update_post_caches for all posts at once
2017-06-22 13:39:17 +01:00
Mike Jolley
ccc3da9c17
Merge branch 'pr/15728'
2017-06-22 12:19:49 +01:00
Mike Jolley
8f70ebc1b5
woocommerce_product_importer_before_set_parsed_data
2017-06-22 12:19:19 +01:00
Mike Jolley
74cb2965b3
Ensure we have a parent
...
Fixes #15737
2017-06-22 12:06:10 +01:00
Gerhard Potgieter
b15e576f5b
Use !empty instead of isset for checking master_user_email
2017-06-22 11:10:33 +02:00
Konstantin Kovshenin
4cb1c8f7ce
Helper: Add missing period at the end of a sentence.
2017-06-22 11:28:28 +03:00
Konstantin Kovshenin
74da37890f
Helper: Fix undefined notices on button label and URL.
2017-06-22 11:26:26 +03:00
Claudio Sanches
8deca3b368
Merge pull request #15718 from woocommerce/update/noindex-cart
...
Disable search engines indexing core, dynamic, cart/checkout pages.
2017-06-21 16:35:26 -03:00
claudiulodro
fcd5460ec0
Check filetype in CSV upload
2017-06-21 11:50:03 -07:00
Claudiu Lodromanean
69d3234907
Merge pull request #15717 from woocommerce/fix/15715
...
Exclude sale products from category checks in coupon class
2017-06-21 11:00:01 -07:00
Mike Jolley
e06aa6f60a
Prime term cache before read
2017-06-21 17:09:39 +01:00
Konstantin Kovshenin
5b7070d2ea
Helper: Sort subscriptions by name.
2017-06-21 18:43:19 +03:00
Konstantin Kovshenin
e67babf77a
Helper: Fix download button class for expiring subscriptions.
2017-06-21 18:15:45 +03:00
Gerhard Potgieter
6d3e3fd5e5
Merge branch 'feature/helper' of github.com:woocommerce/woocommerce into feature/helper
2017-06-21 16:58:26 +02:00
Gerhard Potgieter
e08df8d2aa
Adjust messaging and display information for collaborator accounts on woocommerce.com subscription page.
2017-06-21 16:57:16 +02:00
Konstantin Kovshenin
346b446283
Helper: Fix label for maxed out subscriptions.
2017-06-21 17:50:34 +03:00
Frédéric Demarle
d563842126
CSV Importer: Add action before a row is parsed
2017-06-21 16:49:21 +02:00
Konstantin Kovshenin
41ea3f3f43
Helper: Pass a migrate flag if migrating during token exchange
2017-06-21 16:23:57 +03:00
Konstantin Kovshenin
16f2541e9b
Helper: Set helper compat screen slug to woothemes-helper.
...
Previously the helper compat screen used a different slug, but
since updates can be done without refreshing the screen via AJAX
the old menu item doesn't disappear until a full refresh. This fix
allows users to navigate to that same menu item and not get an
error.
2017-06-21 15:28:30 +03:00
Mike Jolley
dbe9705e4b
Disable search engines indexing core, dynamic, cart/checkout pages.
2017-06-21 12:52:52 +01:00
Mike Jolley
5ffff712e7
Merge pull request #15705 from woocommerce/update/cache-helper
...
Compare page IDs rather than URIs in the cache helper
2017-06-21 12:11:16 +01:00
Mike Jolley
31fccea25c
Exclude sale products from category checks in coupon class
...
Fixes #15715
2017-06-21 11:55:12 +01:00
Caleb Burks
cfbd56c04a
Remove some settings for grouped products
...
Purchase notes and Cross-sells aren’t needing as you can never add a grouped product to your cart or purchase it.
2017-06-20 21:04:56 -05:00
Caleb Burks
f13c4c3b30
Hide Cross-sells for external products
2017-06-20 20:56:54 -05:00
Claudiu Lodromanean
aab401c8f8
Merge pull request #15703 from woocommerce/fix/15689
...
Filter out non-visible products when outputting grouped products + prices
2017-06-20 14:50:50 -07:00
Claudiu Lodromanean
9399a8dca2
Merge pull request #15702 from woocommerce/fix/15697
...
Correctly map attribute labels to names
2017-06-20 14:46:45 -07:00
Mike Jolley
91511bd92a
Merge pull request #15631 from woocommerce/update/13738
...
Create a way to 'resend order details'
2017-06-20 15:09:10 +01:00
Mike Jolley
e4be09f6e2
Filter visible children when outputting grouped product prices
2017-06-20 15:01:23 +01:00
Mike Jolley
98684233dc
Filter visible children when outputting grouped products
2017-06-20 15:01:14 +01:00
Mike Jolley
ae0e03ef53
wc_products_array_filter_visible_grouped method
2017-06-20 15:00:58 +01:00
Mike Jolley
6a6aca4132
Correctly map attribute labels to names
...
Fixes #15697
2017-06-20 14:15:35 +01:00
Frédéric Demarle
4960af34aa
Add an action before importing a row
2017-06-20 14:25:23 +02:00
Mike Jolley
6cea4e87cc
Compare page IDs rather than URIs in the cache helper
2017-06-20 12:09:46 +01:00
Mike Jolley
22c79b2ba2
Merge pull request #15682 from 1do/master
...
Changed misspelled filter name
2017-06-20 08:49:05 +01:00
Caleb Burks
ae6a5e34f2
Move “Grouped products” setting to the top
2017-06-19 21:59:42 -05:00
Allen Snook
0f311f0cba
Add address, address 2, city and postcode to setup wizard
2017-06-19 12:22:05 -07:00
Allen Snook
61a8d858b5
Update address labels in settings to better match customer address labelling
2017-06-19 11:28:42 -07:00
1do
ff98b72463
Replaced deprecated wocommerce_credit_card_type_labels in favor of woocommerce_credit_card_type_labels filter.
2017-06-19 21:24:53 +03:00
Claudiu Lodromanean
f879317f44
Merge pull request #15678 from woocommerce/fix/15676
...
Normalise emails on set
2017-06-19 10:26:31 -07:00
Claudiu Lodromanean
139ed8e994
Merge pull request #15680 from woocommerce/fix/15669
...
Update description for exclude_sale_items
2017-06-19 10:22:42 -07:00
claudiulodro
d0266938bf
Recompile css
2017-06-19 10:13:27 -07:00
Mike Jolley
712c281fb7
Add tax class and status to export
...
Fixes #15663
2017-06-19 14:01:52 +01:00
Mike Jolley
a1940f2da3
Grunt dev
2017-06-19 12:49:34 +01:00
1do
344807bd15
changed misspelled filter name
2017-06-19 14:22:31 +03:00
Mike Jolley
acf0026834
Update description for exclude_sale_items
2017-06-19 11:56:04 +01:00
Mike Jolley
b47e1ee728
Use the product object rather than function wc_get_product_ids_on_sale
2017-06-19 11:53:26 +01:00
Mike Jolley
d9e34d4e86
Normalise emails on set
2017-06-19 10:48:00 +01:00
Mike Jolley
55ca1899ad
Merge pull request #15660 from woocommerce/fix/cli-ids
...
Fix issues with CLI IDs
2017-06-19 10:24:46 +01:00
Mike Jolley
1f7b0265c1
Merge pull request #15628 from woocommerce/update/15623
...
woocommerce_format_localized_decimal + woocommerce_format_localized_price filters
2017-06-19 10:13:02 +01:00
Umesh Ghimire
3f2742fd6f
Tweak - Add remove icon on Account page my account page dropdown
2017-06-19 12:59:12 +05:45
Claudiu Lodromanean
1b04963f27
Merge pull request #15659 from woocommerce/fix/15642
...
Fix webhook saving and ping only once
2017-06-16 11:01:08 -07:00
Claudiu Lodromanean
4d25ec6296
Merge pull request #15652 from woocommerce/fix/15632
...
Allow state field to have the correct country set by passing it through
2017-06-16 10:58:40 -07:00
Claudiu Lodromanean
fac4114bae
Merge pull request #15654 from woocommerce/fix/15640
...
Add missing nonce to product sales report
2017-06-16 10:43:10 -07:00
Claudiu Lodromanean
5c8b32a6fb
Merge pull request #15627 from woocommerce/fix/15624
...
Rating fixes
2017-06-16 10:30:39 -07:00
Claudiu Lodromanean
487d1b8461
Merge pull request #15626 from jobthomas/login-update
...
Login update
2017-06-16 09:56:36 -07:00
Justin Shreve
dd80f25f90
Fix issues with CLI IDs
2017-06-16 06:29:57 -07:00
Mike Jolley
42ebde73cd
Fix is_webhook_settings_page
2017-06-16 13:58:28 +01:00
Mike Jolley
1e7b83b813
Cleanup meta after ping
2017-06-16 13:56:50 +01:00
Mike Jolley
b4ea8bb94f
clean up comparison operators
2017-06-16 13:53:57 +01:00
Mike Jolley
67d13874ab
Add transient caching to get_filtered_term_product_counts to reduce large queries
2017-06-16 13:35:31 +01:00
Mike Jolley
f8ca27f32e
Add missing nonce to product sales report
...
Fixes #15640
2017-06-16 11:51:00 +01:00
Mike Jolley
ccad987bac
Allow state field to have the correct country set by passing it through
...
Fixes #15632
2017-06-16 11:45:53 +01:00
Allen Snook
0d1a1d1dbd
Update WC_Countries to include new store address helpers
2017-06-15 10:54:24 -07:00
Allen Snook
21d2bee658
Add store street, city and postcode fields to settings > general
2017-06-15 09:56:52 -07:00
Mike Jolley
b8eafe985e
Set defaults to avoid error if too few args passed
2017-06-15 15:43:32 +01:00
Mike Jolley
3c6635a0f6
Remove all emails except for the invoice email
2017-06-15 15:14:10 +01:00
Mike Jolley
b3fcbc56ba
Tweak sent message
2017-06-15 15:13:59 +01:00
Job
8b48accc01
Upsell/up-sell
...
We had a few different usages of up-sells and upsells in the copy -
“Upsells” were used more and also seems to be more correct English so
I’ve updated the “up-sells”
2017-06-15 15:56:01 +02:00
Mike Jolley
75041b6dca
Remove email based actions from order screen
2017-06-15 14:19:05 +01:00
Mike Jolley
de825ad5b6
woocommerce_format_localized_decimal + woocommerce_format_localized_price filters
2017-06-15 12:07:52 +01:00
Mike Jolley
db3b230ff6
Add filter to control rating HTML in widget
...
Closes #15624
2017-06-15 11:33:09 +01:00
Mike Jolley
0ce2ff2249
Fix update of terms after new rating
2017-06-15 11:29:18 +01:00
Mike Jolley
fba428efed
Fix visibility of rating widgets
2017-06-15 11:29:10 +01:00
Job
9ca5556067
Login > Log in spelling
...
“Log in” is the verb, not “login”
2017-06-15 11:53:59 +02:00
claudiulodro
1d3c4ebb4d
Add flag for timeout checking
2017-06-14 11:35:22 -07:00
Claudiu Lodromanean
b9842b6f21
Merge pull request #15615 from woocommerce/update/15576
...
Prevent memory and time limits in importer
2017-06-14 10:20:29 -07:00
Mike Jolley
4dea3ece8a
Fix memory limit detection on some systems
2017-06-14 18:16:39 +01:00
Claudio Sanches
e9b64aec7b
Merge branch 'master' into fix/15574
2017-06-14 14:05:01 -03:00
Claudio Sanches
7a4b68f551
It's clear that is a subject for an email
2017-06-14 14:01:12 -03:00
Claudiu Lodromanean
7dd1cdca0a
Merge pull request #15618 from woocommerce/fix/15614
...
Importer; create placeholders when importing products with IDs
2017-06-14 09:59:13 -07:00
claudiulodro
57c5bab731
Space
2017-06-14 09:58:15 -07:00
Mike Jolley
c3ee9a77f5
Tweak tips and placeholders for all emails
2017-06-14 17:50:17 +01:00
Claudio Sanches
e3b7e4e566
Use placeholders and description to inform the default values
2017-06-14 13:13:43 -03:00
Mike Jolley
0de65b3a8d
Start time
2017-06-14 17:04:47 +01:00
Claudiu Lodromanean
4f5f04ec79
Merge pull request #15611 from woocommerce/fix/15606
...
More strict COD method matching
2017-06-14 09:04:46 -07:00
Claudiu Lodromanean
bdb7194b2e
Merge pull request #15612 from woocommerce/fix/15592
...
Recalculate totals after local pickup selection
2017-06-14 08:55:50 -07:00
Mike Jolley
8bd7f89f73
Clear placeholder data after import
2017-06-14 16:38:07 +01:00
Mike Jolley
907b986d4f
Tweak wording
2017-06-14 16:37:53 +01:00
Mike Jolley
cb34cb8d81
Made variations more lenient so that they can be created whilst a parent does not yet exist
2017-06-14 16:37:46 +01:00
Mike Jolley
fdc6c46e80
Clear slug for placeholder products
2017-06-14 16:37:21 +01:00
Mike Jolley
8603e75b5e
Create placeholders when importing products with an ID column and not updating
2017-06-14 16:37:07 +01:00
Konstantin Kovshenin
247e13e2ca
Helper: Various Improvements ( #15519 )
...
* Helper: Improve messaging and CTAs
* Helper: Update copy on connect flow
* Helper: Improve messaging around plugins without a subscription
* removes toggle from extensions that cannot be activated
* Helper: Add new `WC_Helper_Compat` class for legacy helper compat
This new class removes some of the actions from the legacy helper
(updater) plugin, attempts to migrate an existing legacy connection
to a new one, attempts to deactivate the old helper plugin.
* Helper: Improve messaging around maxed out subscriptions
* Helper: Enable `WC_Tracker` when connected to WooCommerce.com
* Helper: adds styles for manual licence form row and other visual improvements
* Helper: removes disabled toggles
* Helper: adds styles for connection component
* Helper: redesigned connection module
* Helper: rotates the connection module chevron on mouse hover
* Helper: adds some fixes to the key form on mobile and other updates to meet coding standards
* Helper: Only mark action as primary if there's a CTA button.
* Helper: Better handling for woothemes_updater_notice
Remove the updater notice built into extensions and themes, even
if the legacy Helper plugin is deactivated.
* Helper: Navigate existing Helper users to the new place.
Adds a Dashboard menu item and direct users of the old helper
plugin to the new Extensions screen.
* Helper: Do not show the back-compat menu item for new users
* Helper: Avoid notice in API authentication if credentials are missing
* Helper: Hide the back-compat menu item when users see the new screen
Also sets the user_id for the connection if one was not previously set.
2017-06-14 14:12:53 +01:00
Mike Jolley
77cee56ae8
Prevent memory and time limits
2017-06-14 14:02:47 +01:00
Mike Jolley
9fb8fa4761
Merge pull request #15610 from woocommerce/update/15604
...
Copy tweaks for catalog visibility
2017-06-14 13:08:36 +01:00
Mike Jolley
3132d641e3
Merge pull request #15600 from woocommerce/improvement/15596
...
Add checks in get_orders_generate_customer_meta_query
2017-06-14 13:04:03 +01:00
Mike Jolley
66c7c20844
Should work in reverse
2017-06-14 12:57:26 +01:00
Mike Jolley
985f7e043f
Update totals if local pickup is selected
2017-06-14 12:46:59 +01:00
Mike Jolley
55e9add8e5
More strict COD method matching
...
Fixes #15606
2017-06-14 12:17:28 +01:00
Mike Jolley
4a4e201888
Copy tweaks for catalog visibility
...
Ref #15604
2017-06-14 12:07:20 +01:00
Valerie K
66259ebff1
Update WooCommerce Services copy ( #15598 )
...
* Remove excess explanation from wizard shipping step
* Remove distracting link from shipping wizard page
* Update copy on extensions WCS banner
* Update copy on WCS extensions banner for Canada
* Fix extensions WCS banner when read from json
* Add Canada copy on wizard shipping step
* Use strict array comparison in WCS shipping tout
* Add service logos to WCS extension banner
* Use strict array comparison in WCS banner
* Remove related extensions when showing WCS banner
- when store is based in Canada remove Canada Post
extension from shipping page
- when store is based in US remove USPS
extension from shipping page
* Add image alt for logos on WCS banners
* Update WCS banner and wizard content
2017-06-14 11:24:45 +01:00
Claudio Sanches
62c65e778b
Restored emails settings default values
...
Closes #15574
2017-06-13 20:00:50 -03:00
claudiulodro
62064d56f8
Add edge case test
2017-06-13 14:00:12 -07:00
claudiulodro
489e67dbe1
Remove unnecessary checks
2017-06-13 13:37:40 -07:00
claudiulodro
f1a9dbc69e
Extra checks and tests
2017-06-13 13:32:21 -07:00
Claudio Sanches
6d1c133a3e
Merge pull request #15594 from woocommerce/fix/15561
...
Remove escape to fix saving of Special characters in attributes
2017-06-13 14:28:39 -03:00
Mike Jolley
ba2bf67bb9
Use hash_equals where needed
2017-06-13 13:54:02 +01:00
Mike Jolley
e24ca9d3bc
Merge remote-tracking branch 'origin/master'
2017-06-13 13:35:17 +01:00
Mike Jolley
598982ef70
Standards
2017-06-13 13:34:46 +01:00
Mike Jolley
c4c3d37101
Remove escape
2017-06-13 13:30:00 +01:00
Mike Jolley
393f1be092
Merge pull request #15580 from woocommerce/refactore/improve-importer-mapping-options
...
Better importer mapping options
2017-06-13 12:15:33 +01:00
Mike Jolley
1a6e477c83
Merge pull request #15579 from woocommerce/fix/importer-delimiter
...
Start handle importer delimiter
2017-06-13 11:57:10 +01:00
Mike Jolley
3d50d1468c
Merge pull request #15590 from woocommerce/fix/15584
...
Prevent error in wc_get_product_term_ids
2017-06-13 11:43:00 +01:00
Mike Jolley
282bf0fd68
Cleanup
2017-06-13 11:41:44 +01:00
nishitlangaliya
efea26d8fa
Fixed Login Issue when the username is an email ref #15577
2017-06-13 16:09:54 +05:30
Mike Jolley
5b1af1b75f
Merge pull request #15550 from ughimire/product-import
...
Fixed - Directory separator issue on windows for product import file …
2017-06-13 11:35:40 +01:00
Mike Jolley
0b14e91a60
Merge pull request #15533 from woocommerce/fix/order-item-meta-formatting
...
Removes the use of strip_tags() when outputting order item meta
2017-06-13 11:35:03 +01:00
yachmenov_c_
ab7a3b625c
#15584 - is_wp_error() checking added to prevent fatal
2017-06-13 11:19:56 +03:00
Umesh Ghimire
b5cd0a8680
Space after parentheses
2017-06-13 09:52:27 +05:45
Claudio Sanches
e6b5ac83c4
Better importer mapping options
...
- Rearranged fields to make easy to find
- Grouped price fields
- Include context to "Stock" since could means different things depending on the language
2017-06-12 18:08:23 -03:00
Claudio Sanches
2702647f88
Start handle importer delimiter
...
This make able handle the delimiter input passing to mapping screen and to the AJAX importation process.
2017-06-12 17:47:20 -03:00
claudiulodro
f020d54e67
Add support for paginate and return ids in wc_order_query
2017-06-12 13:26:29 -07:00
Claudiu Lodromanean
da35bad7bc
Merge pull request #15575 from woocommerce/fix/15559
...
[REST API] Allow set grouped_products
2017-06-12 10:14:05 -07:00
Claudio Sanches
4dcb61e098
Fixed a typo
2017-06-12 13:59:47 -03:00
Claudio Sanches
b2ce6212d4
Merge pull request #15569 from woocommerce/fix/15566
...
Update variation outofstock term on save.
2017-06-12 13:51:38 -03:00
Claudio Sanches
1254013f51
Merge pull request #15539 from woocommerce/fix/exporter-speed-and-encoding
...
Fix exporter speed and encoding
2017-06-12 13:49:57 -03:00
Claudio Sanches
1f7f289a88
Merge pull request #15570 from woocommerce/fix/15555
...
Show attribute data in admin list.
2017-06-12 13:43:02 -03:00
Claudio Sanches
43d28372b9
[REST API] Allow set grouped_products
...
Fixes #15559
2017-06-12 13:34:39 -03:00
Claudio Sanches
2541e38890
Merge pull request #15571 from woocommerce/fix/customer-logout-nonce
...
Add a nonce and confirmation for logging out via the customer my account page
2017-06-12 13:29:39 -03:00
Mike Jolley
636ad8b652
Add a nonce and confirmation for logging out via the customer my account page
2017-06-12 14:02:29 +01:00
Mike Jolley
54a9387361
Show attribute data in admin list.
2017-06-12 13:37:52 +01:00
Mike Jolley
012f251e42
Update variation outofstock term on save.
2017-06-12 13:09:47 +01:00
Chunkford
49353d5c6e
Create class-wc-order-item-meta.php
...
Add extra data to the second occurrence of the 'woocommerce_order_item_display_meta_value' hook so it matches the change done in https://github.com/woocommerce/woocommerce/pull/15551
2017-06-10 16:05:02 +01:00
Mike Jolley
1696a036a8
Use fputcsv to fix escaping
2017-06-10 15:43:38 +01:00
Mike Jolley
e2a73bbee9
Merge pull request #15523 from woocommerce/fix/15167
...
Fixed backwards compatibility with WC_Product_Variable::get_available_variation()
2017-06-10 14:27:02 +01:00
Chunkford
6326bd1f98
Create class-wc-order-item.php
...
Add extra data to `woocommerce_order_item_display_meta_key` and `woocommerce_order_item_display_meta_value` hooks
2017-06-10 13:26:43 +01:00
Umesh Ghimire
71c22cadf1
Fixed - Directory separator issue on windows for product import file fixed.
2017-06-10 08:50:41 +05:45
claudiulodro
4515e5fca9
Fix undefined/incorrectly used variables
2017-06-09 14:10:55 -07:00
Claudio Sanches
6d7da18d1c
Use get_avatar_url() in wc_get_customer_avatar_url()
2017-06-09 17:17:43 -03:00
Claudio Sanches
df0ec12fb4
Deprecated wc_get_customer_avatar_url() in favor of get_avatar_url()
...
And remove duplicated code.
2017-06-09 16:25:57 -03:00
Claudio Sanches
e63f42459b
Include image_id again
2017-06-09 15:44:32 -03:00
Claudiu Lodromanean
5d13ea39b1
Merge pull request #15537 from woocommerce/fix/empty-attributes
...
Prevent empty attributes being loaded or used
2017-06-09 10:42:48 -07:00
Claudiu Lodromanean
f8c64b31c0
Merge pull request #15541 from woocommerce/fix/15532
...
Update total orders and items
2017-06-09 09:39:50 -07:00
Mike Jolley
4367c9f6d4
Use user_can function
...
Use user can rather than roles directly.
If the user can edit posts, assume they are allowed an archive.
Fixes #15508
2017-06-09 15:18:35 +01:00
Mike Jolley
3367047c8e
Update total orders and items
2017-06-09 15:07:31 +01:00
Mike Jolley
5fe26e689c
Merge pull request #15528 from Chouby/importer_action
...
[3.1] Add action after a product has been imported
2017-06-09 14:17:41 +01:00
Mike Jolley
a013a41872
Fix escape
2017-06-09 13:40:11 +01:00
Mike Jolley
0d99ce626c
Increase limit to 50
2017-06-09 12:21:46 +01:00
Mike Jolley
49958a13a6
Prevent empty attributes being loaded or used
2017-06-09 12:14:11 +01:00
Matt Cohen
e644bccbe8
Removes the use of strip_tags() when outputting order item meta, to account for basic HTML tags, hyperlinks, etc.
2017-06-09 11:00:23 +02:00
Mike Jolley
4a56c8b92a
Fix indent
2017-06-09 09:36:44 +01:00
Frédéric Demarle
08e30450b5
Add action after a product has been imported
2017-06-09 08:30:22 +02:00
nishitlangaliya
9ba5f534ea
Fixed Don't show 'Restock refunded items' ref #14888
2017-06-09 09:06:57 +05:30
Claudio Sanches
16d342a6a0
Fixed backwards compatibility with WC_Product_Variable::get_available_variation()
...
Closes #15167
2017-06-08 16:06:06 -03:00
Claudio Sanches
8b3d1046e0
Merge pull request #15515 from woocommerce/update/15399
...
Tweak review settings and add global enable option
2017-06-08 15:53:00 -03:00
Claudiu Lodromanean
64558086bb
Merge pull request #15513 from woocommerce/fix/12534
...
Make persistant cart work on multisite
2017-06-08 09:11:48 -07:00
Claudiu Lodromanean
58a6c2d678
Merge pull request #15511 from woocommerce/update/comment-queries
...
Comment exclusion queries optimisation
2017-06-08 08:18:48 -07:00
Mike Jolley
5ee38c54c2
Option to disable reviews globally
2017-06-08 15:26:30 +01:00
Mike Jolley
b4040b1335
Translate quick edit text
2017-06-08 14:24:28 +01:00
Mike Jolley
32aca8cc39
String clarification
2017-06-08 14:08:48 +01:00
Mike Jolley
0d4dc49bd3
Break up verified owner and rating options
2017-06-08 14:06:15 +01:00
Mike Jolley
a55127dbf0
Append hash to fragment name
2017-06-08 13:47:34 +01:00
Mike Jolley
6eacecfeb6
Append blog ID on persistent cart user meta
2017-06-08 13:47:23 +01:00
Mike Jolley
6b4fce475a
Indenting
2017-06-08 12:46:01 +01:00
Mike Jolley
4ea9ab46a7
Avoid slow substring query
2017-06-08 12:21:55 +01:00
Mike Jolley
caacd65085
Update function to ensure notes have correct type (pre WC 1.6)
2017-06-08 12:18:07 +01:00
Mike Jolley
75480ab99f
Show notes in order list
2017-06-08 12:17:46 +01:00
Mike Jolley
b32d5802b7
Rather than join the posts table and look at types, we can exclude order notes by using their type.
...
Webhooks use `webhook_delivery`
Order notes use `order_note` type.
#15509
2017-06-08 12:01:06 +01:00
Boro Sitnikovski
68d512ae01
Address PR comments
2017-06-08 13:00:28 +02:00
Mike Jolley
25de18c614
Merge pull request #15495 from woocommerce/fix/15481
...
Validate all possible values for variation add to cart
2017-06-07 15:25:05 +01:00
Boro Sitnikovski
0271a9e2fe
Update version
2017-06-07 16:20:09 +02:00
Mike Jolley
0d7614d44b
Fix locale notice
...
Closes #15502
2017-06-07 14:31:09 +01:00
Boro Sitnikovski
00847da730
Fix
2017-06-07 12:33:05 +02:00
Boro Sitnikovski
1584836fa9
Code style fixes
2017-06-07 12:31:42 +02:00
Boro Sitnikovski
b5fd62274f
Map the correct function and use notice instead of exception
2017-06-07 12:30:03 +02:00
Mike Jolley
bea7492e23
Validate all possible values for variation add to cart
...
Closes #15481
2017-06-07 11:13:28 +01:00
Mike Jolley
325740ed5d
Merge pull request #15485 from thenbrent/DRY_variable_price_html_filter
...
Apply woocommerce_variable_price_html filter once
2017-06-07 10:34:17 +01:00
amansaini
03699dcaae
Fixes issue #15489
2017-06-07 11:58:09 +05:30
jgacuca567
4a9950b4c5
Changed their to there
2017-06-06 17:30:20 -04:00
Brent Shepherd
a274000d34
Append variable price suffix only once
2017-06-06 13:40:36 -07:00
Brent Shepherd
acd6bf9cb7
Apply woocommerce_variable_price_html filter once
...
To save a bit of duplicate code.
2017-06-06 13:35:41 -07:00
Claudio Sanches
2523490f9f
[REST API] Fixed oAuth1.0a to allow multi-dimensional arrays
...
Fixes #15395
Closes #15396
2017-06-06 17:05:03 -03:00
Claudiu Lodromanean
fa3586729a
Merge pull request #15469 from woocommerce/fix/15457
...
Revert thousand removal in wc_format_decimal, and add more tests
2017-06-06 10:31:40 -07:00
Claudio Sanches
20d5e0f769
Merge pull request #15477 from woocommerce/fix/15392
...
Variations to inherit catalog_visibility
2017-06-06 14:27:46 -03:00
Claudio Sanches
c43afcfbd0
Merge pull request #15474 from woocommerce/update/15031
...
Update copy + css for zones
2017-06-06 14:26:24 -03:00
Claudio Sanches
f430e5edc8
Merge pull request #15471 from woocommerce/fix/15467
...
Check taxonomy exists before allowing function to run
2017-06-06 14:23:54 -03:00
Boro Sitnikovski
efd42e6bc4
Proof of concept to error when internal meta props are accessed directly
2017-06-06 19:13:53 +02:00
Mike Jolley
ed783e1bbf
Merge pull request #15473 from jamesckemp/patch-6
...
woocommerce_shortcode_products_query params
2017-06-06 15:52:06 +01:00
Mike Jolley
52e9dc5443
Merge pull request #15462 from woocommerce/fix/15081
...
Start indexing variations with 1
2017-06-06 14:57:49 +01:00
Mike Jolley
e0a64ad36a
Variations to inherit catalog_visibility
2017-06-06 14:49:32 +01:00
Mike Jolley
eddcb16e00
Update copy + css for zones
...
Closes #15031
2017-06-06 13:46:09 +01:00
James Kemp
984ed08ccc
woocommerce_shortcode_products_query params
...
The `woocommerce_shortcode_products_query` filter is used earlier on in this file but with 3 params. The third being `$loop_name`. It's not relevant here, so set to `null`, but needs to be included to avoid errors when adding a filter.
2017-06-06 13:22:28 +01:00
Mike Jolley
253bb0743c
Ensure taxonomy exists in wc_get_product_visibility_term_ids
2017-06-06 13:10:56 +01:00
Mike Jolley
e83450b861
Errors do not need localisation
2017-06-06 13:10:22 +01:00
Mike Jolley
d62aefba74
Merge branch 'master' into fix/15414
...
# Conflicts:
# includes/wc-core-functions.php
2017-06-06 12:55:50 +01:00
Mike Jolley
09d43670fc
function exists
2017-06-06 12:54:49 +01:00
Mike Jolley
4c7f8c0fbd
Revert thousand removal in wc_format_decimal, and add more tests
2017-06-06 12:44:58 +01:00
Mike Jolley
c77347da48
Merge pull request #15459 from woocommerce/fix/14659
...
Make phone number clickable
2017-06-06 11:52:05 +01:00
Mike Jolley
513bca9fa5
Merge pull request #15456 from woocommerce/fix/15288
...
Fixed unicode characters when saving webhook delivery logs
2017-06-06 10:26:26 +01:00
Claudio Sanches
6be1569955
Start indexing variations with 1, closes #15081
2017-06-05 17:42:58 -03:00
Claudio Sanches
6c42f3c16a
Properly sanitization for wc_make_phone_clickable() and fixed coding standards
...
Closes #14659
2017-06-05 16:15:04 -03:00
Claudio Sanches
f65005be41
Merge pull request #14719 from avinapatel/fix-14659
...
Made the buyer phone number clickable in the in the order backend.
2017-06-05 15:47:16 -03:00
Claudio Sanches
4aec4efa67
Merge pull request #15432 from woocommerce/update/wcs-banner-responsive
...
Update WooCommerce Services extensions banner
2017-06-05 15:36:22 -03:00
Claudio Sanches
58b22f343a
Fixed unicode characters when saving webhook delivery logs
...
Closes #15288
2017-06-05 15:25:29 -03:00
Claudio Sanches
6c29d32396
Merge pull request #15446 from woocommerce/fix/15437-15443
...
Notice fixes in API and meta handling class
2017-06-05 15:00:48 -03:00
Claudiu Lodromanean
2e6219f682
Merge pull request #15452 from woocommerce/fix/15440
...
Add correct args to woocommerce_shipping_zone_method_deleted
2017-06-05 11:00:22 -07:00
Claudio Sanches
527fa0d07a
Fixe CHMOD
2017-06-05 14:45:30 -03:00
Valerie
70570f3745
Update WCS banner style
2017-06-05 11:30:42 -04:00
Valerie
baf405fdcf
Update WCS banner image
2017-06-05 11:28:37 -04:00
Valerie
8939dfc1a5
Update WCS banner text
2017-06-05 11:28:37 -04:00
Mike Jolley
b4098a7472
Use WP date format in admin
...
Closes #15453
2017-06-05 15:58:29 +01:00
Mike Jolley
76a19c27a5
Add correct args to woocommerce_shipping_zone_method_deleted
2017-06-05 15:11:08 +01:00
Mike Jolley
a348dedfb7
Merge pull request #15397 from woocommerce/update/add-activation-toggles-in-subscriptions
...
Update/add activation toggles in subscriptions
2017-06-05 14:29:36 +01:00
Mike Jolley
67a0637417
Advanced locale switching
2017-06-05 14:18:39 +01:00
Mike Jolley
6f4ce488e2
Merge pull request #15402 from woocommerce/fix/ipn-authorization
...
Fix IPN authorization setting orders to completed automatically
2017-06-05 13:24:33 +01:00
Boro Sitnikovski
8a615a6e79
Update conditional for non-auth payments
2017-06-05 14:07:49 +02:00
Mike Jolley
3271ac7ab2
Merge pull request #15424 from lawkwok/patch-1
...
Update class-wc-data-store.php
2017-06-05 13:03:59 +01:00
Mike Jolley
2452fa807f
Merge pull request #15425 from woocommerce/fix-incorrect-documentation
...
Fix incorrect documentation
2017-06-05 10:46:46 +01:00
Mike Jolley
1e8e40565d
Avoid deprecated ID in API. Fixes #15437
2017-06-05 10:45:10 +01:00
Mike Jolley
52356c5caf
Correct deprecated arg message. Fixes #15443
...
Fixes #15443
2017-06-05 10:43:13 +01:00
Boro Sitnikovski
4b82a750fc
Fix IPN authorization setting orders to completed automatically
2017-06-05 10:07:22 +02:00
claudiulodro
992c1cce63
Add filter to exporter default column names
2017-06-02 11:46:27 -07:00
Mike Jolley
260cfce497
Format strings
2017-06-02 18:44:43 +01:00
Mike Jolley
adc679633b
Handle default subjects and headings at time of sending, not in constructor
2017-06-02 18:25:05 +01:00
Jonathan Belcher
66736e69f7
Fix incorrect documentation
2017-06-02 12:58:16 -04:00
Lawrence
127ed893dc
Update class-wc-data-store.php
2017-06-02 09:19:54 -07:00
Claudio Sanches
46846ed4e0
Merge pull request #15416 from woocommerce/fix/15407
...
Correctly append cache
2017-06-02 12:18:55 -03:00
Claudio Sanches
86f2edb125
Merge pull request #15419 from woocommerce/fix/15412
...
Update florin
2017-06-02 12:16:15 -03:00
Mike Jolley
fa1d2cba23
Merge pull request #15413 from bekarice/tweak/filter-cart-added-qty
...
Tweak: Filter quantity being added to the cart
2017-06-02 15:27:17 +01:00
Mike Jolley
7ee02d8f55
Merge pull request #15411 from crodas/tax_address_issue
...
Improve how taxes are applied
2017-06-02 15:16:32 +01:00
Mike Jolley
b1ccb76d06
Update florin
...
Fixes #15412
2017-06-02 15:14:29 +01:00
Mike Jolley
198883e1fb
Merge pull request #15406 from woocommerce/improvement/15382
...
Add index to order_id in woocommerce_downloadable_product_permissions table.
2017-06-02 13:37:56 +01:00
Mike Jolley
da91857a84
Correctly append cache
...
Fixes #15407
2017-06-02 13:34:09 +01:00
José Marques
3d516ab9cd
removes checkbox toggle markup and replaces inactive toggles links with spans
2017-06-02 11:22:48 +01:00
Beka Rice
494fa0974c
Filter quantity being added to the cart
2017-06-02 00:07:06 -04:00
Cesar Rodas
c96c62f380
Improved how taxes are applied
...
If by default the taxes are based on the shipping address and the current order doesn't have any, it would use the billing address rather than using the Shopping base location.
It's basically what WooCommerce is [doing already in Javascript](https://github.com/woocommerce/woocommerce/blob/master/assets/js/admin/meta-boxes-order.js#L526-L575 ). This kind of checks should be done in the backend, never in the client side.
2017-06-01 15:51:55 -04:00
Claudio Sanches
b01a6996d8
Merge pull request #15409 from woocommerce/improvement/wiki
...
Add wiki links to order query docblocks.
2017-06-01 16:03:43 -03:00
claudiulodro
16e88856f3
Add wiki link to order query
2017-06-01 11:59:15 -07:00
claudiulodro
b27fb203ef
Add wiki link to wc_get_orders
2017-06-01 11:58:43 -07:00
claudiulodro
63069976cf
Order ASC in exporter
2017-06-01 11:52:14 -07:00
claudiulodro
cad7757045
Add index to order_id
2017-06-01 11:26:35 -07:00
Cesar Rodas
03a3ce9901
Fixed coding styles issues
2017-06-01 11:47:36 -04:00
Cesar Rodas
5997ffd4b1
Fixed coding styles issues
2017-06-01 11:46:05 -04:00
Mike Jolley
e3a4008d9f
Fix group clause depending on query
...
Fixes #15394
2017-06-01 13:33:30 +01:00
José Marques
be229a3e5b
replaces active/deactivate buttons with toggles
2017-06-01 12:51:45 +01:00
Mike Jolley
d161ba0216
Merge branch 'pr/15384'
2017-06-01 12:09:04 +01:00
Mike Jolley
71a4b4b75d
Code standards
2017-06-01 12:08:48 +01:00
David de Boer
d788b15073
Set delete_meta_data @param to accept a string
...
Set delete_meta_data @param to accept a string
2017-06-01 01:47:52 +02:00
Pablo dos Santos Gonçalves Pacheco
435c29771e
Create function to sanitize order id
...
I've realized that tracking an order id with **[woocommerce_order_tracking]** using # will not work. Some users think that they need to use the hash because it's the WooCommerce default. The new **wc_sanitize_order_id()** function fixes that.
And **woocommerce_shortcode_order_tracking_order_id** filters the order_id that comes from query string and is used on **[woocommerce_order_tracking]**.
It can be used for other cases though.
I hope it helps :)
2017-05-31 17:34:00 -03:00
Claudio Sanches
5369bae987
Merge branch 'master' into add/wcs-banners
2017-05-31 16:02:38 -03:00
Claudio Sanches
08f4d7b2f2
Merge pull request #15310 from woocommerce/update/add-woo-services-in-wizard
...
Add WooCommerce Services to Setup Wizard
2017-05-31 15:48:42 -03:00
Nabeel Sulieman
5f0c84ee13
payment_gateways should be payment-gateways
2017-05-31 11:44:52 -07:00
Claudio Sanches
b93d286985
Stop auto skip column map and remove all related code
2017-05-31 14:59:17 -03:00
Nabeel Sulieman
62d7937a52
Only queue woocommerce services install if it's not active
2017-05-31 09:36:33 -07:00
Nabeel Sulieman
27a3e83642
- WooCommerce services enabled by default
...
- Clicking "skip" on shipping page should disable shipping
2017-05-31 09:36:32 -07:00
Mike Jolley
fc5b4f0482
Only show no_shipping_methods notice if services is not being installed
2017-05-31 09:36:32 -07:00
Mike Jolley
c25b844761
Tweak handler
2017-05-31 09:36:32 -07:00
Mike Jolley
c53c83aebb
Tweak test and styling
2017-05-31 09:36:32 -07:00
Nabeel Sulieman
c49fa38e2c
Make units controls look the same for touted and non-touted
...
Rename local functions to "location"
2017-05-31 09:33:50 -07:00
Nabeel Sulieman
e940544a2a
Use Inches and Ounces as default measurement units when location is in
...
US
2017-05-31 09:33:19 -07:00
Nabeel Sulieman
ce5aff0236
Improve wording of measurement units on shipping page
2017-05-31 09:33:19 -07:00
Jeff Stieler
3ced364583
When checking for North American stores, default location to GeoIP if the option hasn’t been set.
2017-05-31 09:31:59 -07:00
Jeff Stieler
736d3e9f94
Remove “taxes” from shipping step naming.
2017-05-31 09:31:59 -07:00
Jeff Stieler
d60a4fc1da
Add missing name to WooCommerce Services plugin installation info.
2017-05-31 09:31:59 -07:00
Jeff Stieler
7dcaff3e39
Handle update of weight/dimension units in the wizard shipping step instead of locale.
2017-05-31 09:31:59 -07:00
Jeff Stieler
466cee9fc9
Update tax rates upon store location change.
2017-05-31 09:31:59 -07:00
Jeff Stieler
86f6921ced
Handle SCRIPT_DEBUG config for setup wizard script includes.
2017-05-31 09:31:59 -07:00
Jeff Stieler
f52eab71d2
Update wizard shipping step copy to match latest designs.
2017-05-31 09:31:58 -07:00
Jeff Stieler
42dfdc7e3c
Schedule single install event for WooCommerce Services when saving the shipping step.
2017-05-31 09:31:58 -07:00
Jeff Stieler
cd15b6fbc6
Fix shipping enable input name.
2017-05-31 09:31:58 -07:00
Jeff Stieler
1492c50373
Add skip/continue buttons back to wizard shipping step.
2017-05-31 09:31:58 -07:00
Jeff Stieler
b52b38ecb0
Properly translate strings on the shipping wizard step.
2017-05-31 09:31:57 -07:00
Jeff Stieler
6111437750
Only show WooCommerce Services tout when the store is in North America.
2017-05-31 09:31:57 -07:00
Jeff Stieler
0a63b83c7c
Move dimension and weight inputs to shipping step.
2017-05-31 09:31:57 -07:00
Nabeel Sulieman
1122faf760
Implement WooCommerce Services NUX in Setup Wizard:
...
- Rename "shipping locale" to "shipping location"
- Move tax setup to to shipping location page
- Rename shipping & taxes to just shipping
- Implement radio button selection to enable/disable shipping
- Add checkbox for installing WooCommerce services
- Start updating wc-admin css and javascript
2017-05-31 09:31:57 -07:00
Mike Jolley
fc4a9d185e
Move changes after set name
2017-05-31 16:28:55 +01:00
Jeff Stieler
c212725053
Use WC_Install class to install/activate WooCommerce services from the Extensions page.
2017-05-31 09:27:19 -06:00
Jeff Stieler
d8e508842d
Allow all aspects of the WCS banner block to be overwritten by JSON data.
2017-05-31 09:27:18 -06:00
Jeff Stieler
9b6b4928a6
Show WCS banner on extensions page for both USA and Canada.
2017-05-31 09:27:18 -06:00
Jeff Stieler
0293884660
PHP 5.2+ compatibility - don’t use array dereferencing.
2017-05-31 09:27:17 -06:00
Valerie
e7672d6572
Enable WCS banner on shipping extension page
2017-05-31 09:27:17 -06:00
Valerie
3b689b5da9
Enable WCS banner on featured extension page
2017-05-31 09:26:17 -06:00
Valerie
870e3ddea2
Add WCS banner addons block markup
2017-05-31 09:26:17 -06:00
Claudio Sanches
bc3c7f6bbd
Merge branch 'master' into fix/15315
2017-05-31 11:59:49 -03:00
Mike Jolley
6883b49e81
Atom sucks
2017-05-31 15:57:49 +01:00
Claudio Sanches
d9e946491f
Merge pull request #15357 from woocommerce/fix/15274-meta
...
Add ability to invalidate cache by object ID
2017-05-31 11:53:53 -03:00
Claudio Sanches
933386f272
Merge pull request #15371 from woocommerce/fix/15365
...
Add failed to processing for the processing email
2017-05-31 11:52:12 -03:00
Mike Jolley
d8edc8a965
Always map
2017-05-31 15:07:07 +01:00
Cesar Rodas
c59566759c
Merge remote-tracking branch 'origin/master' into improve_meta_data_updates
2017-05-31 09:41:41 -04:00
Cesar Rodas
addc80de15
Fixed coding styles
2017-05-31 09:39:13 -04:00
Mike Jolley
eda55579b7
Merge pull request #15373 from woocommerce/feature/product-csv-import-export
...
Product CSV Import Export
2017-05-31 13:57:37 +01:00
Mike Jolley
21300951f1
Fix tests due to generated names
2017-05-31 13:48:28 +01:00
Mike Jolley
32ab4fb47f
Merge pull request #15360 from woocommerce/fix/15228
...
Store user ID and use that to determine if the session should be loaded or not.
2017-05-31 13:03:29 +01:00
Mike Jolley
532ddfa6b0
Merge conflicts
2017-05-31 12:23:52 +01:00
Mike Jolley
e185d5572b
Merge branch 'feature/product-csv-import-export' into refactor/fix-importer-and-improve-unit-tests
2017-05-31 12:19:58 +01:00
Mike Jolley
72ddb1f23d
Merge branch 'feature/product-csv-import-export' into feature/15302
...
# Conflicts:
# includes/export/class-wc-product-csv-exporter.php
2017-05-31 12:13:42 +01:00
Mike Jolley
cb59bd0487
Merge pull request #15351 from woocommerce/fix/15329
...
Use get_max_purchase_quantityin cart template and fix logic
2017-05-31 11:39:53 +01:00
Mike Jolley
56ffa3d2aa
Merge pull request #14706 from crodas/make_get_item_consistent
...
Make get item consistent
2017-05-31 11:10:09 +01:00
Mike Jolley
23315a6930
Add failed to processing for the processing email
...
Fixes 15365
2017-05-31 10:12:24 +01:00
Claudio Sanches
51ddc36080
Skip empty attributes and reset indexes
2017-05-30 19:26:31 -03:00
Claudio Sanches
4a98844bb8
Shows if attribute is visible in exported data
2017-05-30 18:58:45 -03:00
Claudio Sanches
d6fb028481
Allow import and create new global attributes
2017-05-30 18:46:32 -03:00
Claudio Sanches
96fe919535
Added column in exported data to indicate if attribute is global
2017-05-30 18:06:56 -03:00
Claudio Sanches
64a60de24f
Merge pull request #15353 from woocommerce/fix/15245
...
Set all legacy data
2017-05-30 17:58:28 -03:00
Claudio Sanches
b8a2815ae5
Merge pull request #15358 from woocommerce/fix/15356
...
Only delete if the object has an ID
2017-05-30 17:48:22 -03:00
Mike Jolley
85b8d8661a
Merge pull request #14595 from woocommerce/feature/helper
...
Helper: First pass at merging the Helper plugin into WooCommerce
2017-05-30 20:39:08 +01:00
Konstantin Kovshenin
aa6353bfa1
Helper: Clean up navigation/headings, remove some noop markup.
2017-05-30 22:26:33 +03:00
Claudio Sanches
fb81994855
Fixed downloads URLs in the CSV parser
2017-05-30 15:01:48 -03:00
Claudio Sanches
40c2b471f5
Grouped products after cross sells as in the admin screen
2017-05-30 14:50:54 -03:00
Konstantin Kovshenin
1dc7e507b1
Helper: Redesign (work in progress)
2017-05-30 20:50:14 +03:00
Claudio Sanches
18bb025eaf
Fixed exported images
2017-05-30 14:33:17 -03:00
Konstantin Kovshenin
556c2cf84c
Helper: Add tabbed interface to WooCommerce > Extensions
2017-05-30 19:46:26 +03:00
Claudio Sanches
73e34b583f
Fixed generic stock mapping
2017-05-30 13:04:16 -03:00
Mike Jolley
60def8cde0
Store user ID and use that to determine is session data should overwrite user data.
2017-05-30 17:03:55 +01:00
Claudio Sanches
ffd248f19d
Merge branch 'feature/product-csv-import-export' into refactor/fix-importer-and-improve-unit-tests
2017-05-30 13:03:17 -03:00
Mike Jolley
3dd7cbf59b
Revert d570a81241
2017-05-30 16:54:37 +01:00
Claudio Sanches
9556e248a4
Missing tax class
2017-05-30 12:52:29 -03:00
Cesar Rodas
001cf94ff3
Fixed typo
2017-05-30 10:37:29 -04:00
Mike Jolley
ed32f9c792
Only delete if the object has an ID
2017-05-30 14:44:28 +01:00
Mike Jolley
2366a036e3
Add id cache group to invalidate by ID
2017-05-30 14:37:29 +01:00
Mike Jolley
f6b9c57b5b
Invalidate by ID
2017-05-30 14:37:16 +01:00
Mike Jolley
2346af1816
Update title if changed
...
This could be the result of a term name changing, parent changing etc.
Fixes #15315
May degrade performance if reading many variations.
2017-05-30 13:20:36 +01:00
Mike Jolley
fe3406ceec
Set all legacy data
...
Fixes #15245
2017-05-30 12:36:20 +01:00
Mike Jolley
7529e1ac26
Merge branch 'pr/15304'
2017-05-30 11:56:10 +01:00
Mike Jolley
4ea9138d3e
Code and test improvements
2017-05-30 11:54:31 +01:00
Mike Jolley
9880879ebb
Merge pull request #15348 from davefx/patch-1
...
Add new filter woocommerce_logger_log_message
2017-05-30 11:37:18 +01:00
Mike Jolley
38bcdcfb28
Use get_max_purchase_quantityin cart template and fix logic
...
Closes #15329
2017-05-30 11:02:56 +01:00
Mike Jolley
ef52345f1b
Merge pull request #15337 from aelia-co/fix-issue-15336
...
Fix for #15336
2017-05-30 10:38:31 +01:00
David Marín
f421939a3e
Add new filter woocommerce_logger_log_message
...
It replicates the filter for the deprecated add logger function in the equivalent log function.
2017-05-30 09:55:10 +02:00
claudiulodro
7cf62bb023
Set up and add extra mappings
2017-05-29 11:16:44 -07:00
Cesar Rodas
8c67ae6a7a
Make `get_item` to rely no `get_items`
2017-05-29 12:38:25 -04:00
Claudiu Lodromanean
2fb8f4b6b0
Merge pull request #15331 from woocommerce/fix/14759
...
Format parent stock qty on read
2017-05-29 08:24:15 -07:00
Claudio Sanches
7f4c650c87
Merge pull request #15334 from woocommerce/fix/15322
...
Ensure we have child before getting price
2017-05-29 12:02:01 -03:00
Claudio Sanches
c73461f440
Merge pull request #15332 from woocommerce/fix/15307
...
Hide replies from recent reviews widgets
2017-05-29 12:00:57 -03:00
Diego Zanella
b14a2db2e6
Fix for #15336
...
* Replaced reference to `WC()->payment_gateways` property with call to `WC()->payment_gateways()` method.
2017-05-29 13:02:16 +01:00
Mike Jolley
139c652e1d
Ensure we have child before getting price
...
Fixes #15322
2017-05-29 10:43:56 +01:00
Mike Jolley
4ec3fe61f9
Merge pull request #15290 from peterrath/New-action-for-display-custom-data-in-order-fee-lines
...
New action for display custom data in order fee lines
2017-05-29 10:17:35 +01:00
Mike Jolley
934e95bc8b
Merge pull request #15308 from woocommerce/fix/15297
...
Grouped product support in importer/exporter
2017-05-29 10:13:45 +01:00
Mike Jolley
4251d71dab
Hide replies from recent reviews widgets
...
Fixes #15307
2017-05-29 10:09:17 +01:00
Mike Jolley
f1d718d38a
Format parent stock qty on read
...
Fixes #14759
2017-05-29 10:03:35 +01:00
claudiulodro
759fcae533
Use 'grouped_products' for grouped products
2017-05-28 12:37:18 -07:00
Peter
314f64b566
Change the name of the new action
...
Change the name of the new action to woocommerce_after_order_fee_item_name.
2017-05-28 20:40:59 +02:00
Claudio Sanches
6d54ae3504
Fetch product ID for temporary products only while processing the item
2017-05-26 19:57:31 -03:00
Claudio Sanches
3d5891e589
Fixed how backorders field is parsed
2017-05-26 19:39:20 -03:00
Claudio Sanches
77fcaf3392
Fixed images map handler
2017-05-26 19:30:42 -03:00
Claudio Sanches
0719746af2
Validate dates and use string format to use website timezone
2017-05-26 19:25:44 -03:00
Claudio Sanches
4bc139fef9
Fixed conflicts
2017-05-26 19:09:57 -03:00
Claudio Sanches
4d66bc9e45
Merge branch 'feature/product-csv-import-export' into refactor/fix-importer-and-improve-unit-tests
2017-05-26 19:07:46 -03:00
Claudio Sanches
fe67ca0aff
Fixed images mapping key
2017-05-26 18:58:35 -03:00
Claudio Sanches
2eeb444eeb
Properly set stock quantity
2017-05-26 18:53:22 -03:00
Claudio Sanches
02a27ae258
Fixed PHP Notice about undefined name for product attributes
2017-05-26 18:44:22 -03:00
Claudio Sanches
780ce1a4e6
Fixed deprecated `set_stock` notice
2017-05-26 18:42:07 -03:00
Claudio Sanches
d2c3bf362f
Normalize column names
2017-05-26 18:01:15 -03:00
claudiulodro
9b925d28ec
Grouped product child support
2017-05-26 13:30:17 -07:00
claudiulodro
c96f8b5bc1
Better unset
2017-05-26 12:16:38 -07:00
claudiulodro
4a104f3202
Remove extra isset
2017-05-26 11:41:44 -07:00
claudiulodro
00d37412eb
Accidentally reverted a fix
2017-05-26 11:37:12 -07:00
claudiulodro
d362d47995
Get external products working
2017-05-26 11:26:55 -07:00
Ninos Ego
8eec5cc802
Small fix for thousand separators replacement check
2017-05-26 20:06:24 +02:00
Ninos Ego
ccdac49723
Fix for #15294
2017-05-26 19:31:13 +02:00
Mike Jolley
dcdd44ae67
Use correct keys for images
2017-05-26 18:09:49 +01:00
Mike Jolley
dbd0f3dce0
error message
2017-05-26 16:56:37 +01:00
Mike Jolley
d9217b1d59
More tidyup
2017-05-26 16:54:43 +01:00
Mike Jolley
f51d434d10
Added todo item in exporter
2017-05-26 15:57:29 +01:00
Mike Jolley
3a7f4884d8
Moved logic around and organised
2017-05-26 15:57:17 +01:00
Claudio Sanches
995aa89b84
Fixed shipping class parser
2017-05-26 12:27:06 +01:00
Mike Jolley
62bcca6cce
Merge pull request #15277 from woocommerce/fix/float-number-comparison
...
Support floats for the custom sort function
2017-05-26 11:16:22 +01:00
Mike Jolley
c92d6335ff
Merge pull request #15282 from woocommerce/fix/15267
...
Use meta id instead of key in WC_Order_Item::offsetGet
2017-05-26 11:11:01 +01:00
Peter
05516dbea5
New action for display order fee custom data
...
We need to display custom data in fee lines, similarly to woocommerce_after_order_itemmeta action in shipping line items.
2017-05-26 10:05:26 +02:00
Jonathan Moore
7dc2c7cd6e
fixes #15283
...
fixes #15283 Notice: Undefined property: stdClass::$post_ID in wp-content/plugins/woocommerce/includes/class-wc-structured-data.php on line 262
when calling wp_list_comments with $options['callback'] = 'woocommerce_comments'
2017-05-26 07:59:42 +08:00
claudiulodro
e00d7b7c55
File metadata by id
2017-05-25 14:43:36 -07:00
Konstantin Kovshenin
dda05889eb
Helper: Avoid an undefined warning in the main template
2017-05-25 23:44:29 +03:00
claudiulodro
fc05af3514
Phpcs fixes
2017-05-25 12:53:32 -07:00
claudiulodro
df06d6f942
Merge remote-tracking branch 'origin/feature/product-csv-import-export' into HEAD
2017-05-25 12:41:26 -07:00
claudiulodro
c4c990bc7c
Remove unneccessary function
2017-05-25 12:36:10 -07:00
claudiulodro
a99d7ff099
Exporter tests and tweaks
2017-05-25 12:33:14 -07:00
Claudio Sanches
ac4bcf39c2
Merge pull request #15268 from woocommerce/fix/14775
...
For COD orders, force payment complete status to be completed.
2017-05-25 15:12:34 -03:00
Mike Jolley
ba305eacb5
Fix tests
2017-05-25 18:16:10 +01:00
Boro Sitnikovski
be70a3f95c
Support floats for the custom sort function
2017-05-25 18:05:13 +02:00
claudiulodro
6d098b9c21
Clean up and some tests
2017-05-25 08:41:11 -07:00
Mike Jolley
c31ab30391
Create temp objects to update later
2017-05-25 14:54:49 +01:00
Mike Jolley
42c3c9e593
Remove extra full stop
2017-05-25 12:36:12 +01:00
Mike Jolley
2e5053633b
CRUD should update post type on update so it matches expected value.
2017-05-25 12:09:59 +01:00
Mike Jolley
d2da39e046
Merge branch 'pr/14549'
2017-05-25 11:51:55 +01:00
Mike Jolley
7ec25f987f
Only replace the user set thousand separator and add test
2017-05-25 11:51:45 +01:00
Mike Jolley
0e675137e3
Merge branch 'fix/issue-15252'
2017-05-25 11:30:09 +01:00
Mike Jolley
d73849eee3
wc_strtoupper helper
2017-05-25 11:30:01 +01:00
Anwer AR
c4fcddca73
Back to attributes link on attributes edit page ( #15088 )
...
* see #15059 The issue was about editing product attributes. Added back to attributes link.
* Updates admin_url to esc_url
* Added admin_url again wrapping inside esc_url
The function works without admin_url in my previous commit. but i have added admin_url again to make sure it points to correct location.
* Correctted typo of esc function and removed icon
correction of spell mistake and removal of &larr due to translation and RTL concerns. though WP and WC itself using &larr on some places.
2017-05-25 11:15:57 +01:00
Dixita Dusara
fe4a4a7e83
Update issue Undefined index warning when saving variations with stock management disabled #15242 ( #15271 )
...
* Issue Undefined index warning when saving variations with stock management disabled #15242
* updated issue as per your suggestion for index warning when saving variations with stock management disabled #15242
2017-05-25 10:58:32 +01:00
Claudio Sanches
a58bd42dcf
Merge pull request #15172 from woocommerce/fix/15166
...
Correct price query when on a post type archive
2017-05-24 21:13:30 -03:00
Cesar Rodas
563aa887f7
Apply woocommerce_order_get_items filter to get_item
2017-05-24 17:30:14 -04:00
Claudio Sanches
72b98cbf5d
Fixed WC_Customer->set_display_name @since #15239
2017-05-24 17:45:20 -03:00
Claudiu Lodromanean
be25e49069
Merge pull request #15266 from woocommerce/fix/15238
...
Fix saving of text attributes with special chars
2017-05-24 11:38:28 -07:00
Boro Sitnikovski
e68977d021
function_exists check
2017-05-24 20:22:58 +02:00
Mike Jolley
bf48ac9e96
Merge pull request #15239 from woocommerce/fix/15020-display-name-update
...
Check for an existing display name before updating a user on checkout
2017-05-24 19:20:45 +01:00
Boro Sitnikovski
c7c4cfbae5
Use mb
2017-05-24 20:19:17 +02:00
Claudiu Lodromanean
0a57283b61
Merge pull request #15264 from woocommerce/fix/15240
...
Gallery should be updated even if empty.
2017-05-24 11:18:53 -07:00
Kelly Dwan
ea98da7778
Use display_name from the customer data store
2017-05-24 14:14:29 -04:00
Mike Jolley
28d355948f
docblock
2017-05-24 19:11:16 +01:00
Boro Sitnikovski
43955736fc
Update PR after review
2017-05-24 20:10:51 +02:00
Kelly Dwan
0a265b53a2
Add display_name to customer data store
2017-05-24 13:57:11 -04:00
Mike Jolley
20637e53b8
For COD orders, force payment complete status to be completed.
2017-05-24 18:48:34 +01:00
Kelly Dwan
51f4a6b1b8
Customers: Don’t update the display name of a user when completing an order, unless the old display name is an email.
2017-05-24 13:32:02 -04:00
Mike Jolley
7f8add52a7
Fix saving of text attributes with special chars
...
Fixes #15238
2017-05-24 18:01:19 +01:00
Mike Jolley
4b74f304b0
Gallery should be updated even if empty.
...
Fixes #15240
2017-05-24 17:23:28 +01:00
Konstantin Kovshenin
8b5c5c0bd6
Helper: Add better update URLs to theme subscriptions
2017-05-24 18:15:07 +03:00
Konstantin Kovshenin
f912f39364
Helper: Add better update URLs to plugin subscriptions
2017-05-24 18:11:37 +03:00
Konstantin Kovshenin
353eac70ca
Helper: Remove some legacy updater notices
2017-05-24 18:10:31 +03:00
roykho
c837827992
Fix undefined global variable notice
2017-05-24 07:21:20 -07:00
Claudio Sanches
5f28c733cc
Merge pull request #15234 from woocommerce/update/14630
...
Update serializejson to 2.8.1
2017-05-24 09:21:10 -03:00
Boro Sitnikovski
30f20b81de
Make state validation less stricter for keys
2017-05-24 14:09:09 +02:00
Konstantin Kovshenin
e8afe57593
Helper: Add contextual nags about available extension updates
2017-05-24 14:59:48 +03:00
Claudio Sanches
da7d5786d3
Merge branch 'feature/product-csv-import-export' into feature/product-parser-match-exporter
2017-05-24 08:56:27 -03:00
Claudio Sanches
b08c75fb83
Added handler for default attributes and improved how deal with product attributes
2017-05-24 08:14:10 -03:00
Mike Jolley
f866f164eb
Merge pull request #15244 from woocommerce/improvement/15187
...
Order query unit tests and fixes.
2017-05-24 12:03:40 +01:00
Claudio Sanches
66d7aabe6c
Added full support for variations in importer
2017-05-24 07:26:57 -03:00
Konstantin Kovshenin
a1b3d2834b
Helper: Fix duplicate product output
2017-05-24 13:04:52 +03:00
Claudio Sanches
86036d7040
Check for WP_Error while getting/creating tags and shipping classes
2017-05-24 06:47:12 -03:00
Claudio Sanches
83f08ec18d
Set attribute as visible by default
2017-05-24 05:43:15 -03:00
Claudio Sanches
60dd750a7b
Handle product attributes
2017-05-24 04:32:28 -03:00
Claudio Sanches
cd4a9ccf6a
Fixed mapping sample display of 0 and false
2017-05-24 03:57:36 -03:00
Claudio Sanches
c08d3a356e
Added support "Attribute %d Visible"
2017-05-24 03:42:38 -03:00
Claudio Sanches
2c5c0133f3
meta_data is always an array
2017-05-24 03:35:53 -03:00
Claudio Sanches
b10f3a3be9
Fixed coding standards
2017-05-24 03:26:17 -03:00
Claudio Sanches
babc38822a
Handle featured image and gallery
2017-05-24 03:14:54 -03:00
claudiulodro
201ea727db
Simplify status check
2017-05-23 18:52:03 -07:00
claudiulodro
4faad7d964
Finish unit tests and bugfixes
2017-05-23 18:44:37 -07:00
Claudio Sanches
a07dc188d0
Parse and save downloads
2017-05-23 22:31:06 -03:00
Claudio Sanches
f676fa2752
Update products and variations parser
2017-05-23 21:58:10 -03:00
Claudio Sanches
43a26ea851
Properly map items when CSV match WooCommerce exporter format
2017-05-23 21:38:27 -03:00
Cesar Rodas
ea9c573f2c
Improved WC_Order::get_item()
...
Do not load all items, just load the items with a given order_item_type.
2017-05-23 20:12:47 -04:00
Claudio Sanches
2ebea10be6
Fixed tags and shipping class parsers warnings
...
wp_insert_term() returns array with `term_id` and `term_taxonomy_id` only.
2017-05-23 21:11:21 -03:00
Claudio Sanches
d20c61678c
Parser categories
2017-05-23 21:06:16 -03:00
Cesar Rodas
b612bab38b
Fixed coding styles
2017-05-23 19:18:31 -04:00
Cesar Rodas
dafc795d7c
Abstracting the WC_Meta_Data Properties with __set/__get
2017-05-23 19:15:13 -04:00
Cesar Rodas
b158ba2c47
Merge remote-tracking branch 'origin/master' into improve_meta_data_updates
2017-05-23 17:34:12 -04:00
Mike Jolley
383a318f59
Merge pull request #14949 from aelia-co/Improvement-customer-total-spent-filter
...
New filters for customer total spent
2017-05-23 20:37:58 +01:00
Diego Zanella
89efc65327
Fixed call to woocommerce_customer_get_total_spent_query filter
...
* Variable `$customer` was passed to `$wpdb->get_var()` instead of the filter.
2017-05-23 20:35:21 +01:00
Mike Jolley
c5d7dfba6c
Feedback
2017-05-23 19:46:46 +01:00
Mike Jolley
f6df18542a
Merge pull request #15113 from bekarice/fix/wc_create_refund-date
...
Fix: Re-add date for wc_create_refund()
2017-05-23 19:33:23 +01:00
Mike Jolley
a3b89a9efc
Merge pull request #15144 from timondavis/fix/15103-cannot_set_default_variation_to_string_zero
...
#15103 Variation default value of '0' fails to save on product.
2017-05-23 19:31:38 +01:00
Mike Jolley
8a22d41605
Merge remote-tracking branch 'origin/master'
2017-05-23 19:29:44 +01:00
Mike Jolley
41e8b22b5a
Merge branch 'pr/15219'
2017-05-23 19:28:45 +01:00
Mike Jolley
002dd935b5
Check we have a product object
2017-05-23 19:28:35 +01:00
Mike Jolley
35536b8ace
Merge pull request #14576 from Chouby/tools_message
...
Add custom message for custom system status tools
2017-05-23 19:22:47 +01:00
Mike Jolley
6dfdc86111
Merge branch 'pr/14678'
2017-05-23 19:16:37 +01:00
Mike Jolley
109e951de3
Renamed filters and actions
2017-05-23 19:16:30 +01:00
Mike Jolley
c16acc6b51
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-05-23 19:00:24 +01:00
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Mike Jolley
00e5189a05
Merge pull request #15070 from rasmusbe/phpdoc-missing-return-throws
...
Phpdoc: Add missing return and throws
2017-05-23 18:50:58 +01:00
Mike Jolley
4efc8d1247
Merge remote-tracking branch 'origin/master'
2017-05-23 18:48:31 +01:00
Mike Jolley
3b1894dd8f
Merge branch 'pr/15039'
2017-05-23 18:48:24 +01:00
Mike Jolley
c709b7f490
since
2017-05-23 18:48:16 +01:00
Mike Jolley
c6d63e7819
Merge pull request #15017 from Ninos/filter/cookie
...
Filter for cookie name
2017-05-23 18:38:42 +01:00
Mike Jolley
f594f11273
Merge pull request #14293 from woocommerce/fix/14162-query
...
Set and restore wp_query so product page functions think it's a real product page
2017-05-23 18:29:24 +01:00
Mike Jolley
c4837f4419
Merge pull request #14653 from woocommerce/fix/14150
...
Update price sorting code
2017-05-23 18:13:27 +01:00
Diego Zanella
a6bcc73846
Added $customer to filter woocommerce_customer_get_total_spent_query
2017-05-23 17:06:16 +01:00
Diego Zanella
885cb14029
Merge branch 'master' into Improvement-customer-total-spent-filter
2017-05-23 17:05:08 +01:00
Mike Jolley
8f27df6af3
Merge pull request #14294 from woocommerce/fix/14292
...
When searching, disable WC sort order
2017-05-23 16:43:24 +01:00
Mike Jolley
15f47e00a2
Merge branch 'master' into feature/13088
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# assets/css/twenty-seventeen-rtl.css
# assets/css/twenty-seventeen.css
# assets/css/woocommerce-rtl.css
# assets/css/woocommerce.css
2017-05-23 16:35:17 +01:00
Mike Jolley
db012b3a12
Merge pull request #15011 from woocommerce/fix/14999
...
Add abspath checks
2017-05-23 15:57:35 +01:00
Mike Jolley
d31a58b117
More abspath
2017-05-23 15:40:19 +01:00
Mike Jolley
2d479e0580
Update serializejson to 2.8.1
...
Closes #14630
2017-05-23 15:27:53 +01:00
Mike Jolley
7901653f94
Merge pull request #15003 from woocommerce/fix/15001
...
Use VAT for norway
2017-05-23 15:07:39 +01:00
Mike Jolley
90213efa46
Merge pull request #15227 from woocommerce/fix/15225
...
A single multi-word attribute is fine for variation titles
2017-05-23 15:06:55 +01:00
Mike Jolley
b1a5b23629
Done screen handling and form tweaks
2017-05-23 15:05:32 +01:00
Mike Jolley
2383799409
A single multi-word attribute is fine for variation titles
...
Closes #15225
2017-05-23 10:52:44 +01:00
Mike Jolley
f09f7eb84e
Merge pull request #15150 from woocommerce/fix/15118
...
Add handles so drag and drop does not break edit on mobile
2017-05-23 10:20:08 +01:00
dixitadusara
ebe831ccec
Issue Missing $ip Variable #15213
2017-05-23 11:50:30 +05:30
Claudio Sanches
ac304473c7
Allow external URL and button text for external products
2017-05-22 20:18:39 -03:00
Claudio Sanches
8d5f706077
Save meta_data
2017-05-22 19:31:05 -03:00
Claudio Sanches
7f92479f4f
Create shipping class or tag if does not exist
2017-05-22 19:24:33 -03:00
Claudio Sanches
775a934b74
Parse shipping class ID and tags IDs
2017-05-22 18:54:30 -03:00
James Kemp
90c987af70
Utilise $product method to get thumbnail
...
Is there any reason this function isn't using the `get_image()` method? It seems if we're accessing the `$post->ID`, then we should have access to the `$product` object too?
The reason being, the `get_image()` method also checks for the parent featured image, so is more robust. It may also be worth considering a filter in the `get_image()` method.
2017-05-22 22:07:51 +01:00
Claudiu Lodromanean
4bbc50d52c
Merge pull request #15182 from woocommerce/fix/14861
...
Group by term ID to prevent duplicates
2017-05-22 13:14:47 -07:00
Claudiu Lodromanean
58189cb4b5
Merge pull request #15208 from woocommerce/fix/15203
...
Missing variable in legacy API
2017-05-22 13:10:28 -07:00
Claudiu Lodromanean
d530587cd3
Merge pull request #15170 from woocommerce/fix/15163
...
Cancelled email should be send for processing orders, not pending.
2017-05-22 12:00:25 -07:00
Claudiu Lodromanean
2a19598930
Merge pull request #15214 from woocommerce/fix/15191
...
Update jquery payment to v3
2017-05-22 11:13:22 -07:00
Claudiu Lodromanean
700460d925
Merge pull request #15211 from woocommerce/fix/15002
...
Zones API changes for zone 0
2017-05-22 11:12:59 -07:00
Mike Jolley
2a51aa2020
Update jquery payment to v3
2017-05-22 16:37:08 +01:00
Mike Jolley
b1bf3278a7
Prevent zone 0 having locations set in CRUD
2017-05-22 15:19:15 +01:00
Mike Jolley
8cba7db7cd
Prevent zone 0 name being changed
2017-05-22 15:19:04 +01:00
Mike Jolley
a826b363d8
Prevent zone 0 locations being changed
2017-05-22 15:18:55 +01:00
Mike Jolley
d1b49888f2
Missing variable in legacy API
...
Fixes #15203
2017-05-22 13:25:33 +01:00
Mike Jolley
fc8100877c
Undo change
2017-05-22 12:19:54 +01:00
Claudio Sanches
4f16740f61
Parse special column names and internal fields
2017-05-19 18:50:09 -03:00
Claudio Sanches
8a7e215b41
Return raw_keys if mapped_keys is empty
2017-05-19 18:46:42 -03:00
Claudio Sanches
e66a657a2e
Removed "CSV" from filters and IDs
2017-05-19 18:45:58 -03:00
claudiulodro
57c4d904bd
Type
2017-05-19 12:43:40 -07:00
claudiulodro
cb297ad1b0
Add skip existing option
2017-05-19 10:58:31 -07:00
Mike Jolley
eae2fb64c8
Group by term ID to prevent duplicates
...
Fixes #14861
2017-05-19 15:27:57 +01:00
Mike Jolley
636754096d
Handle type parsing correctly
2017-05-19 15:06:45 +01:00
Mike Jolley
754e991220
Redirect if there is no mapping data
2017-05-19 15:06:36 +01:00
Mike Jolley
e860a8d307
Abort if we have no mapping data
2017-05-19 14:59:05 +01:00
Mike Jolley
aeb3234ec6
Formatting
2017-05-19 14:33:40 +01:00
Mike Jolley
cde32be82d
Done step and styling
2017-05-19 13:25:03 +01:00
Mike Jolley
1617c62f47
Export text tweaks
2017-05-19 12:03:34 +01:00
Mike Jolley
2082d84e4d
Always sync incorrect titles on variation read regardless of version
...
For #15158
2017-05-19 11:28:13 +01:00
Mike Jolley
47d7fedff8
Correct price query when on a post type archive
...
Fixes #15166
2017-05-19 11:19:30 +01:00
Mike Jolley
067489b155
Cancelled email should be send for processing orders, not pending.
...
Fixes #15163
2017-05-19 10:45:26 +01:00
Claudio Sanches
33da6e16de
Start handle parsed data
2017-05-18 21:19:01 -03:00
Claudio Sanches
2ba8e27469
Included required methods to the interface
2017-05-18 21:18:56 -03:00
Claudio Sanches
ca083c6197
Skip reletive field if empty
2017-05-18 21:18:53 -03:00
Claudio Sanches
4c9d7ef02e
Handle relative fields
2017-05-18 21:18:50 -03:00
Claudio Sanches
74b4ba8a94
Improved sanitization in product CSV importer and handle special columns
2017-05-18 21:18:47 -03:00
Claudiu Lodromanean
a13668f201
Merge branch 'feature/product-csv-import-export' into feature/background-processing
2017-05-18 10:11:34 -07:00
claudiulodro
9d52ef9f61
Performance tweak
2017-05-18 10:05:31 -07:00
claudiulodro
83908bc735
Move file functions to abstract class
2017-05-18 09:59:40 -07:00
claudiulodro
b2e8d31262
Clean up
2017-05-18 09:49:58 -07:00
Mike Jolley
9f4b29a677
Merge pull request #15153 from woocommerce/tweak/15104
...
Check if subtotal is blank, not empty
2017-05-18 16:50:26 +01:00
Claudiu Lodromanean
0132a29c18
Merge pull request #15152 from woocommerce/fix/15127
...
Handle shipping item taxes if set to avoid the legacy fallback
2017-05-18 08:28:02 -07:00
Claudiu Lodromanean
b5b76a428f
Merge pull request #15151 from woocommerce/fix/15145
...
Fix stock/backorder notice when stock management is disabled
2017-05-18 08:24:04 -07:00
Mike Jolley
8dbf41994b
Check if subtotal is blank, not empty
...
Closes #15104
2017-05-18 15:59:07 +01:00
Mike Jolley
56a3b31e68
Handle shipping item taxes if set to avoid the legacy fallback
...
Fixes #15127
2017-05-18 15:48:42 +01:00
Mike Jolley
89ece25a32
Fix stock/backorder notice when stock management is disabled
...
Fixes #15145
2017-05-18 15:28:38 +01:00
Mike Jolley
c3c966b5fd
Add handles so drag and drop does not break edit on mobile
...
Fixes #15118
2017-05-18 15:22:12 +01:00
Mike Jolley
eb147197a2
Variations should inherit purchase_note from parent.
...
Fixes #15115
2017-05-18 14:47:00 +01:00
Mike Jolley
cac5b33553
Merge pull request #14639 from atimmer/stories/webhook-public-build_payload
...
Change build_payload from private to public
2017-05-18 13:15:53 +01:00
Mike Jolley
ebfe8fec65
Merge pull request #14953 from pixedelic/master
...
added filters on zoom / flexslider / photoswipe enabling
2017-05-18 13:14:14 +01:00
Timon Davis
af308da6b9
Fix bug #15103 where site operator cannot assign a variation with value of '0' as the default choice on the customer facing form.
...
The WC_Product::set_default_attributes function uses an array_filter (using the default callback for filtration)
to remove null and false values from the defaults array for a given product. The issue here is that, in the above use case,
the array_filter will evaluate '0' as 0 and therefore as false. Ultimately, array_filter then prevents the value from being
recorded, moving forward.
I've added a new filter callback to includes/wc-attribute-functions which will disregard all FALSE PHP equivalents except for
'0' (as a a string). Also, I've updated the filter_array call in WC_Product::set_default_attributes so that it uses this new callback,
instead of the PHP default. Finally, I've added a phpunit test to assert that, when storing default variations / attributes on a product,
the false/true PHP synonyms are evaluating and storing like one would normally expect, with the exception that (string) '0'
evaluates as true in this special case.
This solution could potentially be broadened to facililate similar rules elsewhere, but the need raised in the bug is specific and
this is a specific solution.
2017-05-18 02:43:14 -07:00
Boro Sitnikovski
d302e18a9b
Rename `informational` to `info` in the phpdoc
2017-05-18 10:32:25 +02:00
Claudio Sanches
36fa838678
Allow extend auto mapping options
2017-05-17 21:10:26 -03:00
Claudio Sanches
df63ea9b5a
Handle special column names
...
Handle columns names like "Attribute 1 Name" and "Meta: _foo_bar".
2017-05-17 20:59:36 -03:00
claudiulodro
2ab0fdfe78
Styling
2017-05-17 14:55:20 -07:00
claudiulodro
fa1446bc86
Clean up
2017-05-17 14:43:03 -07:00
claudiulodro
17083dafae
Initial background importer implementation
2017-05-17 14:34:49 -07:00
Claudio Sanches
d3ec48f378
Match regular fields between exporter and importer
2017-05-17 17:55:28 -03:00
Claudio Sanches
ce6741e117
Fixed error display and incorrect use of WP_Error
2017-05-17 14:57:03 -03:00
Claudio Sanches
215a9fa0c1
Fixed warning about empty callback name
2017-05-17 14:43:48 -03:00
Mike Jolley
e23acb3719
Fix shop page when using shop base and UTF8 shop page slug
...
To test, set shop page slug and name to `חנות` then set permalinks to
shop base.
Repeat that before and after patch.
Shop page 404 errors before patch.
Fixes #15111
2017-05-17 18:13:32 +01:00
Mike Jolley
956b1a6181
Adds storefront/theme step to the setup wizard
...
Also includes a background install to get Storefront installed and
activated on demand.
To test, use a default theme and go to wp-admin/index.php?page=wc-setup
The theme step will be after payments!
2017-05-17 17:42:18 +01:00
claudiulodro
adc8f4eacb
Use correct method name
2017-05-17 09:15:49 -07:00
claudiulodro
d6ef3ca855
Docblock tweak and remove unused query var
2017-05-17 08:51:45 -07:00
Mike Jolley
a6537ff269
export styling
2017-05-17 14:22:41 +01:00
Mike Jolley
d67fb8fb83
New style import controller
...
Closes #15107
2017-05-17 14:16:38 +01:00
Mike Jolley
bf2979f68d
Revert change - export directory contains logic only, not admin
2017-05-17 11:50:55 +01:00
Mike Jolley
8a48c7d388
Made exporter and importer screens, classes and directories consistent
...
Once merged, @claudiosanches @claudiulodro, we should work on
https://github.com/woocommerce/woocommerce/tree/feature/product-csv-impo
rt-export branch going forward and get this merged into it.
2017-05-17 11:24:27 +01:00
Mike Jolley
3d5f1c1fe6
Merge branch 'feature/product-csv-import-export' into feature/csv-importer
2017-05-17 10:36:39 +01:00
Beka Rice
8885d58799
Fix: Re-add date for wc_create_refund
2017-05-17 04:46:56 -04:00
Mike Jolley
34a7f9b3dd
Merge pull request #15084 from ryelle/add/profile-field-improvements
...
Customer Profiles: copy billing address to shipping address
2017-05-16 20:31:05 +01:00
Kelly Dwan
3cb3a1b085
Style & escaping fixes, based on review feedback
2017-05-16 14:01:14 -04:00
Mike Jolley
7205a8e020
Merge pull request #15090 from woocommerce/fix/14763
...
Use site locale for customer emails.
2017-05-16 17:27:39 +01:00
Claudio Sanches
f471a8d846
Merge pull request #15098 from woocommerce/fix/15087
...
If backorders are enabled, do not make variable products out of stock.
2017-05-16 12:45:10 -03:00
Claudio Sanches
21baa5d230
Merge pull request #15095 from woocommerce/fix/15056
...
Support searches < 3 chars but with limiting.
2017-05-16 12:44:04 -03:00
Claudio Sanches
f7c26dee7b
Merge pull request #15079 from woocommerce/fix/settings-api-base-location
...
Fix 'base location' not being returned via the settings API.
2017-05-16 12:41:28 -03:00
Claudio Sanches
8a987ec822
Merge pull request #15072 from woocommerce/fix/15057
...
Make calculate tax function clear taxes if disabled on recalculation
2017-05-16 12:38:41 -03:00
Mike Jolley
5939939244
Wizard and blank state
2017-05-16 15:36:56 +01:00
Mike Jolley
7293025c92
Import page placeholder
2017-05-16 15:21:35 +01:00
Mike Jolley
2ba6613abe
Hide export menu item
2017-05-16 15:21:29 +01:00
Mike Jolley
74e2f61f0c
Import and export buttons
2017-05-16 15:06:22 +01:00
Mike Jolley
6949ee162e
Reduce visual noise
2017-05-16 15:05:11 +01:00
claudiulodro
73b7b2d91b
Typo
2017-05-16 06:31:52 -07:00
Mike Jolley
cb76f38f11
If backorders are enabled, do not make variable products out of stock.
...
Fixes #15087
2017-05-16 13:06:38 +01:00
Mike Jolley
351b0e0c67
Support limiting in search_customers
2017-05-16 10:16:57 +01:00
Mike Jolley
bf613bc922
Limit results to 20 for short strings and allow < 3 chars
2017-05-16 10:16:04 +01:00
Mike Jolley
59e9477730
Merge pull request #15094 from bekarice/fix/php-fatal-undefined-function
...
Fix Fatal Error: undefined function
2017-05-16 09:34:38 +01:00
Mike Jolley
7ad295d64d
Merge pull request #15076 from woocommerce/feature/14385
...
Show login form on the "pay for order" step
2017-05-16 09:31:53 +01:00
Beka Rice
562c50a3b0
Fix Fatal Error: undefined function
2017-05-16 04:04:47 -04:00
Claudio Sanches
365fbb5c3b
Moved main methods to abstract class
2017-05-16 01:43:45 -03:00
Claudio Sanches
1dc14690fb
Improved interface including important methods
2017-05-16 01:43:15 -03:00
Claudio Sanches
966090044d
Variation support
2017-05-16 01:22:00 -03:00
Claudio Sanches
020e61927b
Created abstract product class
2017-05-16 01:02:46 -03:00
claudiulodro
46b9190c9f
Remove extra restore_locale
2017-05-15 18:11:23 -07:00
claudiulodro
19047ffb00
Better way of doing it
2017-05-15 18:09:24 -07: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
claudiulodro
838b175f67
Use store language in customer emails
2017-05-15 14:34:37 -07:00
Kelly Dwan
ce06a92e57
Profiles: Add get_user_meta helper, which can fall back on core user fields when applicable, such as first_name, last_name, and email for billing fields.
2017-05-15 17:10:31 -04:00
Kelly Dwan
faea811a92
Customer profile: Add a “Copy from billing” button to shipping user meta fields
2017-05-15 17:09:02 -04:00
Claudiu Lodromanean
05132f724c
Merge pull request #15067 from woocommerce/fix/15047
...
$post global is not required in meta box callback
2017-05-15 10:35:07 -07:00
Justin Shreve
0c5588aac7
Makes sure that the 'base location' setting is returned to the /settings/general endpoint correctly. It uses a special setting type that the API didn't handle properly.
2017-05-15 10:21:06 -07:00
Mike Jolley
cfce278840
If logged out, show a form on the payment step so the customer can login.
...
Closes #14385
To test, create an order pending payment for a USER. If you use the
‘payment’ link on the edit order screen logged out you should see a
login form.
If you create an order and associate no user account, no form should be
shown and you don’t need to login.
2017-05-15 16:53:06 +01:00
Mike Jolley
dd798d219e
Make calculate tax function clear taxes if disabled on recalculation
...
Fixes #15057
2017-05-15 14:55:39 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Mike Jolley
31651e41cb
Merge pull request #15063 from rasmusbe/unused-vars
...
Remove unused local variables
2017-05-15 12:45:54 +01:00
Rasmus Bengtsson
4a3902cd48
PHPDoc: Add missing throws statement
2017-05-15 13:39:03 +02:00
Rasmus Bengtsson
4f00d7e5e3
PHPDoc: Add missing return statement
2017-05-15 13:37:59 +02:00
Mike Jolley
87b66cec90
Merge pull request #15061 from rasmusbe/fix-array-duplicates
...
Remove duplicate entries from defined arrays
2017-05-15 12:33:20 +01:00
Mike Jolley
7c63c21eaf
$post global is not required in meta box callback
...
Fixes #15047
2017-05-15 12:29:11 +01:00
Rasmus Bengtsson
6a7fc8650f
Remove unused local variables
2017-05-15 12:06:52 +02:00
Mike Jolley
f40dddacc3
Feedback
2017-05-15 10:42:10 +01:00
Mike Jolley
99e63a8ca9
Merge pull request #15054 from woocommerce/improvement/14795
...
Integrate WC_Order_Query
2017-05-15 10:24:47 +01:00
Rasmus Bengtsson
51fd482206
Remove duplicate entries from defined arrays
2017-05-15 10:48:02 +02:00
claudiulodro
9e9b9b86ba
Cant use empty check in customer query var
2017-05-14 17:05:46 -07:00
claudiulodro
cec2c3b7dc
Couple requested changes
2017-05-13 12:22:22 -07:00
claudiulodro
d9c5536cf2
formatting
2017-05-12 15:31:34 -07:00
claudiulodro
fe40e9b96a
Make date queries work properly
2017-05-12 15:25:15 -07:00
claudiulodro
5b578c389f
Use previous filter name
2017-05-12 13:14:52 -07:00
claudiulodro
eee2ef82e8
Deprecate ->get_orders
2017-05-12 13:06:17 -07:00
Mike Jolley
e777b4d557
Merge branch 'feature/product-csv-import-export' into feature/csv-exporter
2017-05-12 21:03:20 +01:00
claudiulodro
2ce90b3eb6
Slightly better date handling
2017-05-12 12:59:54 -07: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
claudiulodro
3861e32803
Migrate wc_get_orders
2017-05-12 11:45:01 -07: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
Diego Zanella
8fd1366bba
#15038 Made WC_Checkout::get_posted_data() public
2017-05-12 10:23:10 +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
Ninos Ego
89113cf6b2
Added filter for cookie name
2017-05-10 21:46:43 +02: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
Mike Jolley
bc4d36fd3f
Add abspath checks
...
Closes #14999
2017-05-10 19:03:19 +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
55497b8671
Use VAT for norway
2017-05-10 17:48:03 +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
pixedelic
45d13ff1b2
added filters on zoom / flexslider / photoswipe enabling
2017-05-09 08:44:20 +02: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
Diego Zanella
3f3f2bdc2c
New filters for customer total spent
...
* Added new filters to allow altering the calculation of customer's total spent:
* `woocommerce_customer_get_total_spent`
* `woocommerce_customer_get_total_spent_query`
2017-05-08 19:39:13 +01: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
claudiulodro
05f3283c75
Remove debug
2017-05-05 09:18:15 -07:00
claudiulodro
afe1a0dd21
Use term name for tax-based attribute reorder
2017-05-05 09:15:27 -07:00
Manos Psychogyiopoulos
bbf0be1205
Tweak meta display value rendering in wc_display_item_meta
2017-05-05 16:11:49 +03:00
corsonr
96bfb45b02
Add zipcode validation for France
...
Add zipcode validation for France and oversea territory.
2017-05-05 09:52:03 +02:00
Claudio Sanches
1753406dc0
Fixed warning when no customer country is defined.
...
Fixes #14850
2017-05-04 18:54:44 -03:00
Claudio Sanches
9930099b98
Merge pull request #14846 from woocommerce/fix/non-numeric-warning-order
...
Fix non numeric warning for orders.
2017-05-04 18:35:51 -03:00
claudiulodro
5a963f74c2
Clean p
2017-05-04 14:27:40 -07:00
claudiulodro
b907aa74f6
Finish parser and unit test
2017-05-04 14:20:59 -07:00
Claudio Sanches
bc24b0e728
Merge pull request #14869 from ovidiumght/master
...
Wrong attribute param annotations
2017-05-04 13:51:35 -03:00
Claudio Sanches
b5385a6a20
Merge pull request #14864 from woocommerce/fix/14857
...
Introduced woocommerce_shop_order_search_results filter
2017-05-04 13:40:39 -03:00
Boro Sitnikovski
f493afe718
intval -> floatval
2017-05-04 10:09:16 +02:00
Beka Rice
adf0851117
Fix: mark stock as reduced in wc_reduce_stock_levels()
2017-05-04 03:52:38 -04:00
Ovidiu Magheitu
497c0ecae1
Wrong attribute param annotations
2017-05-04 09:48:05 +03:00
claudiulodro
d642212205
More parser progress
2017-05-03 14:53:31 -07:00
Claudio Sanches
abfedafd46
Merge pull request #14842 from woocommerce/fix/14799
...
Get outdated plugins using get_plugin_updates()
2017-05-03 18:42:17 -03:00
claudiulodro
1f10995d80
Parser progress
2017-05-03 14:30:50 -07:00
Claudio Sanches
421c9a3ba7
Introduced woocommerce_shop_order_search_results filter
...
Closes #14857
2017-05-03 18:14:41 -03:00
Claudio Sanches
84dfaf3c09
Merge pull request #14851 from franticpsyx/clone-meta-data
...
[3.0] Clone each meta stdClass object when cloning a WC_Data object
2017-05-03 18:03:54 -03:00
Claudio Sanches
12bd41dd4b
Merge pull request #14849 from franticpsyx/fix-get-price-html-from-to-fallback
...
[3.0] Incorrect use of `wc_format_price_range` in `get_price_html_from_to`
2017-05-03 17:40:40 -03:00
Claudio Sanches
6f126d7c60
Merge pull request #14853 from woocommerce/fix/14818
...
Improve "Save Order" button to reproduce WordPress post/page behavior
2017-05-03 17:36:22 -03:00
Claudio Sanches
63552c9757
Fixed conflict between global attributes and custom attributes.
...
Check if is a custom attribute before trying to get an ID from a global attribute.
2017-05-03 16:30:50 -03:00
Claudio Sanches
67258ec8da
Improve "Save Order" button to reproduce WordPress post/page behavior
...
Display "Create" when order is in "auto-draft" status and then display only "Update" after.
Closes #14818
2017-05-03 15:06:06 -03:00
Claudio Sanches
7edf10e9e1
Merge pull request #14843 from woocommerce/fix/14831
...
[REST API] Adds missing "id" in shipping zone methods endpoint
2017-05-03 13:37:56 -03:00
Manos Psychogyiopoulos
8f7671f066
Clone each meta object when cloning WC_Data object to avoid modifying original meta stdClass objects
2017-05-03 16:37:01 +03:00
Manos Psychogyiopoulos
faa53edc2b
Call `wc_format_sale_price` in `get_price_html_from_to`
2017-05-03 15:13:29 +03:00
Konstantin Kovshenin
dc2360711f
Helper: Toggle subscription on plugin activation/deactivation
...
When a user activates or deactivates an extension, attempt to find
a valid subscription for that extensioni, and activate/deactivate it
to spare the user an extra step.
2017-05-03 14:37:36 +03:00
Konstantin Kovshenin
39218ea323
Helper: Remove everything related to woocommerce.dev
2017-05-03 13:45:43 +03:00
Konstantin Kovshenin
564327cac3
Helper: Use strict comparison when checking response code from update-check
2017-05-03 13:34:55 +03:00
Konstantin Kovshenin
ca93452354
Helper: Fix some missing docblocks
2017-05-03 13:33:39 +03:00
Boro Sitnikovski
8f63211f1c
Fix non numeric warning for orders.
2017-05-03 08:31:35 +02:00
Claudio Sanches
7b5d56c643
[REST API] Adds missing "id" in shipping zone methods endpoint
...
This missing "id" will break CLI.
Added as duplicated with `instance_id` to keep backwards compatibility.
Fixes #14831
2017-05-02 20:37:03 -03:00
claudiulodro
f2af2d4e7c
Data reader
2017-05-02 15:06:54 -07:00
Claudio Sanches
9ae846ccad
Get outdated plugins using get_plugin_updates()
...
plugins_api() does a query for each plugin in api.wordpress.org that can takes 15 seconds, what is bad when have a lot of installed plugins and causing "gateway timeout" issues in System Status page.
get_plugin_updates() have already all available updates saved in cache.
Fixes #14799
2017-05-02 19:04:26 -03:00
Claudio Sanches
ed5877f395
Improve docblocks
2017-05-02 16:48:00 -03:00
claudiulodro
7531d0a022
Importer admin screen
2017-05-01 14:30:45 -07:00
Akeda Bagus
881929b9b3
Fix small typo in the docblock.
2017-04-29 13:52:14 +07:00
Claudio Sanches
ad09564ff3
Removed extra comment
2017-04-28 20:08:37 -03:00
Claudio Sanches
26a6dfa803
Applied wc_get_star_rating_html() to rating filter widget
2017-04-28 20:01:01 -03:00
Claudio Sanches
1d65c9d8b7
Better screen reader support
2017-04-28 19:59:50 -03:00
Claudio Sanches
5826a9bce0
Display total of customer reviews and applied to rating template
2017-04-28 19:56:05 -03:00
Claudio Sanches
685b999357
Fixed missing variable
2017-04-28 19:41:11 -03:00
Claudio Sanches
d62e68fdb5
Better i18n support
2017-04-28 19:36:43 -03:00
Claudio Sanches
a049835c05
Introduced new wc_get_star_rating_html() function
2017-04-28 19:32:25 -03:00
Claudio Sanches
e945db9464
Fixed relative URL in process lost password
...
Closes #14701
2017-04-28 18:29:58 -03:00
claudiulodro
7c393a4469
Better time handling
2017-04-28 14:01:06 -07:00
claudiulodro
1bb46ad876
Array filter results
2017-04-28 10:12:31 -07:00
claudiulodro
c93c45b15e
Docblock
2017-04-28 09:55:49 -07:00
Claudio Sanches
f6136ba326
Merge pull request #14789 from woocommerce/fix/undefined-customer-user
...
Fixed undefined customer_user when remove users from order in admin
2017-04-28 13:28:18 -03:00
Claudio Sanches
8885c66d8c
Merge pull request #14787 from woocommerce/fix/14750
...
Fix zone routes in CLI
2017-04-28 13:14:34 -03:00
Claudio Sanches
e46cb8813d
Fixed undefined customer_user when remove users from order in admin
2017-04-28 13:13:18 -03:00
Mike Jolley
b0bba8c853
Remove array merge
2017-04-28 17:09:39 +01:00
Claudio Sanches
c48ddfbab8
Merge pull request #14784 from woocommerce/fix/14769
...
get_settings for shipping and checkout need to support sections for the API
2017-04-28 12:49:53 -03:00
Mike Jolley
4b0fff3437
Fix zone routes in CLI
...
Fixes #14750
2017-04-28 15:49:51 +01:00
Mike Jolley
d744dce594
get_settings for shipping and checkout need to support sections for the API
...
Fixes #14769
2017-04-28 14:37:44 +01:00
Mike Jolley
af09548ec0
Add missing shipping_company from internal props in data store
...
Fixes #14768
2017-04-28 13:44:22 +01:00
Mike Jolley
25bca1c218
Merge branch 'pr/13391'
2017-04-28 13:36:10 +01:00
Mike Jolley
6fb644738e
woocommerce_after_set_term_order
2017-04-28 13:36:01 +01:00
Mike Jolley
d14a679e70
Merge pull request #14697 from bekarice/tweak/confirm-log-deletion
...
Confirm before deleting log files
2017-04-28 12:57:48 +01:00
Mike Jolley
e960756d22
Merge pull request #14766 from umeshnevase/master
...
Removed unused variable $variation_data
2017-04-28 12:49:17 +01:00
claudiulodro
30d2332f48
Handle paginate
2017-04-27 19:14:48 -07:00
claudiulodro
0721354ff2
Add paginate
2017-04-27 15:02:02 -07:00
claudiulodro
11c7722eff
Update tests
2017-04-27 14:46:00 -07:00
claudiulodro
059389c684
Missed a spot
2017-04-27 14:13:06 -07:00
claudiulodro
4eb1396e85
Offload more to subclasses
2017-04-27 14:09:10 -07:00
claudiulodro
027e7b1f94
Add restored webhook
2017-04-27 11:44:57 -07:00
umesh.nevase
168b5e2833
Removed unused variable
...
$variation_data = array_map( 'urlencode', $this->get_variation_attributes() );
2017-04-27 23:59:16 +05:30
claudiulodro
db3de7375d
Tweaks from feedback
2017-04-27 11:07:03 -07:00
Mike Jolley
ddcf561b70
Merge pull request #14722 from woocommerce/fix/14720
...
wc_attribute_taxonomy_id_by_name needs to use lowercase attribute slug
2017-04-27 18:08:03 +01:00
Mike Jolley
1d91276f77
Use sanitize_title
2017-04-27 18:07:39 +01:00
Mike Jolley
796ab0f257
Merge pull request #14756 from woocommerce/fix/14753
...
Compare with timestamp and remove start date once passed for sale products
2017-04-27 18:06:18 +01:00
Mike Jolley
a1ff66fbe7
Merge remote-tracking branch 'origin/master'
2017-04-27 18:05:40 +01:00
Mike Jolley
d0ebf48da4
Merge branch 'fix-13625'
...
# Conflicts:
# assets/css/woocommerce-layout-rtl.css
# assets/css/woocommerce-layout.css
# assets/css/woocommerce-layout.scss
# includes/wc-core-functions.php
2017-04-27 18:05:34 +01:00
Claudio Sanches
c58a6f42e3
Merge pull request #14604 from cristiangrama/fix-filter-guest-orders
...
Fetch only guest orders: Allow passing a `customer=0` filter on the order request
2017-04-27 14:04:19 -03:00
Mike Jolley
ad578137be
No need to wrap - leave styling to themes
2017-04-27 18:03:42 +01:00
Mike Jolley
56d190287e
Merge pull request #14755 from woocommerce/fix/14736
...
On multisite, add user to blog during checkout if not a user
2017-04-27 17:46:54 +01:00
Mike Jolley
e143a51cc7
Merge pull request #14463 from woocommerce/add/show-shipping-calculator-variable
...
Add variable so shipping calculator is shown on first row
2017-04-27 17:41:48 +01:00
Mike Jolley
8869cb3c2a
First to false at loop end
2017-04-27 17:41:25 +01:00
Mike Jolley
0d89250b3f
Merge pull request #14748 from woocommerce/fix/stock-in-cart-notice
...
Correct the stock display notice when a variable product manages stock for it's children
2017-04-27 17:38:59 +01:00
Mike Jolley
ca0c3e0bb8
Merge pull request #14064 from rafsuntaskin/develop
...
added bulk variation update for stock status, resolves #14046
2017-04-27 17:37:59 +01:00
Cesar Rodas
7a8011e878
Merge remote-tracking branch 'origin/master' into improve_meta_data_updates
2017-04-27 12:29:09 -04:00
Mike Jolley
a68934d7db
Merge pull request #14731 from crodas/make_sure_meta_data_cache_is_not_shared
...
Make sure the meta data cache is not shared among instances
2017-04-27 16:50:10 +01:00
Mike Jolley
4e8de076d2
Merge pull request #14740 from woocommerce/fix/14452
...
Fixed how to flush rewrite rules after save the shop main page
2017-04-27 16:44:25 +01:00
Claudio Sanches
1bf2902762
Check if get_current_screen() is true
2017-04-27 12:42:16 -03:00
claudiulodro
6aecb15505
Reduce scope
2017-04-27 08:38:18 -07:00
Mike Jolley
891e55e1cf
Merge pull request #14721 from woocommerce/fix/14670
...
Avoid escaped quote chars in strings
2017-04-27 15:34:27 +01:00
Mike Jolley
eedcdd97ba
Compare with timestamp and remove start date once passed for sale products
...
Fixes #14753
2017-04-27 14:35:33 +01:00
Cesar Rodas
2e6dc17bd5
Improved update_meta_data function
...
Also updated unit tests that was expecting the meta data as stdclass objects
2017-04-27 09:28:19 -04:00
Mike Jolley
a283351ef8
On multisite, add user to blog during checkout if not a user
...
Fixes #14736
2017-04-27 13:48:45 +01:00
Mike Jolley
a6329fa68c
Merge pull request #14752 from woocommerce/pr/14732
...
revert price handling of get_price_html()
2017-04-27 13:03:15 +01:00
Mike Jolley
db5e2572f6
clean up
2017-04-27 13:01:52 +01:00
Mike Jolley
aacb01d1e7
Merge branch 'pr/13503'
...
# Conflicts:
# assets/css/twenty-seventeen.css
# assets/css/woocommerce-layout.css
# assets/css/woocommerce-layout.scss
# assets/css/woocommerce.css
2017-04-27 12:46:05 +01:00
Mike Jolley
3403e39740
Add icons and fix links
2017-04-27 12:23:16 +01:00
Mike Jolley
bbffbd6a9f
Merge branch 'master' into maybe_blank_keys_webhooks
2017-04-27 12:11:27 +01:00
Mike Jolley
29feafb116
Merge branch 'pr/14414'
2017-04-27 12:01:45 +01:00
Mike Jolley
2e77b0f417
Keep both classes
2017-04-27 12:01:37 +01:00
Mike Jolley
7c037728f6
Merge branch 'fix/14448'
...
# Conflicts:
# assets/js/frontend/single-product.min.js
2017-04-27 12:00:05 +01:00
Mike Jolley
d546613c25
Merge branch 'pr/14394'
...
# Conflicts:
# assets/js/frontend/single-product.min.js
2017-04-27 11:53:08 +01:00
Mike Jolley
a5018f5531
Merge pull request #13409 from diggy/patch-1
...
filter recent reviews dashboard widget query
2017-04-27 11:41:36 +01:00
Mike Jolley
cf35375260
Merge branch 'pr/13712'
2017-04-27 11:39:44 +01:00
Mike Jolley
7e056adbae
Revise menu titles to match wp admin
2017-04-27 11:39:34 +01:00
Mike Jolley
60a5ecf775
Merge pull request #13761 from franticpsyx/sold-individually-found-in-cart
...
[3.1] Add woocommerce_add_to_cart_sold_individually_found_in_cart hook
2017-04-27 11:32:33 +01:00
Mike Jolley
57229d4b20
Merge pull request #14589 from woocommerce/add/shipping-zone-setup-in-wizard
...
Automatic Shipping Zone Creation In Setup Wizard
2017-04-27 11:28:23 +01:00
Mike Jolley
2660f994e6
Merge pull request #14551 from hussong/patch-1
...
Change field label and placeholder to minimize user error
2017-04-27 11:25:49 +01:00
Mike Jolley
dac36505c2
Correct the stock display notice when a variable product manages stock for it's children
2017-04-27 11:03:56 +01:00
Claudio Sanches
dbddcaf95f
Fixed how to flush rewrite rules after save the shop main page
...
Fixes #14452
2017-04-26 21:51:30 -03:00
Cesar Rodas
af65da6494
Added doc-comments
2017-04-26 19:39:19 -04:00
claudiulodro
020e24225a
Line up array
2017-04-26 14:20:44 -07:00
claudiulodro
1647e253a0
Add filters
2017-04-26 11:19:54 -07:00
claudiulodro
2fad12221d
Better comments
2017-04-26 11:04:28 -07:00
Cesar Rodas
91de312eb2
Make sure the meta data cache is not shared among instances
...
See #14620 for more context. In there I thought this was the desired behaviour and I enhanced it. After talking with @mikejolley he explained to me that it was not by designed.
This commit makes sure the meta data cache is not shared among instances
2017-04-26 13:51:52 -04:00
claudiulodro
9f0f0cd246
Polish and cleanup
2017-04-26 10:49:19 -07:00
Kathy Darling
36dbe64170
revert price handling so null price still is filtered by woocommerce_get_price_html. closes #14727 .
2017-04-26 12:37:30 -05:00
Mike Jolley
ac0984f4e2
Merge pull request #14716 from woocommerce/fix/14674
...
Correctly migrate legacy shipping taxes data
2017-04-26 16:58:19 +01:00
Mike Jolley
88a6681347
Merge pull request #14713 from woocommerce/fix/14694
...
Don't strtolower address strings
2017-04-26 16:57:44 +01:00
Mike Jolley
165a8971ae
Merge pull request #14712 from woocommerce/fix/14700
...
Add required placeholder for meta fields
2017-04-26 16:57:29 +01:00
Konstantin Kovshenin
48a44eb7e5
Helper: Add some missing docblocks
2017-04-26 18:50:38 +03:00
Konstantin Kovshenin
c440994883
Helper: Don't use assignment in helper disconnect check
2017-04-26 18:39:26 +03:00
Konstantin Kovshenin
ed734f350d
Helper: Use date_i18n() instead of date()
2017-04-26 18:38:24 +03:00
Konstantin Kovshenin
eacffb823a
Helper: Add l10n functions to all strings
2017-04-26 18:36:20 +03:00
Konstantin Kovshenin
2e55b3076d
Helper: Yoda condition in _http_request_host_is_external
2017-04-26 18:33:17 +03:00
Cesar Rodas
6eb7dcabf2
Added WC_Meta_Data object
...
It wraps an array, and tells if there were any changes before saving it
2017-04-26 10:18:41 -04:00
Mike Jolley
481a5045aa
Merge pull request #14622 from jaumarar/patch-2
...
Fix: Creating customer triggers password changed
2017-04-26 14:32:28 +01:00
Mike Jolley
ac96fe795a
wc_attribute_taxonomy_id_by_name needs to use lowercase attribute slug
...
Fixes #14720
2017-04-26 14:28:47 +01:00
Konstantin Kovshenin
5e892f9081
Helper: Strict equality check on slugs in `plugin_information` calls
2017-04-26 16:04:46 +03:00
Konstantin Kovshenin
b4ba43f551
Helper: Use `wp_safe_remote_request` for external calls.
...
Also whitelists woocommerce.dev as an external URL if
WP_DEBUG is turned on.
2017-04-26 15:57:56 +03:00
Mike Jolley
801f5e1eb1
Avoid escaped quote chars in strings
...
Closes #14670
2017-04-26 13:51:53 +01:00
Mike Jolley
13a610d1d8
Merge branch 'pr/14612'
2017-04-26 13:26:26 +01:00
Mike Jolley
13bc235020
Bump template version and move to correct function files.
2017-04-26 13:25:14 +01:00
avinapatel
824f13924e
Made the buyer phone number clickable in the in the order backend.
2017-04-26 17:48:56 +05:30
Mike Jolley
1738464012
Correctly migrate legacy shipping taxes data
...
Fixes #14674
2017-04-26 12:17:34 +01:00
Mike Jolley
ef2246a9cd
Don't strtolower address strings
...
Closes #14694
2017-04-26 11:40:59 +01:00
Mike Jolley
63e8221e2c
Add required placeholder for meta fields
...
Closes #14700
2017-04-26 11:35:34 +01:00
Mike Jolley
234bc3c017
Missing arg in data store too
2017-04-26 11:08:47 +01:00
Cesar Rodas
7f357b18ba
Fixed typo
...
This expression had a typo from the refactoring
2017-04-26 03:21:10 -04:00
Gabor Javorszky
6d71eab0cd
Adds missing $this to arguments for woocommerce_payment_complete_order_status filter
...
Fixes #14698
2017-04-26 08:02:46 +01:00
Cesar Rodas
8c64631041
Remove whitespace added by mistake
2017-04-26 02:59:16 -04:00
Cesar Rodas
d3fd16617c
Improved phpdoc
2017-04-26 02:57:00 -04:00
Cesar Rodas
38f379a7d7
Make get_item() consistent (like get_items())
...
Right now get_item() is loading an item from the database directly. It doesn't
take advantage of our cache and it doesn't check if the item is already loaded in memory.
There is also another bug (or feature?) that it will let you load any item, even if the item is not related to the current order. I believe this is a bug, if somebody really wants to load any item regardless of the order they should use `WC_Order_Factory::get_order_item`.
Another bug is that items loaded with get_item() are not related to the order object, therefore any calls to Order::save() won't persist the changes made to the item.
This commits makes sure the item returned by get_item is loaded similarly like get_items() does, taking advantage of the cache and the $items protected property (chances are the item is already in memory, ready to be used).
If a given item is not found false will be returned. If item exists but it is not related to the current object it will return false as well (If this behaviour is wanted, I can easily change it load the item anyways instead of returning false).
2017-04-26 02:54:14 -04:00
Beka Rice
f65b817fcf
Code review tweaks
2017-04-25 21:45:42 -04:00
claudiulodro
efa1dbbda5
Basic working order queries
2017-04-25 14:52:17 -07:00
Beka Rice
c552362b73
Confirm before deleting log files
2017-04-25 17:10:47 -04:00
Claudio Sanches
d14924b1cf
Merge pull request #14681 from woocommerce/fix/14662
...
Fix term exclusion in term count queries
2017-04-25 16:25:16 -03:00
claudiulodro
3d5dabc886
Formatting
2017-04-25 11:24:38 -07:00
Claudio Sanches
3bae94e78d
Merge pull request #14676 from woocommerce/fix/14665
...
Sort grouped products by menu order
2017-04-25 14:37:32 -03:00
Claudio Sanches
c426d46bd1
Merge pull request #14648 from woocommerce/fix/14581
...
Fix missing title for actions column
2017-04-25 14:33:40 -03:00
Claudio Sanches
0c6a61df02
Merge pull request #14682 from woocommerce/fix/14679
...
Legacy customer class missing get_address / get_address_2 functions
2017-04-25 12:45:49 -03:00
Claudio Sanches
10880ab680
Merge pull request #14685 from woocommerce/fix/14592
...
Filter invalid products before returning them for wc_get_products
2017-04-25 12:45:17 -03:00
Claudio Sanches
a177c22e2d
Merge pull request #14687 from woocommerce/fix/14660
...
Prevent orders being their own parent (!)
2017-04-25 12:44:40 -03:00
Claudio Sanches
cdbfce30fa
Merge pull request #14664 from woocommerce/fix/14126
...
Added deprecated notice to WC_Order_Item_Meta
2017-04-25 12:37:44 -03:00
Petar Petrov
fdb28218ea
items_type_key filter and woocommerce_order_line_item_object fix
2017-04-25 18:07:40 +03:00
Mike Jolley
9923612832
Prevent orders being their own parent (!)
...
Closes #14660
2017-04-25 14:18:27 +01:00
Petar Petrov
f71a498892
Allows to insert conditions for our custom "woocommerce_order_line_item" filter.
2017-04-25 16:06:43 +03:00
Mike Jolley
8e624e6230
Filter invalid products before returning them for wc_get_products
...
Closes #14592
2017-04-25 14:03:30 +01:00
Mike Jolley
943e6a4d54
Merge pull request #14684 from woocommerce/pr/14616
...
Fixes for #14616
2017-04-25 13:53:18 +01:00
Mike Jolley
7269fde94f
Moved reg handlers
2017-04-25 13:51:52 +01:00
Mike Jolley
27993c0c50
Legacy customer class missing get_address / get_address_2 functions
...
Fixes #14679
2017-04-25 13:18:58 +01:00
Mike Jolley
48c9a49e2d
table name
2017-04-25 13:06:32 +01:00
Mike Jolley
a8baaf6715
Fix term exclusion in term count queries
...
Closes #14662
2017-04-25 13:05:21 +01:00
Petar Petrov
b551468072
Merge branch 'master' of github.com:pnpetroff/woocommerce
2017-04-25 14:41:57 +03:00
Petar Petrov
2b3ec357ad
fix-14302
2017-04-25 14:12:36 +03:00
Mike Jolley
b073454bfc
Join needs to append
2017-04-25 12:11:28 +01:00
Mike Jolley
763c8e8018
Sort grouped products by menu order
...
Fixes #14665
2017-04-25 12:08:17 +01:00
Claudio Sanches
2d9e876e6d
Removed deprecated WC_Order_Item_Meta from REST API v1
2017-04-24 20:55:09 -03:00
claudiulodro
553a12203b
WC_Order_Query
2017-04-24 16:28:13 -07:00
Claudio Sanches
4ded36c66d
Allow get all formatted meta data values
2017-04-24 20:27:17 -03:00
Claudio Sanches
6f3b6a2b74
Include deprecated notice in WC_Order_Item_Meta constructor
2017-04-24 20:26:43 -03:00
claudiulodro
29fa59a0b7
WC_Object_Query
2017-04-24 11:33:17 -07:00
Mike Jolley
7dc1300811
change price queries
2017-04-24 18:11:16 +01:00
Claudio Sanches
89dc3b40e2
Merge pull request #14651 from woocommerce/fix/14646
...
Allow forward slash in tel
2017-04-24 13:56:16 -03:00
Mike Jolley
04e07795fc
Allow forward slash in tel
...
Closes #14646
2017-04-24 15:24:37 +01:00
Mike Jolley
69838b2f4b
Fix missing title for actions column
...
Closes #14581
2017-04-24 15:20:20 +01:00
Diego Zanella
19aa807da6
Restored filter `woocommerce_checkout_customer_id` during checkout validation
2017-04-24 14:41:23 +01:00
Anton Timmermans
82c2a2dd86
Change build_payload from private to public
2017-04-24 13:22:47 +02:00
Jaume
5e53ed70d8
Fix: Creating customer triggers password changed
...
Sending POST /wc/v1/customers or POST /wc/v2/customers with the required args triggers the 'Notice of Password Changed' after creating the customer due to update() calls when the password still has a value.
2017-04-22 20:06:56 +02:00
mdrahul
521ad697b0
fix Invalid argument supplied error, ref #14615
2017-04-22 17:24:30 +05:30
mdrahul
c6bc8f7836
Fix Cart Empty message, ref #14519
2017-04-22 11:09:17 +05:30
cristiangrama
216375f6ea
Allow passing a `customer=0` for fetching all guest orders
2017-04-21 10:43:09 -05:00
Jeff Stieler
142bb9b24a
Add “free shipping” method to the automatically created zone (via setup wizard).
2017-04-21 08:46:03 -06:00
Konstantin Kovshenin
9fe91c7a2e
Helper: Fix some phpcs issues
2017-04-21 15:35:27 +03:00
Konstantin Kovshenin
e8b9bc8f98
Helper: First pass at merging the Helper plugin into WooCommerce
...
* Connect a site to a WooCommerce.com account
* List available product subscriptions
* Activate/deactivate subscriptions and extensions
* Serve updates for active subscriptions
2017-04-21 15:05:44 +03:00
Jeff Stieler
d844709db5
Only create a shipping zone from the wizard on the first run.
2017-04-20 23:26:37 -06:00
Jeff Stieler
f2f803d007
Create a shipping zone containing the store’s country when enabling shipping calculation from the setup wizard.
2017-04-20 23:02:59 -06:00
Claudio Sanches
e96a1eb744
Merge pull request #14577 from woocommerce/fix/14575
...
wc_get_orders support for guest orders and unit tests
2017-04-20 14:31:59 -03:00
Mike Jolley
a325d03deb
wc_get_orders support for guest orders and unit tests
...
Fixes #14575
2017-04-20 18:05:58 +01:00
Claudio Sanches
836b3a3162
Merge pull request #14553 from woocommerce/fix/14544
...
Check if is a resource before try set log rotate
2017-04-20 13:47:56 -03:00
Claudio Sanches
1142ca20f0
Properly open log files
2017-04-20 13:37:18 -03:00
Frédéric Demarle
928d157ba7
Add custom message for custom system status tools
2017-04-20 18:25:19 +02:00
Claudio Sanches
46b17d7eb3
Merge pull request #14574 from woocommerce/fix/breadcrumb-check
...
Abort generate_breadcrumblist_data is there are no crumbs
2017-04-20 13:06:50 -03:00
Mike Jolley
d5205b97f8
Abort generate_breadcrumblist_data is there are no crumbs
2017-04-20 17:04:48 +01:00
Claudio Sanches
dfcbeaf044
Fixed logic in `is_open()`
2017-04-20 12:57:33 -03:00
Claudio Sanches
7f6b0c6d0f
Moved resource check for `is_open()` method
2017-04-20 12:53:44 -03:00
Claudio Sanches
ab3a8c4a79
Merge pull request #14573 from woocommerce/fix/14543
...
define get_user_id/get_user methods for bw compat
2017-04-20 12:28:10 -03:00
Mike Jolley
4a6c87d1cc
docblock
2017-04-20 16:03:40 +01:00
Mike Jolley
8e28af8b87
define get_user_id/get_user methods for bw compat
...
Closes #14543
2017-04-20 16:02:10 +01:00
Claudio Sanches
8cb1fa2aff
Merge pull request #14570 from woocommerce/fix/14546
...
Decrease paypal request timeout so failed requests to not take too long
2017-04-20 11:51:21 -03:00
Mike Jolley
f8781b9552
Decrease paypal request timeout so failed requests to not take too long
...
Closes #14546
2017-04-20 15:45:52 +01:00
Mike Jolley
8bc715ca59
Merge pull request #14556 from woocommerce/SiR-DanieL-patch-1
...
Add filter wc_is_attribute_in_product_name
2017-04-20 15:07:42 +01:00
Mike Jolley
1924291f37
woocommerce_is_attribute_in_product_name
2017-04-20 15:07:06 +01:00
Mike Jolley
bb4507bcae
Better email handling when invalid
2017-04-20 14:45:04 +01:00
Govind Kumar
2adadd5737
Fixed issue
2017-04-20 17:41:20 +05:30
Mike Jolley
7715990fb1
Merge pull request #14552 from woocommerce/fix/14518
...
[REST API] Fixed v1 order shipping taxes
2017-04-20 11:48:52 +01:00
Nicola Mustone
7f6909040d
add filter wc_is_attribute_in_product_name
...
The filter `wc_is_attribute_in_product_name` will allow customizations to show the variations in the cart like in WC 2.6.
2017-04-20 09:53:49 +03:00
Claudio Sanches
3b7a41ea53
Improved logic of WC_Order::get_shipping_address_map_url()
...
See comments in #14436
2017-04-20 02:12:18 -03:00
Claudio Sanches
aa21db2e64
Check if is a resource before try set log rotate
...
Fixes #14544
2017-04-20 00:54:31 -03:00
Claudio Sanches
0b60af0774
Merge pull request #14415 from woocommerce/fix/save-post-infinite-loops
...
Prevent infinite loops during save_post
2017-04-20 00:44:57 -03:00
Claudio Sanches
accf956632
Merge pull request #14500 from woocommerce/fix/14494
...
Removed the non-functional order total input and combine the recalculation buttons into one working button.
2017-04-20 00:43:22 -03:00
Claudio Sanches
60b3e3c123
[REST API] Fixed v1 order shipping taxes
...
Fixes #14518
2017-04-20 00:37:27 -03:00
hussong
3ca4c733c7
Change field label and placeholder to minimize user error, add translators notice
...
Status Quo:
Working with several high-volume WooCommerce shops (in the range of several thousand orders per day combined), we've seen that the current placeholder text (and its translations in particular) lead to quite a few users filling in their address data incorrectly. You'd be surprised by the number of people who fail to properly write down their own address (house number missing, house number in wrong place).
Problem:
This leads to incomplete shipping labels, unsuccessful deliveries, and costly returns (especially for international shipping: 10-40 Euros lost per parcel).
Solution:
While some of these may stem from misdirected or incomplete browser auto-fills, we've seen (by customizing the language files for German, French, Spanish and Italian) that a more descriptive placeholder text helps reduce user errors on address entry. The goal is basically to make this as fool-proof as possible.
Why this matters:
At 1000 orders shipped per day, getting the error rate from 5% down to 4% means 10 less parcels coming back every day, which can save hundreds of Euros per day.
Choice of wording:
- "Address" is not just one field, but rather the sum of all address fields that will end up on a shipping label.
- "Street Address" is what the user needs to input here, hence the new label for the two address fields
- "House number and street name" is the most descriptive placeholder text I can come up with for this field (assuming the U.S. as default), hence the new placeholder text.
- Translator notice added since many countries will have the house number after the street name.
References:
- https://en.wikipedia.org/wiki/Address_(geography)
2017-04-20 11:46:14 +10:00
Ninos Ego
f940961c6f
Remove thousand seperator if dot
2017-04-20 00:55:07 +02:00
claudiulodro
01a6b3bae0
Get updated product before doing low stock actions
2017-04-19 15:32:51 -07:00
Claudio Sanches
c90e71e890
Merge pull request #14509 from woocommerce/fix/14480
...
Only return product by SKU if published
2017-04-19 14:38:14 -03:00
Claudio Sanches
0d46a89f83
Check only if is not in trash
2017-04-19 14:27:19 -03:00
Claudiu Lodromanean
3768730641
Merge pull request #14520 from franticpsyx/fix-order-item-offset-get
...
[3.0.3] Fix Undefined property notice in `WC_Order_Item::offsetGet`
2017-04-19 10:16:42 -07:00
Claudiu Lodromanean
3152b35406
Merge pull request #14521 from woocommerce/fix/14507
...
wc_update_300_grouped_products update routine needs to unset the post_parent on grouped products
2017-04-19 10:16:12 -07:00
Claudiu Lodromanean
b13380d120
Merge pull request #14523 from franticpsyx/fix-wc-get-weight-notice-warning
...
[3.0.3] Fix PHP 7.1 `wc_get_weight` warning
2017-04-19 10:15:53 -07:00
Claudiu Lodromanean
fe0ff8d795
Merge pull request #14526 from woocommerce/fix/14517
...
wp_die when WC_REST_System_Status_Controller is. not available on status report.
2017-04-19 10:14:58 -07:00
Claudiu Lodromanean
28ec6b4d6f
Merge pull request #14527 from franticpsyx/fix-typo-in-wc-ajax-class
...
[3.0] Fix typo in json_search_downloadable_products_and_variations
2017-04-19 10:14:42 -07:00
Claudiu Lodromanean
cd9ea0daf2
Merge pull request #14528 from woocommerce/fix/14525
...
is_existing_sku should check all post statuses except for trash
2017-04-19 10:13:56 -07:00
Claudiu Lodromanean
b479224656
Merge pull request #14531 from mihaigrigori/master
...
Wrong variable name in \wc_add_order_item
2017-04-19 10:13:37 -07:00
Claudiu Lodromanean
894d77d4db
Merge pull request #14534 from woocommerce/fix/14533
...
Address field sorting was not working due to wrong data name
2017-04-19 10:12:56 -07:00
Claudiu Lodromanean
beab1fd0b8
Merge pull request #14535 from woocommerce/fix/item-get_order
...
Ensure order is not cached before download permissions are generated
2017-04-19 10:12:39 -07:00
Claudiu Lodromanean
97958de059
Merge pull request #14536 from woocommerce/fix/14530
...
When on backorder without notifications, hide the text
2017-04-19 10:12:20 -07:00
claudiulodro
c3331ff416
Remove unused variable
2017-04-19 10:00:00 -07:00
Mike Jolley
69a8b6c9b5
When on backorder without notifications, hide the text
...
Fixes #14530
2017-04-19 16:57:49 +01:00
Mike Jolley
e1ae5bded2
Ensure order is not cached before download permissions are generated
2017-04-19 16:53:31 +01:00
Mike Jolley
3b6e7d9d14
Address field sorting was not working due to wrong data name
...
Fixes #14533
2017-04-19 16:33:32 +01:00
Mike Jolley
be96e8c8a1
Merge pull request #14506 from woocommerce/fix/14496
...
Prevent nonce check outside admin when calculating for reports
2017-04-19 15:05:31 +01:00
Mike Jolley
84c9ce9ceb
Merge pull request #14505 from woocommerce/fix/14504
...
Fixed legacy WC_Checkout->posted warning.
2017-04-19 15:05:21 +01:00
Mike Jolley
77bbd938c6
Merge pull request #14508 from woocommerce/fix/14359
...
[REST API] Fixed ignored parameters when changing status
2017-04-19 15:05:09 +01:00
Mihai Grigori
170de188a0
Wrong variable name in \wc_add_order_item
2017-04-19 15:55:49 +03:00
Mike Jolley
bdb01c4bea
is_existing_sku should check all post statuses except for trash
...
Fixes #14525
2017-04-19 11:32:49 +01:00
Manos Psychogyiopoulos
1670f9ae60
Fix typo in json_search_downloadable_products_and_variations
2017-04-19 13:20:05 +03:00
Mike Jolley
8ab10ade0e
Missing comma for code standards
...
WC_Admin_Customize is a 3.1 class
Closes #14522
2017-04-19 11:15:10 +01:00
Mike Jolley
335319e6ea
wp_die when WC_REST_System_Status_Controller is. not available on status report.
...
Closes #14517
2017-04-19 11:08:34 +01:00
Manos Psychogyiopoulos
6392582d16
Fix wc_get_weight warning with PHP 7.1
2017-04-19 12:35:40 +03:00
Mike Jolley
5d7aa234b0
wc_update_300_grouped_products update routine needs to unset the post_parent on grouped products
...
Fixes #14507
2017-04-19 10:35:39 +01:00
Manos Psychogyiopoulos
1270c0d313
Fix Undefined property notice in WC_Order_Item::offsetGet
2017-04-19 12:30:38 +03:00
Claudio Sanches
f61646d1a2
Only return product by SKU if published
...
Fixes #14480
2017-04-18 21:32:52 -03:00
Claudio Sanches
f318ce935c
[REST API] Fixed ignored parameters when changing status
...
Prevent override saved data when updating order status.
Fixes #14359
2017-04-18 21:15:24 -03:00
Claudio Sanches
2da71bd7fb
Prevent nonce check outside admin when calculating for reports
...
Fix all REST API reports endpoints.
Fixes #14496
2017-04-18 20:33:25 -03:00
Claudio Sanches
d94f3883da
Merge pull request #14497 from woocommerce/fix/14416
...
Fixed docblocks in REST API v1
2017-04-18 18:43:06 -03:00
Claudio Sanches
58b7b82ee1
Merge pull request #14489 from woocommerce/fix/14469
...
Remove attribute_ prefix from names in wc_get_formatted_variation
2017-04-18 18:39:21 -03:00
Claudio Sanches
d17dd2947b
Merge pull request #14485 from woocommerce/update/js-cookie
...
Update js-cookie to 2.1.4
2017-04-18 18:38:56 -03:00
Claudio Sanches
185ae083a1
Merge pull request #14499 from woocommerce/help-video-updates
...
Updates & fixes some embed problems
2017-04-18 18:32:16 -03:00
Claudio Sanches
e034a69c98
Merge pull request #14486 from woocommerce/fix/14484
...
Fix call to is_compound method
2017-04-18 18:29:57 -03:00
Claudio Sanches
faaac6d67b
Merge pull request #14483 from woocommerce/fix/14476
...
Adds a fallback to queue_transactional_email if background sending is disabled.
2017-04-18 18:29:33 -03:00
Claudio Sanches
086b60a871
Fixed legacy WC_Checkout->posted warning.
...
WC_Checkout->get_posted_data() is a protected method and third party
integrations should use $_POST.
2017-04-18 18:15:25 -03:00
Claudio Sanches
372898d12f
Merge pull request #14502 from woocommerce/fix/refund-plotting
...
Add refund_lines to report
2017-04-18 18:11:31 -03:00
Mike Jolley
add7170f34
Fixes legacy_posted_data access and adds notices if accessed.
2017-04-18 21:55:31 +01:00
Mike Jolley
cd7d6cf73d
Add refund_lines
2017-04-18 20:29:10 +01:00
Mike Jolley
2a4103d776
Removed the non-functional order total input and combine the recalculation buttons into one working button.
...
Fixes #14494
2017-04-18 19:44:42 +01:00
Ryan Ray
40da9faa1a
Updates & fixes some embed problems
...
Added a new combined Creating Products video.
Fixes other time stamp embeds that weren’t really working.
2017-04-18 13:18:00 -04:00
Claudio Sanches
81dcd6e79e
Fixed docblocks in REST API v1 for #14416
2017-04-18 13:40:10 -03:00
Mike Jolley
c454abc787
Remove attribute_ prefix from names in wc_get_formatted_variation
...
Fixes #14469
2017-04-18 13:08:39 +01:00
Mike Jolley
de016c6615
Fix call to is_compound method
...
Fixes #14484
2017-04-18 12:00:21 +01:00
Mike Jolley
b8aade8523
Update js-cookie to 2.1.4
2017-04-18 11:44:51 +01:00
Mike Jolley
6259ee69e9
Adds a fallback to queue_transactional_email if background sending is disabled.
...
Fixes #14476
After turning off deferred emails by default it seems Subscriptions was
using the ‘default’ value in a filter to check if deferred emails were
enabled or not to hook in these methods.
https://github.com/woocommerce/woocommerce-subscriptions/blob/f87a11cdf0
9bb59aa66f4e86d37592f74193937f/includes/class-wc-subscriptions-email.php
#L339
@thenbrent
This code change adds a fallback so if this method was hooked in
anywhere, and the background emailer was not init or disabled, it will
fallback to regular send-now.
2017-04-18 11:35:37 +01:00
Mike Jolley
16345137e2
Merge pull request #14479 from emgk/fixed-14474
...
Fixed: get_term() returns objects not array.
2017-04-18 10:36:55 +01:00
Govind Kumar
200cd2de63
Fixed: get_term() returns objects not array.
2017-04-18 13:00:04 +05:30
claudiulodro
f21e47f7d0
Update save logic to allow filtering
2017-04-17 14:45:53 -07:00
Claudio Sanches
510630ea05
Merge pull request #14466 from bhubbard/schemal.org-to-https
...
Updated Schema URLs to use HTTPS
2017-04-17 14:19:34 -03:00
Claudio Sanches
523cd5a0b5
Merge pull request #14443 from woocommerce/fix/14429
...
wp_insert_term can return an error so handle appropriately in class-wc-product-attribute.php
2017-04-17 13:14:11 -03:00
Claudio Sanches
04f61c73dc
Merge pull request #14447 from woocommerce/fix/14362
...
Make wc_add_order_item pass correct values to woocommerce_new_order_item
2017-04-17 12:54:40 -03:00
Claudio Sanches
5fd29ce0f1
Merge pull request #14449 from woocommerce/add/item-meta-filter
...
Add woocommerce_order_item_get_formatted_meta_data filter
2017-04-17 12:53:53 -03:00
Mike Jolley
cffe326e0e
Add variable so shipping calculator is shown on first row
...
Ref: #14461
2017-04-17 16:35:33 +01:00
Brandon Hubbard
fe81c3d74b
Updated Schema URLs to use HTTPS
2017-04-17 12:35:21 -03:00
Mike Jolley
1f66a29457
Use smoothHeight
...
Closes #14448
2017-04-17 16:23:04 +01:00
Mike Jolley
2071e8efee
Added has_shipping_address helper method
...
#14364
2017-04-17 15:15:08 +01:00
Mike Jolley
15fb5fb5ce
Add woocommerce_order_item_get_formatted_meta_data filter
...
2.6 had woocommerce_order_items_meta_display. 3.0 has no filter to
remove meta from display.
Closes #14372
2017-04-17 13:00:05 +01:00
Mike Jolley
887cb8b62c
Make wc_add_order_item pass correct values to woocommerce_new_order_item
...
Fixes #14362
2017-04-17 12:50:27 +01:00
Mike Jolley
4fcada6fe9
wp_insert_term can return an error so handle appropriately in class-wc-product-attribute.php
...
Fixes #14429
2017-04-17 12:05:36 +01:00
Mike Jolley
71929666ac
Merge pull request #14404 from thenbrent/fix_get_meta_returning_deleted_values
...
Don't return deleted meta in get_meta_data()
2017-04-17 11:38:12 +01:00
Mike Jolley
d11337706e
Merge pull request #14401 from woocommerce/fix/14389
...
Use read_downloads in variations
2017-04-17 11:20:14 +01:00
Mike Jolley
9187f3cbb3
Merge pull request #14436 from woocommerce/fix/14398
...
Fixes the shipping address map URL
2017-04-17 11:12:19 +01:00
Matt Cohen
4aba3d16b0
Adjusts the filter to apply after removing the undesired elements, instead of before. #14398
2017-04-17 12:05:29 +02:00
Matt Cohen
dc37646273
Removes the first name, last name, and company from the shipping address map URL. Fixes #14398
2017-04-17 11:15:30 +02:00
rafsuntaskin
6334e95576
UAE state field set to not required, resolves #14409
2017-04-16 14:55:13 +06:00
Mike Jolley
d4a8f3c25b
fix coupon update
2017-04-15 21:48:22 +01:00
Mike Jolley
1f28b9d0b8
Other object types
2017-04-15 21:18:24 +01:00
Mike Jolley
27c9006f77
Product data store loop protection
2017-04-15 21:04:41 +01:00
Akash Soni
e17e7f38bd
Change format of product link class.
...
In this class use capital characters, it's not good formate.
So, I change that and create a new class " woocommerce-loop-product__link ".
The example we use this class for loop product title tag " woocommerce-loop-product__title ".
Thank.
2017-04-16 01:26:38 +05:30
Mike Jolley
5a7dd4938d
Merge pull request #14390 from bekarice/fix-php71-notices
...
Fix PHP 7.1 warnings when manually adding order items
2017-04-15 18:02:03 +01:00
Beka Rice
d35621f166
Cast unmodified tax as float as well
2017-04-15 12:01:37 -04:00
claudiulodro
96ed33f227
Use read_downloads in variations
2017-04-14 14:18:08 -07:00
Brent Shepherd
0e40d2c764
Don't return deleted meta
...
By using $this->get_meta_data() which passed meta through the
WC_Data::filter_null_meta() method, rather than $this->meta_data
which still has null values set.
2017-04-14 13:58:00 -07:00
Claudiu Lodromanean
f7c166ca22
Merge pull request #14368 from mdrahul/Fix-14366
...
Reset ratings count when product is duplicated, ref #14366
2017-04-14 11:40:00 -07:00
AJ Clarke
b8e5fc22a2
Localized Photoswipe script
2017-04-14 09:34:05 -07:00
Beka Rice
9de8589c9c
Fix PHP 7.1 warnings when manually adding order items
2017-04-14 11:12:53 -04:00
Mike Jolley
d695a141ed
Variations were not correctly inheriting the parent image or shipping class id
2017-04-14 13:32:14 +01:00
mdrahul
b4ca263a4f
Reset ratings count when product is duplicated, ref #14366
2017-04-14 11:37:15 +05:30
Claudio Sanches
b5090ad629
Merge pull request #14356 from woocommerce/fix/variation-get_attribute
...
Made the get_attribute method work on variation objects
2017-04-13 13:19:26 -03:00
Mike Jolley
a1390125a0
Made the get_attribute method work on variation objects
...
Fixes #14345
2017-04-13 17:16:46 +01:00
Claudio Sanches
75ecc91d96
Merge pull request #14308 from woocommerce/add/14304
...
Add backtrace to deprecated message
2017-04-13 12:49:01 -03:00
Claudio Sanches
2879b6ec75
Merge pull request #14353 from woocommerce/fix/itemreviewed-data
...
Restores itemReviewed structured data for product reviews
2017-04-13 12:37:47 -03:00
Claudio Sanches
a0822e6d1f
Merge pull request #14352 from woocommerce/fix/grouped-sale-badge
...
Grouped sale badge fix
2017-04-13 12:36:20 -03:00
Mike Jolley
7bdf8302ec
Restores itemReviewed structured data for product reviews
2017-04-13 16:30:06 +01:00
Claudio Sanches
ef8136b135
Merge pull request #14344 from woocommerce/remove/defer-email-default
...
Set default email sending method to not defer
2017-04-13 12:29:34 -03:00
Claudio Sanches
5d5fc57f40
Merge pull request #14342 from woocommerce/fix/14332
...
Use refund date not order date in refund display
2017-04-13 12:25:08 -03:00
Claudio Sanches
f33127b239
Merge pull request #14341 from woocommerce/fix/14333
...
When checking if the update notice should be shown, compare minor version, not the patch version
2017-04-13 12:24:14 -03:00
Mike Jolley
0e67202ab1
Grouped sale badge fix
...
Closes #14348
2017-04-13 16:13:48 +01:00
Mike Jolley
77d93a70e0
Set woocommerce_defer_transactional_emails to false by default
2017-04-13 14:22:33 +01:00
Mike Jolley
180f5cd40b
send_transactional_email try catch block
2017-04-13 14:22:07 +01:00
Mike Jolley
34227d826f
Add backtrace to wc_doing_it_wrong
2017-04-13 14:01:58 +01:00
Mike Jolley
4870506a65
Revert "Add backtrace to deprecated message"
...
This reverts commit 3e9f74d038
.
2017-04-13 13:34:19 +01:00
Mike Jolley
41f7a637cd
Use refund date not order date in refund display
...
Fixes #14332
2017-04-13 13:24:48 +01:00
Mike Jolley
412ddeacda
When checking if the update notice should be shown, compare minor version, not the patch version
...
Fixes #14333
2017-04-13 13:15:49 +01:00
Mike Jolley
8268fc01ad
Make sure filters apply on parent_data
...
Closes #14321
2017-04-13 12:48:21 +01:00
Mike Jolley
01a4f9432f
get_tax_class should handle both parent data and unfiltered context to get the tax class before plugin modification.
2017-04-13 12:39:19 +01:00
Mike Jolley
f9dd3310b2
Unfiltered context rather than true
2017-04-13 12:38:54 +01:00
Tim Elsass
02de1cc60b
Fixing grammar error in msg fixes #14319
2017-04-12 17:03:39 -04:00
Claudio Sanches
078b23a3c2
Revert "Apply distinct to term id only"
2017-04-12 15:54:48 -03:00
Claudio Sanches
ad5dad52a2
Merge pull request #14309 from woocommerce/fix/stock-notification-settings
...
woocommerce_notify_low_stock and woocommerce_notify_no_stock were not hooked up
2017-04-12 14:46:33 -03:00
Mike Jolley
85a67151ff
woocommerce_notify_low_stock and woocommerce_notify_no_stock were not hooked up
2017-04-12 18:01:59 +01:00
Mike Jolley
3e9f74d038
Add backtrace to deprecated message
2017-04-12 17:37:59 +01:00
Claudio Sanches
c0619f99cd
Merge pull request #14306 from woocommerce/fix/file-validation
...
Only validate file type on relative paths
2017-04-12 12:51:48 -03:00
Mike Jolley
de7d8681d2
Only validate file type on relative paths
2017-04-12 16:49:43 +01:00
Claudio Sanches
8151eb1320
Merge pull request #14291 from woocommerce/fix/dupe-cats
...
Apply distinct to term id only
2017-04-12 12:18:34 -03:00
Claudio Sanches
582999c6c5
Merge pull request #14297 from woocommerce/fix/wc_customer_has_capability
...
Add $order checks to ensure object is set
2017-04-12 12:09:44 -03:00
Claudio Sanches
c5ee1aa00e
Merge pull request #14298 from woocommerce/fix/read_downloads
...
Ensure name and file is set
2017-04-12 12:09:05 -03:00
Mike Jolley
21da0cf71f
Ensure name and file is set
2017-04-12 14:11:04 +01:00
Mike Jolley
b258e64902
Add $order checks to ensure object is set
2017-04-12 13:46:14 +01:00
Mike Jolley
3fe7df6515
When searching, disable WC sort order
...
Closes #14292
2017-04-12 12:42:55 +01:00
Mike Jolley
fa4049188c
Set and restore wp_query so product page functions think it's a real product page
...
Fixes #14162
2017-04-12 12:33:24 +01:00
Mike Jolley
0628a91cfc
Apply distinct to term id only
2017-04-12 11:38:59 +01:00
Claudio Sanches
307a42b37e
Merge pull request #14279 from woocommerce/fix/14276
...
Fix shipping item name update
2017-04-11 18:36:15 -03:00
Mike Jolley
692eceb4cd
Fix shipping item name update
...
Fixes #14276
2017-04-11 21:38:50 +01:00
Claudio Sanches
e7acb2918c
Merge pull request #14250 from woocommerce/fix/14231
...
Update notice wording links and styling
2017-04-11 17:34:15 -03:00
Claudio Sanches
b122681700
Merge pull request #14268 from woocommerce/fix/background-mails
...
Works around some cookie hosting issues, and updates the queue more frequently in case of error during email send.
2017-04-11 17:31:49 -03:00
Claudio Sanches
4133f77a31
Merge pull request #14242 from dixitadusara/issue-14227
...
Incorrect sale dates set when bulk editing variations ref #14227
2017-04-11 17:26:58 -03:00
Claudio Sanches
627d7a8790
Merge pull request #14278 from woocommerce/fix/14209-alt
...
Variation Attribute Name Fixes (simplified)
2017-04-11 17:25:28 -03:00
Claudio Sanches
a1478442d8
Merge pull request #14274 from woocommerce/fix/14239
...
Ensure object exists
2017-04-11 17:13:55 -03:00
Mike Jolley
5cfed7569c
Simplify wc_is_attribute_in_product_name and change separator
2017-04-11 21:12:30 +01:00
Claudio Sanches
610bd3c4db
Merge pull request #14272 from woocommerce/fix/14266
...
GP, GF, KW, LB, MQ, RE and YT does not have states
2017-04-11 17:05:13 -03:00
Claudio Sanches
0df920ebde
Merge pull request #14273 from woocommerce/fix/14162
...
Return if there is no product in woocommerce_upsell_display
2017-04-11 17:03:46 -03:00
Claudio Sanches
3278d9e5d7
Merge pull request #14255 from woocommerce/fix/14163
...
Download permissions; Convert dates to timestamp on read so UTC is preserved.
2017-04-11 16:51:20 -03:00
Claudio Sanches
e027e5b0a1
Merge pull request #14228 from woocommerce/fix/14135
...
Fix shortcodes formatted with <p> and improved wc_format_content()
2017-04-11 16:14:18 -03:00
Mike Jolley
f0f1efcffd
Ensure object exists
...
fixes #14239
2017-04-11 19:29:20 +01:00
Mike Jolley
a7e22e3749
Return if there is no product in woocommerce_upsell_display
...
Fixes #14162
2017-04-11 19:21:13 +01:00
Mike Jolley
f5fdd59209
More states
...
Fixes #14270
2017-04-11 19:10:01 +01:00
Mike Jolley
6ad0f1755d
KW does not have states
...
Fixes #14266
2017-04-11 19:02:23 +01:00
Mike Jolley
7f820c2526
Break if batch is empty
...
Fixes #14261
2017-04-11 18:59:58 +01:00
Claudio Sanches
6ccdacb0fd
Merge pull request #14271 from woocommerce/fix/14259
...
Apply query_arg filter before generating transient name in product_loop
2017-04-11 14:52:26 -03:00
Claudio Sanches
765179b4da
Merge pull request #14253 from woocommerce/add/date-format-filter
...
woocommerce_admin_order_date_format filter to replace old post_date_column_time
2017-04-11 14:48:35 -03:00
Mike Jolley
cb668d42e0
Apply query_arg filter before generating transient name in product_loop
...
Fixes #14259
2017-04-11 18:47:05 +01:00
Claudio Sanches
4e9febc829
Merge pull request #14269 from woocommerce/fix/14263
...
Correct variable name
2017-04-11 14:45:25 -03:00
Mike Jolley
9757d2a0ce
Correct variable name
...
Fixes #14263
2017-04-11 18:29:55 +01:00
Mike Jolley
63cd7c25d0
Works around some cookie hosting issues, and updates the queue more frequently in case of error during email send.
2017-04-11 18:23:45 +01:00
Mike Jolley
510adc652c
Download permissions; Convert dates to timestamp on read so UTC is preserved.
...
Fixes #14163
2017-04-11 13:13:03 +01:00
Mike Jolley
899176bee7
woocommerce_update_customer_args filter
2017-04-11 12:47:53 +01:00
Mike Jolley
2f9a9589df
woocommerce_admin_order_date_format filter to replace old post_date_column_time
2017-04-11 12:41:30 +01:00
Mike Jolley
2eb9405caa
Fix notice styling
2017-04-11 11:40:42 +01:00
Mike Jolley
d81493cc52
Merge pull request #14229 from woocommerce/fix/14184
...
[REST API] Fixed line_items meta type to array on legacy REST API
2017-04-11 10:32:17 +01:00
dixitadusara
1bf13e2b8b
Incorrect sale dates set when bulk editing variations ref #14227
2017-04-11 13:04:39 +05:30
Claudio Sanches
6b12559b76
Merge pull request #14164 from RamyTalal/patch-1
...
Fix notice errors on PHP 7.1
2017-04-11 02:20:27 -03:00
Ramy Talal
36de5db080
Coding standards
2017-04-11 07:19:24 +02:00
Claudio Sanches
4a5a93f629
Merge pull request #14107 from woocommerce/fix/rest-api-legacy-v3-variations
...
[REST API] Fixed missing $variations variable in legacy v3
2017-04-10 20:19:43 -03:00
Claudio Sanches
5c92f9141b
[REST API] Fixed line_items meta type to array on legacy REST API
...
Closes #14184
2017-04-10 19:57:35 -03:00
Claudio Sanches
5eab267ec1
Fixed shortcodes formatted with <p> and improved wc_format_content()
...
This fix the shortcode issue, stop extra sanitization and allow use
smilies, attachments, embeds and Jetpack markdown.
Closes #14135
2017-04-10 19:21:22 -03:00
Claudio Sanches
702d72f173
Merge pull request #14225 from woocommerce/fix/14213
...
Use correct thumbnail for variation images in gallery
2017-04-10 19:13:09 -03:00
Mike Jolley
7274c14591
Use correct thumbnail for variation images in gallery
...
Fixes #14213
2017-04-10 23:02:53 +01:00
Claudio Sanches
394532c9ab
Merge pull request #14199 from woocommerce/add/visibility-terms-debug-14147
...
Add product visibility terms to system status report to help debug
2017-04-10 18:52:10 -03:00
Claudio Sanches
8bd7e2de4a
Merge pull request #14188 from woocommerce/fix/14186
...
Correct calls to wc_reduce_stock_levels in PayPal and Simplify gateways
2017-04-10 18:50:51 -03:00
Claudio Sanches
2acc956254
Merge pull request #14206 from woocommerce/fix/14118
...
__clone meta correctly on object clone
2017-04-10 18:49:49 -03:00
Claudio Sanches
47a6741707
Merge pull request #14221 from woocommerce/fix/14216
...
Do not duplicate grouped products, only variations
2017-04-10 18:49:28 -03:00
Claudio Sanches
0b7f990dae
Merge pull request #14219 from woocommerce/fix/14211
...
Fix backwards compat logic in enable_guest_checkout
2017-04-10 18:48:16 -03:00
Claudiu Lodromanean
715656921d
wc_is_attribute_in_product_name
2017-04-10 14:35:16 -07:00
Claudio Sanches
b79711b54c
Merge pull request #14141 from rellect/copy_suffix
...
Add back the (Copy) suffix for duplicated products
2017-04-10 18:16:09 -03:00
Mike Jolley
bcd39e9a79
Pass id not object to wc_reduce_stock_levels
2017-04-10 21:55:17 +01:00
Mike Jolley
76d962b606
since
2017-04-10 21:52:06 +01:00
Mike Jolley
ade147ccc2
Do not duplicate grouped products, only variations
...
Fixes #14216
2017-04-10 21:45:57 +01:00
Mike Jolley
3cf50c60f6
Fix backwards compat logic in enable_guest_checkout
...
Fixes #14211
2017-04-10 21:18:49 +01:00
Claudiu Lodromanean
903b176b99
Attribute title tweaks
2017-04-10 13:16:58 -07:00
Claudio Sanches
043265101f
Merge pull request #14142 from rellect/unset_set_on_duplicating
...
Reset slug when duplicating product - fix #14128
2017-04-10 16:28:50 -03:00
Mike Jolley
12dbc059c3
Update add_to_cart_text for external products to include default
...
Fixes #14181
2017-04-10 17:54:39 +01:00
Mike Jolley
e14d85d0a3
__clone meta correctly on object clone
...
Fixes #14118
2017-04-10 17:12:17 +01:00
Claudio Sanches
e6d68c7897
Merge pull request #14198 from woocommerce/fix/14158
...
Make get_cross_sells unique.
2017-04-10 12:55:25 -03:00
Mike Jolley
7d5efe4b78
Add product visibility terms to system status report to help debug
...
Closes #14147
2017-04-10 15:51:14 +01:00
Mike Jolley
95397188d5
Make get_cross_sells unique.
...
Fixes #14158
2017-04-10 15:20:41 +01:00
Mike Jolley
243b7a0d3f
Exclude location meta from setters
2017-04-10 12:16:25 +01:00
Mike Jolley
8fa73602eb
Correct calls to wc_reduce_stock_levels in PayPal and Simplify gateways
...
Fixes #14186
2017-04-10 11:56:52 +01:00
Ramy Talal
6b29066d3e
Fix notice errors on PHP 7.1
2017-04-09 13:45:46 +02:00
refael iliaguyev
6ee1fb0a62
set empty string as slug
2017-04-08 18:14:34 +03:00
refael iliaguyev
5add77c201
add 'woocommerce' text domain
2017-04-08 15:59:01 +03:00
refael iliaguyev
3be5f80ee7
unset slug - fix #14128
2017-04-08 13:39:06 +03:00
refael iliaguyev
3af7452370
Add back the (Copy) suffix for duplicated products
2017-04-08 13:16:42 +03:00
Govind Kumar
2ea79cc5ed
Fixed issue #14124
2017-04-07 19:14:10 +05:30
Claudio Sanches
708df27719
Merge pull request #14117 from woocommerce/fix/14108
...
If variation tax class meta is not set, it should be 'parent' to support 2.6 data
2017-04-07 13:29:40 -03:00
Mike Jolley
7418b9f8b8
If variation tax class meta is not set, it should be 'parent' to support 2.6 data
...
Fixes #14108
2017-04-07 17:13:59 +01:00
Claudio Sanches
51c00cce09
Merge pull request #14099 from dixitadusara/issue-14089B
...
Modified suggestion of Invalid argument supplied for foreach ref #14089
2017-04-07 12:33:01 -03:00
Claudio Sanches
ef6895fd56
Merge pull request #14113 from woocommerce/fix/product-object-checks
...
Fix/product object checks
2017-04-07 12:31:28 -03:00
Mike Jolley
e14eb70814
Skip reports if no product is found
2017-04-07 16:08:06 +01:00
Mike Jolley
84c96046f0
Check objects are not false/null
2017-04-07 16:01:51 +01:00
Claudio Sanches
8de0bb0a46
[REST API] Fixed missing $variations variable in legacy v3
2017-04-07 10:31:28 -03:00
Claudio Sanches
731c9cfdd9
Merge pull request #14097 from woocommerce/fix/14085
...
Ensure meta_value has valid keys in read_attributes
2017-04-07 09:19:25 -03:00
Claudio Sanches
c42505f7e5
Merge pull request #14096 from woocommerce/fix/14087
...
Add missing woocommerce_cross_sells_columns filter.
2017-04-07 09:18:54 -03:00
Mike Jolley
4f412678bd
Ensure meta_value has valid keys in read_attributes
...
Fixes #14085
2017-04-07 10:59:59 +01:00
dixitadusara
e527b6608c
modified suggestion of Invalid argument supplied for foreach ref #14089
2017-04-07 15:27:52 +05:30
Mike Jolley
078dfb4ffa
Add missing woocommerce_cross_sells_columns filter.
...
Closes #14087
2017-04-07 10:35:42 +01:00
Gareth
425752d8ff
Updates product title in product loop commenting
...
Commenting indicated the product title in the product loop was enclosed in an `<h3>`, when the code was actually printing an `<h2>`.
2017-04-07 09:55:48 +02:00
dixitadusara
3ba9063d3d
Invalid argument supplied for foreach - class-wc-product-data-store-cpt.php ref #14089
2017-04-07 13:24:34 +05:30
Claudio Sanches
464ea7f01d
Fixed ccoding standards
2017-04-06 19:46:06 -03:00
Claudio Sanches
c4adec3e1a
Removed translatable function used for variables
2017-04-06 19:45:59 -03:00
Claudiu Lodromanean
19361127a9
Array filter before saving
2017-04-06 14:47:22 -07:00
Claudio Sanches
7f18e9ef83
Merge pull request #14076 from woocommerce/fix/remove-empty-items
...
filter items which are false
2017-04-06 18:21:14 -03:00
Claudio Sanches
c2830af5e1
Merge pull request #14071 from woocommerce/fix/14068
...
Fix variation category restriction and limit to x uses
2017-04-06 18:15:45 -03:00
Mike Jolley
fbcb46b273
filter items which are false
...
https://wordpress.org/support/topic/call-to-a-member-function-is_type-cl
ass-wc-order-php-on-line-1305/
2017-04-06 22:15:42 +01:00
Claudio Sanches
56b8a4661a
Merge pull request #14074 from woocommerce/fix/14067
...
Fixed sanitization of order items meta data
2017-04-06 18:14:34 -03:00
Claudio Sanches
ee76842edb
Merge pull request #14075 from woocommerce/fix/14072
...
Remove date on dupe
2017-04-06 18:13:26 -03:00
Mike Jolley
c1b670eaa6
Remove date on dupe
2017-04-06 22:11:00 +01:00
Claudio Sanches
af7f271de1
Fixed sanitization of order items meta data
...
Closes #14067
2017-04-06 17:58:24 -03:00
Mike Jolley
1b5cad3d78
Fix variation category restriction and limit to x uses
...
Fixes #14068
2017-04-06 21:51:11 +01:00
Claudiu Lodromanean
94814a0b03
Dont throw exceptions when reading
2017-04-06 13:39:36 -07:00
rafsuntaskin
ac5de585e5
added bulk variation update for stock status, resolves #14046
2017-04-07 02:11:04 +06:00
Mike Jolley
d8bc209cab
read_product_data does not exist
2017-04-06 20:55:51 +01:00
Claudio Sanches
14572c8d80
Merge pull request #13991 from woocommerce/fix/13928
...
When setting props, exclude deprecated ones
2017-04-06 16:20:34 -03:00
Mike Jolley
2877752e1f
array_flip
2017-04-06 20:18:14 +01:00
Claudio Sanches
0529e4efab
Merge pull request #14026 from woocommerce/fix/13978
...
Fix variable stock syncing
2017-04-06 16:06:26 -03:00
Mike Jolley
8f2287be12
Use get_children for comparison
2017-04-06 19:47:22 +01:00
Mike Jolley
5701b1f7e2
Get cross sells from parent
...
fixes #14054
2017-04-06 19:01:57 +01:00
Claudio Sanches
abc48f1601
Correct class version and author
2017-04-06 14:47:56 -03:00
Claudio Sanches
fa40e7b205
Merge pull request #14035 from woocommerce/fix/13963
...
Background Emailer instead of just CRON
2017-04-06 14:47:15 -03:00
Claudio Sanches
2ff763a976
Merge pull request #14042 from franticpsyx/order-again-meta-std-class-props
...
[3.0] Fix non-existing stdClass props in WC_Form_Handler::order_again
2017-04-06 14:42:14 -03:00
Claudio Sanches
5ca593f782
Merge pull request #14048 from woocommerce/fix/13949
...
Fix variation description formatting in frontend and REST API v2
2017-04-06 14:42:01 -03:00
Claudio Sanches
b16d3a091c
Merge pull request #14049 from woocommerce/fix/variation-description-sanitization
...
Removed extra variation description extra sanitization
2017-04-06 14:41:41 -03:00
Claudio Sanches
42ca7bda3d
Merge pull request #13989 from woocommerce/fix/product-meta-save_post
...
Fix saving meta when using `save_post`.
2017-04-06 14:38:16 -03:00
Claudio Sanches
cdab73af3c
Merge pull request #14051 from woocommerce/fix/no-base-permalinks
...
Make sure there is a name, otherwise the taxonomy + base will conflict with other post types if empty
2017-04-06 14:29:45 -03:00
Claudio Sanches
5f9a215318
Merge pull request #14052 from woocommerce/fix/variation-tax-status
...
Pull tax status from parent since there is no UI to set at variation level
2017-04-06 14:29:28 -03:00
Mike Jolley
0348a4751e
Use placeholder value from backend if not set
2017-04-06 18:19:07 +01:00
Mike Jolley
fd3e656912
Pull tax status from parent since there is no UI to set at variation level
2017-04-06 17:54:34 +01:00
Mike Jolley
56eb3c4da3
Make sure there is a name, otherwise the taxonomy + base will conflict with other post types if empty
2017-04-06 17:50:04 +01:00
Claudio Sanches
4032167f6c
Removed extra variation description extra sanitization
2017-04-06 13:21:34 -03:00
Claudio Sanches
fc9ba64e50
Properly format variation description in REST API v2
2017-04-06 13:02:51 -03:00
Claudio Sanches
f3c2e6c5f6
Improved wc_format_content() formatting and added sanitization
2017-04-06 13:01:35 -03:00
Claudio Sanches
567a551d83
Fixed shortcode render for variations and backwards compatibility
...
Fixes #13949
2017-04-06 13:00:02 -03:00
Claudio Sanches
b059851882
Merge pull request #14001 from woocommerce/fix/13980
...
Allow search customers by ID in admin customer ajax search
2017-04-06 12:01:39 -03:00
Claudio Sanches
3fff61ea4e
Merge pull request #14043 from woocommerce/fix/missing-product-type-field
...
if product type field is not posted, we should maintain existing type, not change to simple
2017-04-06 11:58:55 -03:00
Mike Jolley
82cdf65c04
if product type field is not posted, we should maintain existing type, not change to simple
2017-04-06 15:56:55 +01:00
Manos Psychogyiopoulos
e18d9741a4
Fix non-existing stdClass props
2017-04-06 17:42:51 +03:00
Claudio Sanches
f3156fb5f4
Merge pull request #13981 from woocommerce/fix/13936
...
[REST API] Fixed attributes while trying to save variations
2017-04-06 11:38:23 -03:00
Claudio Sanches
83135c24c1
Merge pull request #13971 from woocommerce/fix/13966
...
Ensure gateways are loaded in emails
2017-04-06 11:38:09 -03:00
Claudio Sanches
966fd0e411
Merge pull request #14037 from woocommerce/fix/legacy-sync
...
Only call sync if callable
2017-04-06 10:54:58 -03:00
Claudio Sanches
6c1a38d637
Merge pull request #13975 from woocommerce/fix/13943
...
Compare to the order item title instead of variation title
2017-04-06 10:36:36 -03:00
Claudio Sanches
550f7b4028
Merge pull request #13986 from woocommerce/fix/13954
...
Fixed "singular" and "plural" parameters of WP_List_Table instances
2017-04-06 10:33:43 -03:00
Claudio Sanches
9a219b71da
Merge pull request #14036 from woocommerce/fix/14032
...
Make sure we have a prefix for strstr
2017-04-06 10:25:46 -03:00
Mike Jolley
261ae0ebda
Only call sync if callable
2017-04-06 14:18:17 +01:00
Claudio Sanches
03004bdd49
Merge pull request #14009 from woocommerce/fix/14006
...
When forcing shipping to billing, set the shipping fields in the order itself
2017-04-06 10:17:54 -03:00
Claudio Sanches
01c425398c
Merge pull request #14012 from woocommerce/fix/13930-alt
...
Hide structured data in hidden element
2017-04-06 10:14:30 -03:00
Claudio Sanches
f2b90d6163
Merge pull request #14014 from woocommerce/fix/13906
...
Set session data only if the value is empty in customer object. Prevents session data overwriting customer data on login.
2017-04-06 10:12:54 -03:00
Claudio Sanches
03e05cab1c
Merge pull request #14017 from woocommerce/fix/14008
...
Allow variation image to be unset
2017-04-06 10:12:12 -03:00
Mike Jolley
822412d03c
Make sure we have a prefix for strstr
...
Closes #14032
2017-04-06 14:11:00 +01:00
Claudio Sanches
ddf188a61e
Merge pull request #14018 from woocommerce/fix/13968
...
Show a sale price on variable products if on sale and all prices are the same
2017-04-06 10:10:49 -03:00
Mike Jolley
288026ca9f
Background Emailer instead of just CRON
2017-04-06 13:46:07 +01:00
Mike Jolley
bf09c7df82
Ensure reg prices are the same
2017-04-06 13:08:18 +01:00
Mike Jolley
36e9b73ef3
Make sure we have a product before generating JSON
2017-04-06 12:40:53 +01:00
Mike Jolley
a7a896008c
Fix up the child_is_in_stock function
2017-04-06 12:26:19 +01:00
Mike Jolley
7e90a318cd
On variable save, sync with children and avoid transient cache
2017-04-06 12:26:10 +01:00
Mike Jolley
47411f7397
wc_deferred_product_sync queue function
2017-04-06 12:25:54 +01:00
Mike Jolley
fe42b2565c
Defer variation parent sync to shutdown rather than cron
2017-04-06 12:25:34 +01:00
Mike Jolley
93689a8107
Show a sale price on variable products if on sale and all prices are the same
...
Fixes #13968
2017-04-06 11:01:20 +01:00
Mike Jolley
eea6867ac9
Allow variation image to be unset
...
@claudiosanches is this correct way?
Fixes #14008
2017-04-06 10:41:09 +01:00
Mike Jolley
d570a81241
Set session data only if the value is empty in customer object. Prevents session data overwriting customer data on login.
...
Fixes #13906
2017-04-06 10:28:32 +01:00
Mike Jolley
52939e800c
Hide structured data in hidden element
2017-04-06 10:06:21 +01:00
Mike Jolley
8614a7922d
When forcing shipping to billing, set the shipping fields in the order itself
...
Fixes #14006
2017-04-06 09:50:34 +01:00
Claudio Sanches
2ffb2e8853
Allow search customers by ID in admin customer ajax search
...
Closes #13980
2017-04-06 02:19:12 -03:00
Gregory Karpinsky
37c7e2a615
Docblock fix
...
`get_availability` returns array of strings
2017-04-06 00:32:36 -04:00
Claudio Sanches
168a4a3096
Merge pull request #13909 from woocommerce/fix/prevent-only-color-picker-to-flip
...
Prevent RTL flip only color picker inputs
2017-04-05 21:21:38 -03:00
Claudio Sanches
4bb2c070ae
Merge pull request #13900 from woocommerce/fix/rest-api-remove-extra-taxes-params
...
[REST API] Removed extra taxes params.
2017-04-05 21:18:09 -03:00
Claudio Sanches
4b2481f9f2
Merge pull request #13994 from woocommerce/fix/cross-sell-columns
...
Cross sells were not showing first last classes since columns (2) was not being set
2017-04-05 20:33:31 -03:00
Claudio Sanches
b3937bcc4d
Merge pull request #13995 from woocommerce/fix/13902
...
Hash querystring is v not version. Stops infinite loop.
2017-04-05 20:33:00 -03:00
Mike Jolley
8333d75703
Hash querystring is v not version. Stops infinite loop.
...
Fixes #13902
2017-04-05 23:42:33 +01:00
Mike Jolley
e16119f687
Cross sells were not showing first last classes since columns (2) was not being set
2017-04-05 23:28:13 +01:00
Mike Jolley
70778abade
When setting props, exclude deprecated ones
...
Fixes #13928
2017-04-05 23:16:45 +01:00
Justin Shreve
15bf1da7d5
Call save_meta_data before wp_update_post for data stores that use it, and refresh meta cache after.
2017-04-05 14:39:41 -07:00
Claudio Sanches
5bcace31fc
Fixed "singular" and "plural" parameters of WP_List_Table instances
...
Both should be slugs and not translatable.
Fixes #13954
2017-04-05 18:15:40 -03:00
Claudiu Lodromanean
c02cee595e
Add missing download_id param
2017-04-05 13:37:42 -07:00
Claudio Sanches
87199d0627
[REST API] Fixed attributes while trying to save variations
...
Closes #13936
2017-04-05 17:03:05 -03:00
Mike Jolley
359213d720
Fix direction
2017-04-05 20:25:21 +01:00
Mike Jolley
0035afc5a0
Make sure we have number > 0 so all variations are not deleted
2017-04-05 20:22:05 +01:00
Mike Jolley
a6080aa4a9
Pass ID, not the product object
2017-04-05 20:21:33 +01:00
Claudiu Lodromanean
523d39578a
Compare to the order item title instead of variation title
2017-04-05 12:03:18 -07:00
Claudio Sanches
e2881d5af1
Ensure gateways are loaded in emails
...
Fix missing bank details in emails
closes #13966
2017-04-05 15:50:40 -03:00
Claudio Sanches
f250cac8d1
Merge pull request #13967 from woocommerce/fix/13933
...
Use parent settings for determining if variations are sold individually.
2017-04-05 15:33:17 -03:00
Claudiu Lodromanean
5389844a1b
Use parent data for sold_individually
2017-04-05 11:02:26 -07:00
Mike Jolley
27b35c0515
Using WPDB is quicker than wp_update_post
2017-04-05 18:40:59 +01:00
Claudio Sanches
6135aa8175
Merge pull request #13927 from woocommerce/fix/13921
...
Fallback to home URL if no shop page is set for system status security check.
2017-04-05 14:29:16 -03:00
Claudio Sanches
67274e8c2c
Make sure that ID exists
2017-04-05 14:23:50 -03:00
Claudio Sanches
7a34e4a176
Merge pull request #13959 from woocommerce/fix/customer-set-defaults
...
Wrap in try catch so WC_Data_Exceptions are caught on bad email.
2017-04-05 14:20:56 -03:00
Claudio Sanches
1590ba135b
Merge pull request #13961 from woocommerce/fix/system-status-hook
...
Add back removed filter for system status rows.
2017-04-05 14:11:40 -03:00
Claudiu Lodromanean
f4a04c088b
Merge pull request #13958 from woocommerce/fix/remove-legacy-clear
...
Removed extra clear parameter from addresses
2017-04-05 09:41:08 -07:00
Claudiu Lodromanean
87b71b0653
Merge pull request #13941 from woocommerce/fix/hook-deprecated-function-calls
...
Use wc_deprecated_function so notices are not triggered on ajax requests
2017-04-05 09:36:01 -07:00
Claudiu Lodromanean
691441f87f
Merge pull request #13935 from woocommerce/fix/13920
...
wc_get_object_terms should check it's not an error object
2017-04-05 09:30:02 -07:00
Claudiu Lodromanean
e1b9165439
Merge pull request #13931 from woocommerce/fix/register-admin-settings
...
If The $object is not really an object, don't continue. It's invalid.
2017-04-05 09:24:37 -07:00
Justin Shreve
6b6f48e7dc
Prior to 3.0 there was a woocommerce_debug_posting filter that could be used to add rows to the environment section of the system status page. It was removed. This PR adds it back as woocommerce_system_status_environment_rows and aliases/deprecates the old one.
2017-04-05 09:13:20 -07:00
Mike Jolley
ab4c921bd1
Wrap in try catch so WC_Data_Exceptions are caught on bad email.
2017-04-05 16:36:28 +01:00
Claudio Sanches
5a7af35d46
Removed extra clear parameter from addresses
2017-04-05 11:57:39 -03:00
Claudio Sanches
f1df9e8dd9
Merge pull request #13955 from psiico/patch-1
...
Update class-wc-coupon.php
2017-04-05 11:52:23 -03:00
Claudio Sanches
2e7393d156
Merge pull request #13899 from woocommerce/fix/missing-array-declaration
...
Fixed missing array declaration
2017-04-05 11:49:10 -03:00
Ivo Santos
b7dfc10dee
Update class-wc-coupon.php
...
Updated get_amount() method description.
2017-04-05 16:32:02 +02:00
Mike Jolley
e66efc1dcc
Use wc_deprecated_function so notices are not triggered on ajax requests
2017-04-05 13:06:43 +01:00
Mike Jolley
4ad05dfa83
wc_get_object_terms should check it's not an error object
...
Fixes #13920
2017-04-05 12:06:37 +01:00
Mike Jolley
5770fb132e
If The $object is not really an object, don't continue. It's invalid.
2017-04-05 11:10:27 +01:00
Mike Jolley
811d59feec
Fallback to home URL if no shop page is set for system status security check.
...
Fixes #13921
2017-04-05 10:03:41 +01:00
Claudio Sanches
3920a12d71
Prevent RTL flip only color picker inputs
...
Fixes #13723
2017-04-04 17:27:11 -03:00
Mike Jolley
b251973a66
Don't filter hidden grouped products
...
Fixes #13903
2017-04-04 20:33:36 +01:00
Claudio Sanches
c88941a424
Removed extra taxes params.
...
Search, include and exclude are not handled by the REST API.
2017-04-04 14:54:01 -03:00
Claudio Sanches
cf954fac1e
Fixed missing array declaration
2017-04-04 14:53:05 -03:00
Claudio Sanches
d881bf0500
Coding standards and changelog for #13867
2017-04-04 11:40:02 -03:00
Claudio Sanches
faf0104b49
Merge pull request #13260 from JeroenSormani/product-data-tab-priority
...
Add 'priority' support to product data tabs
2017-04-04 11:33:48 -03:00
Claudio Sanches
620a92d6fd
Merge pull request #13867 from woocommerce/fix/13788
...
Updated Emogrifier to 1.2.0
2017-04-04 11:30:47 -03:00
Claudio Sanches
ca23ea9ef2
Merge pull request #13815 from woocommerce/fix-13813-1
...
Include WooCommerce endpoints to customize nav menu setting
2017-04-04 11:03:26 -03:00
Mike Jolley
b2e4052e3b
Stock qty should be wrapped in wc_stock_amount
2017-04-04 13:35:31 +01:00
Mike Jolley
d917856378
Validate status if object_read
...
#13891
2017-04-04 12:39:35 +01:00
Mike Jolley
505813403e
@used-by WC_Order::set_status comment
...
#13891
2017-04-04 11:52:54 +01:00
Claudio Sanches
c89cb04194
Fixed api version compare for #13872
2017-04-03 21:41:00 -03:00
Mike Jolley
c844ec6487
Merge pull request #13817 from woocommerce/improvement-13716
...
Allow setup wizard filtering
2017-04-03 19:26:39 +01:00
Claudiu Lodromanean
ef7dbc75a1
bump down version number
2017-04-03 11:24:01 -07:00
Claudio Sanches
88445f4dd4
Merge pull request #13888 from woocommerce/fix-13887
...
Timezone can be + 30 mins
2017-04-03 15:22:05 -03:00
Mike Jolley
71ce5b85bc
Merge pull request #13884 from woocommerce/fix-13875-13877
...
Private and variable product fixes
2017-04-03 19:16:35 +01:00
Mike Jolley
bf601e7b23
docblock
2017-04-03 19:14:55 +01:00
Claudiu Lodromanean
82c3f93340
Change to single quotes
2017-04-03 09:54:24 -07:00
Mike Jolley
6b11bfbff0
Timezone can be + 30 mins
...
Fixes #13887
2017-04-03 16:01:18 +01:00
Mike Jolley
0a96f17747
Flip orderby
2017-04-03 12:12:13 +01:00
Mike Jolley
c06fdc2e2e
If product has_options, don't show qty in grouped product add to cart form
...
Fixes #13875
2017-04-03 12:05:28 +01:00
Mike Jolley
8598f82c8a
If user can edit private products, search them
...
Fixes #13877
2017-04-03 12:04:59 +01:00
Mike Jolley
31cd2dcb90
Merge pull request #13853 from woocommerce/crud-security-hardening
...
CRUD security/hardening
2017-04-03 11:09:38 +01:00
Mike Jolley
75f79b3279
Se 20y limit on datepicker too
2017-04-03 10:46:37 +01:00
Mike Jolley
da86e02331
Merge pull request #13872 from woocommerce/fix/missing-rest-api-v2-webhooks-settings
...
Include missing REST API v2 from webhooks options.
2017-04-03 09:51:31 +01:00
Claudio Sanches
014262c0cc
Fixed returned data from WC_AJAX::get_customer_details()
2017-04-03 03:00:07 -03:00
Claudio Sanches
1fe791d7d8
Fixed WC_AJAX::get_customer_details() filter deprecated message
2017-04-03 02:59:07 -03:00
Claudio Sanches
984edf07d2
Missing period
2017-04-02 03:27:58 -03:00
Claudio Sanches
5b51b915f6
Fixed a typo
2017-04-02 03:24:52 -03:00
Claudio Sanches
4922e17876
Include missing REST API v2 from webhooks options.
2017-04-02 03:07:09 -03:00
Claudio Sanches
f7db744a90
Updated Emogrifier to 1.2.0
...
Code changed to support PHP 5.2.
Used PHPCompatibility tool to help fix backwards compatibility.
Closes #13788
2017-03-31 17:19:35 -03:00
Claudiu Lodromanean
955f20be80
Do custom buttons before Cancel and Save buttons
2017-03-31 11:28:00 -07:00
Claudiu Lodromanean
0d84865b0f
Pass wizard around
2017-03-31 10:32:19 -07:00
Mike Jolley
999a597055
Escaping in search orders
2017-03-31 17:14:08 +01:00
Claudio Sanches
5aaf23f8a5
Merge pull request #13845 from woocommerce/fix-13842
...
Dont redirect lost password on multisite global pages
2017-03-31 13:05:43 -03:00
Claudio Sanches
cbca4dd5db
Merge pull request #13856 from woocommerce/fix-13849
...
use term_taxonomy_id in upgrade routine
2017-03-31 12:17:54 -03:00
Mike Jolley
0c6c67ba6a
Merge pull request #13855 from woocommerce/fix-13848
...
Only set dates if set/not null
2017-03-31 15:51:33 +01:00
Mike Jolley
a2e60c51e3
use term_taxonomy_id in upgrade routine
...
Fixes #13849
2017-03-31 12:42:07 +01:00
Mike Jolley
8a201b64c5
Only set dates if set/not null
...
Fixes #13848
2017-03-31 12:38:18 +01:00
Mike Jolley
58040c94ae
Increase order key length to 22 to support 2.6
...
Fixes #13850
2017-03-31 12:29:19 +01:00
Mike Jolley
14802a0307
Remove double unserialization
2017-03-31 12:10:20 +01:00
Mike Jolley
b50312a1d8
Prevent bad timestamps being used for dates in reports and add nonce field
2017-03-31 11:50:11 +01:00
Mike Jolley
12e28a83f3
WC_Product_Variable_Data_Store_CPT::read_variation_attributes() cast to int
2017-03-31 11:37:12 +01:00
Mike Jolley
0d1cfe6fd2
Use prepare on `type` in payment token data store
2017-03-31 11:22:47 +01:00
Mike Jolley
f1a699c259
Cleanup
2017-03-31 11:18:22 +01:00
Mike Jolley
a443419006
remove extract and sanitize orderby against whitelist
2017-03-31 11:15:55 +01:00
Claudiu Lodromanean
4bae06b198
Dont redirect lost password on multisite global pages
2017-03-30 10:53:03 -07:00
Mike Jolley
5d62d3c844
Merge pull request #13844 from woocommerce/fix-13839
...
[REST API] Ignore 0 category while querying products
2017-03-30 18:06:04 +01:00
Claudio Sanches
be8036869e
[REST API] Ignore 0 category while querying products
2017-03-30 13:43:59 -03:00
Mike Jolley
c83e725f99
Merge pull request #13835 from woocommerce/fix-13829
...
Update product rating counts after adding a rating
2017-03-30 11:16:40 +01:00
Claudiu Lodromanean
38cd9b4df7
Update product rating counts after adding a rating
2017-03-29 14:51:33 -07:00
Claudio Sanches
61ec9b3e51
Updated version to 3.1.0
2017-03-29 17:56:03 -03:00
Claudio Sanches
84e428abd3
Use correct attribute type label in attributes admin screen
...
This allow use a translatable label for attribute type instead of
forcing English for everybody.
2017-03-29 17:50:09 -03:00
Claudiu Lodromanean
27e1cffa30
Better way of passing on the next stepg
2017-03-29 11:22:55 -07:00
Claudio Sanches
bbd54cc15f
Merge pull request #13816 from woocommerce/fix-13813-2
...
Fixed titles and items from WC_Admin_Menus::nav_menu_links()
2017-03-29 14:27:38 -03:00
Mike Jolley
4e58d40404
Merge pull request #13814 from woocommerce/fix-13813
...
Load custom "WooCommerce endpoint" metabox only in Appearance > Menus.
2017-03-29 18:20:52 +01:00
Claudio Sanches
e4a6882eaf
Merge pull request #13825 from woocommerce/fix-13822
...
Filter empty tax values
2017-03-29 13:40:56 -03:00
Mike Jolley
399c141377
Fix slug updating in CRUD
...
Fixes #13824
2017-03-29 13:41:23 +01:00
Mike Jolley
82ffd9894f
Filter empty tax values
...
Fixes #13822
2017-03-29 13:13:00 +01:00
Mike Jolley
df13658dab
docblock correction
...
Closes #13818
2017-03-29 11:47:37 +01:00
corsonr
0608eaf11a
Fix 13820
...
Add the “description” class to `.cancel_sale_schedule` so that the
“cancel” link gets aligned properly with a margin left of 7 pixels.
2017-03-29 10:01:45 +02:00
Claudiu Lodromanean
da0b048788
Allow setup wizard filtering
2017-03-28 14:45:12 -07:00
Claudio Sanches
ffc3f0f0fd
Merge pull request #13804 from woocommerce/fix-13790
...
[REST API] Fixed all products v1 query parameters.
2017-03-28 18:37:23 -03:00
Claudio Sanches
987fff3775
Fixed titles and items from WC_Admin_Menus::nav_menu_links()
2017-03-28 18:33:06 -03:00
Claudio Sanches
989d60a60a
Include WooCommerce endpoints to customize nav menu setting
2017-03-28 18:07:00 -03:00
Claudio Sanches
6d38a74283
Merge pull request #13811 from woocommerce/fix-13807
...
Define default $discount_amount_html in wc_cart_totals_coupon_html()
2017-03-28 17:06:37 -03:00
Claudio Sanches
0964847e28
Load custom "WooCommerce endpoint" metabox only in Appearance > Menus.
...
Closes #13813
2017-03-28 16:06:26 -03:00
Claudio Sanches
1c369e41e0
Merge pull request #13810 from woocommerce/fix-typo
...
Fix typo
2017-03-28 15:22:45 -03:00
Claudio Sanches
29d86dfea6
Merge pull request #13812 from woocommerce/fix-13803
...
Use new_* hooks instead of created_*
2017-03-28 15:19:41 -03:00
Claudio Sanches
fdbd442e05
Define default $discount_amount_html in wc_cart_totals_coupon_html()
...
Closes #13807
2017-03-28 15:10:05 -03:00
Claudiu Lodromanean
28726570bf
Use new_* hooks instead of created_*
2017-03-28 11:05:45 -07:00
Akeda Bagus
0b416439c8
Fixed all typos of all files in includes/ directory.
...
Scanning and fixing were done automatically by codespell,
https://github.com/lucasdemarchi/codespell .
2017-03-29 00:58:51 +07:00
Michael Pretty
6660379f19
Cleanup of PHPDoc for interfaces, fixes #13808
2017-03-28 13:52:32 -04:00
Claudio Sanches
afccb22f58
[REST API] Fixed all products v1 query parameters
2017-03-28 14:44:11 -03:00
Claudio Sanches
54c353d67f
[REST API] Fixed taxonomies query arguments.
...
Fixed the follow error:
PHP Warning: explode() expects parameter 2 to be string, array given in
includes/api/v1/class-wc-rest-products-controller.php on line 156
Error caused since terms are sanitized by wp_parse_id_list() that
already creates an array.
Closes #13790
2017-03-28 14:34:41 -03:00
Mike Jolley
3c008b8a56
Check for null
2017-03-28 17:26:58 +01:00
Mike Jolley
ae7c4e713b
Merge pull request #13793 from woocommerce/fix-13785
...
Load values only when not-empty/set
2017-03-28 17:00:32 +01:00
Mike Jolley
9d9c9cdc9e
Merge pull request #13772 from crodas/order_item_should_check_if_there_is_any_change
...
Do not update order items every time if nothing changed
2017-03-28 15:28:40 +01:00
Mike Jolley
29d6f69a87
Revert "Clear parent transients on variation save"
...
This reverts commit 0694312cc9
.
2017-03-28 14:32:52 +01:00
Mike Jolley
e575904fbf
Revert "Clear parent transient on variation creation"
...
This reverts commit 5f573b8777
.
2017-03-28 14:32:46 +01:00
Mike Jolley
5f573b8777
Clear parent transient on variation creation
2017-03-28 14:01:02 +01:00
Mike Jolley
0694312cc9
Clear parent transients on variation save
2017-03-28 13:51:22 +01:00
Cesar Rodas
55ba115ac5
Make sure the changes includes either $name or $order_id
2017-03-28 08:47:01 -04:00
Mike Jolley
b3198d2546
woocommerce_after_register_post_type action
2017-03-28 12:37:17 +01:00
Mike Jolley
b35e4c0cf9
Load values only when not-empty/set
...
Closes #13785
2017-03-28 12:30:04 +01:00
Mike Jolley
f50254be28
Update notice to protect against calls before post type registration
...
Closes #13763
2017-03-28 12:03:09 +01:00
Mike Jolley
129293ab6f
Remove array filter
...
No args should be null/not set since all args defined by WC have values.
Closes #13786
2017-03-28 11:49:27 +01:00
Claudiu Lodromanean
89128da8ba
Fix child_has_dimensions
2017-03-27 11:52:03 -07:00
Mike Jolley
13903220f7
Merge pull request #13779 from woocommerce/fix-13777
...
Net sales fix
2017-03-27 18:19:45 +01:00
Mike Jolley
57f733388c
Unused variable
2017-03-27 17:32:00 +01:00
Mike Jolley
be45bffd45
ignore duplicates
2017-03-27 17:27:42 +01:00
Mike Jolley
7202ebdb4a
Remove shipping from net sales
...
Fixes #13777
2017-03-27 12:18:09 +01:00
Mike Jolley
9260babfba
Fix end date when no date is set
2017-03-27 12:11:08 +01:00
Mike Jolley
6f3d0c1c11
Install terms prior to update
...
Closes #13770
2017-03-27 11:55:36 +01:00
Cesar Rodas
f2f6d76f6d
Do not update woocommerce_order_items if nothing changed
...
Do not update the item (`woocommerce_order_items`) unless something changed.
2017-03-25 00:30:12 -03:00
Mike Jolley
5ceef2cdd5
Check we have a product object.
2017-03-24 15:02:51 +00:00
Claudio Sanches
9983b005a6
Merge pull request #13766 from woocommerce/fix-13722
...
Settings API fixes
2017-03-24 11:24:28 -03:00
Claudio Sanches
eb0f9656c2
Merge pull request #13765 from woocommerce/fix-13752
...
Cast values to float
2017-03-24 11:18:03 -03:00
Claudio Sanches
1147c4f5b3
Merge pull request #13764 from woocommerce/fix-13750
...
Support (not really) relative paths
2017-03-24 11:16:48 -03:00
Mike Jolley
ca8fafdd36
Hide enabled/description
2017-03-24 13:27:47 +00:00
Mike Jolley
53a7d54253
Update settings once
2017-03-24 13:22:09 +00:00
pierrebuet
32f8142c91
Fixes #13748
2017-03-24 12:13:00 +00:00
Mike Jolley
7857fbe41f
Cast values to float
...
Fixes #13752
2017-03-24 12:05:28 +00:00
Mike Jolley
7fd2f4f554
Support (not really) relative paths
...
Fixes #13750
2017-03-24 11:48:32 +00:00
Mike Jolley
8b4ce8460a
Merge pull request #13757 from woocommerce/fix/rest-api/shipping-zones-methods-schema
...
[REST API] Properly handle required items of shipping zone methods
2017-03-24 10:39:23 +00:00
Mike Jolley
9af295d618
Merge pull request #13753 from woocommerce/fix/rest-api-shipping-zones-schema
...
[REST API] Fixed shipping zones schema
2017-03-24 10:38:51 +00:00
Mike Jolley
a9f3f9b82c
Merge pull request #13758 from woocommerce/fix/rest-api-system-status-schema
...
[REST API] System status schema fixes
2017-03-24 10:34:11 +00:00
Mike Jolley
af8e892f97
Merge pull request #13759 from woocommerce/fix/rest-api-settings-links
...
[REST API] Fixed links of settings endpoint
2017-03-24 10:33:16 +00:00
Mike Jolley
803786ceeb
Merge pull request #13755 from woocommerce/fix/shipping-zone-locations-schema
...
[REST API] Fixed shipping zone locations schema
2017-03-24 10:27:52 +00:00
Mike Jolley
285a49b7e0
Merge pull request #13747 from woocommerce/fix/rest-api-settings-schema
...
[REST API] Fixed settings schema.
2017-03-24 10:26:59 +00:00
Mike Jolley
5cb3b9e0ea
Merge pull request #13751 from woocommerce/fix/rest-api-setting-options-rest-base
...
[REST API] Fix setting options rest base
2017-03-24 10:26:22 +00:00
Mike Jolley
0ad1f6a63f
Merge pull request #13709 from woocommerce/fix-13708
...
Timezone/DST fixes
2017-03-24 10:25:08 +00:00
Manos Psychogyiopoulos
24a2ff1960
Add woocommerce_add_to_cart_sold_individually_found_in_cart hook
...
Makes it easy for 3p code to change the condition that identifies whether a "sold individually" product is in the cart. For example, 3p code may use this hook to identify whether a product with the same ID already exists in the cart (instead of relying on finding the same hash/key).
2017-03-24 10:41:27 +02:00
Claudio Sanches
7381b008e0
[REST API] Fixed links for settings endpoint
...
Do not allow embed and updated the key to reflect the items from the endpoint response
2017-03-24 01:56:50 -03:00
Claudio Sanches
00b9f636a8
Fixed description of items in system status schema
2017-03-24 00:48:41 -03:00
Claudio Sanches
bfbd45cf85
[REST API] System status schema items are all view context only
2017-03-24 00:43:46 -03:00
Claudio Sanches
5cc246b5cb
[REST API] All items from system status endpoint should be readonly
2017-03-24 00:41:39 -03:00
Claudio Sanches
3ca1d946d9
[REST API] Properly handle required items of shipping zone methods
2017-03-23 22:19:16 -03:00
Claudio Sanches
7a671ab8a5
[REST API] Fixed shipping zone locations schema
...
This also fix improper sanitization and validation of the items.
2017-03-23 21:44:46 -03:00
Claudio Sanches
8f3f313eff
Fixed coding standards
2017-03-23 20:56:02 -03:00
Claudio Sanches
85494e5d86
[REST API] Fixed shipping zones schema
...
"name" is only required while creating a new zone.
"order" do request to define "required" and is already sanitized by
"integer" type.
2017-03-23 20:51:21 -03:00
Claudio Sanches
b1023c23c6
Fixed setting options endpoint tests
2017-03-23 20:45:22 -03:00
Claudio Sanches
ffe1deba51
Disable setting options endpoint in CLI
2017-03-23 20:37:42 -03:00
Claudio Sanches
c24882f5d2
Apply change on rest_base to WC_REST_Setting_Options_Controller methods
2017-03-23 20:05:19 -03:00
Claudio Sanches
fb80482d73
Fixed rest_base
2017-03-23 19:56:56 -03:00
Claudio Sanches
0a7076744e
[REST API] Fixed settings/options rest_base
2017-03-23 19:52:35 -03:00
Claudio Sanches
39e1fd9fc3
Merge pull request #13745 from woocommerce/fix/rest-api-name-convention
...
[REST API] Fixed file name convention
2017-03-23 19:50:51 -03:00
Claudio Sanches
94cb95c000
Merge pull request #13746 from woocommerce/fix/rest-api-shipping-methods-schema
...
[REST API] All items in shipping_methods endpoint are readonly
2017-03-23 19:50:39 -03:00
Claudio Sanches
e33235ebf3
[REST API] Fixed settings schema.
...
Included context and readonly for all items.
And removed sanitize_callback used only in write context
2017-03-23 18:15:30 -03:00
Claudio Sanches
f65cbdbfa4
[REST API] All items in shipping_methods endpoint are readonly
2017-03-23 17:59:50 -03:00
Claudio Sanches
44319e20f7
[REST API] Fixed file name convention
2017-03-23 17:48:37 -03:00
Claudio Sanches
b8faa2197c
[REST API] Fixed default_attributes in legacy REST API
2017-03-23 17:23:12 -03:00
Claudio Sanches
8371882002
[REST API] Fixed a minor bug that prevents saving default_attributes
2017-03-23 17:19:07 -03:00
Mike Jolley
1876c83409
Merge pull request #13743 from rodrigoprimo/deprecated-messages
...
Add the class name to deprecated messages wherever appropriate
2017-03-23 16:37:46 +00:00
Mike Jolley
91aa8a1b09
Merge pull request #13742 from woocommerce/fix-13734
...
Show variation prices if the sale prices do not all match
2017-03-23 16:37:04 +00:00
Rodrigo Primo
28c8ae8f95
Add the class name to deprecated messages wherever appropriate
...
Doing this change to make it easier to locate the deprecated method and its replacement and also to be consistent with the other deprecated messages.
2017-03-23 12:32:02 -03:00
Mike Jolley
9ea23023c5
Merge pull request #13737 from woocommerce/fix-13728
...
Use floats for qty
2017-03-23 15:14:28 +00:00
Mike Jolley
73dd37fbd7
Show variation prices if the sale prices do not all match
...
fixes #13734
2017-03-23 14:21:16 +00:00
terenceneedssurgery
a86d4f62f3
Checkout: Order Pay to Template
2017-03-23 11:25:08 +00:00
Mike Jolley
a0949747fa
Hide refund email from resend option
...
Closes #13713
See https://github.com/woocommerce/woocommerce/issues/13738
2017-03-23 11:25:03 +00:00
Mike Jolley
489ebedfcd
Use floats for qty
...
Fixes #13728
2017-03-23 11:18:41 +00:00
Mike Jolley
8a9e55ed33
Merge pull request #13730 from woocommerce/rest-api-fix-variations-image-object
...
[REST API] Handle variation image as object and not array
2017-03-23 11:05:17 +00:00
Mike Jolley
b334af4544
Merge pull request #13732 from woocommerce/rest-api-fix-context
...
[REST API] Fixed context from items in schema
2017-03-23 11:04:50 +00:00
Mike Jolley
f15d4c11a2
Merge pull request #13733 from woocommerce/rest-api-remove-product-download-type
...
[REST API] Removed deprecated download_type from products v2
2017-03-23 11:04:36 +00:00
Mike Jolley
d9d62fac15
Merge pull request #13723 from rellect/colorpicker-rtl
...
RTL - prevent flipping of color input
2017-03-23 11:02:55 +00:00
Claudio Sanches
6bc29aa77f
[REST API] Removed deprecated download_type from products v2
2017-03-23 02:32:47 -03:00
Claudio Sanches
1072bea460
[REST API] Fixed variations context for products v2
2017-03-23 02:29:06 -03:00
Claudio Sanches
7dfd62ecfc
[REST API] Fixed download_type context for products v1
2017-03-23 02:28:21 -03:00
Claudio Sanches
39ed5c00cf
[REST API] Fixed refunded_by context in order refunds
2017-03-23 02:27:32 -03:00
Claudio Sanches
5a85e6a6f8
[REST API] Handle variation image as object and not array
2017-03-23 00:38:52 -03:00
Mike Jolley
ba07d53768
Remove guesswork from timezone handling so offsets work correctly regardless of DST
2017-03-23 00:11:15 +00:00
Mike Jolley
7e462b9cca
Data store date handling
2017-03-23 00:10:29 +00:00
Mike Jolley
8efb45312d
Merge pull request #13726 from woocommerce/rest-api-product-review-gmt
...
[REST API] Fixed timezone date and included GMT date to product reviews
2017-03-22 21:51:34 +00:00
Mike Jolley
7afb1bb427
Merge pull request #13727 from woocommerce/rest-api-webhooks-gmt
...
[REST API] Fixed dates and included GMT dates in webhook endpoints for v2
2017-03-22 21:50:56 +00:00
Mike Jolley
21b1a83624
Merge pull request #13725 from woocommerce/rest-api-product-images-dates
...
[REST API] Include GMT dates for images in schema
2017-03-22 21:44:32 +00:00
Mike Jolley
9673b592f3
Merge pull request #13724 from woocommerce/dates-categories-images
...
[REST API] Added timezone and GMT dates in category image
2017-03-22 21:44:09 +00:00
Claudio Sanches
c074c9d57b
[REST API] Fixed date and included GMT dates to webhooks
2017-03-22 18:36:15 -03:00
Claudio Sanches
7f8c4b18e1
[REST API] Fixed date and included GMT date for webhook deliveries
2017-03-22 18:34:10 -03:00
Claudio Sanches
73f7a39d09
[REST API] Fixed timezone date and included GMT date to product reviews
2017-03-22 18:28:57 -03:00
Claudio Sanches
0f5e6373e4
[REST API] Include GMT dates for images in schema
2017-03-22 18:23:41 -03:00
Claudio Sanches
dbd2409e03
[REST API] Added timezone and GMT dates in category image
2017-03-22 18:17:53 -03:00
refael iliaguyev
d8cd0a7550
prevent flipping of color input in rtl
2017-03-22 22:12:07 +02:00
Mike Jolley
72be782e2a
Merge pull request #13719 from rodrigoprimo/remove-unused-phpdoc
...
Remove phpdoc for non-existing argument on WC_Order_Item_Product::get_product()
2017-03-22 19:16:39 +00:00
Mike Jolley
31784f23e3
Merge pull request #13720 from rodrigoprimo/remove-unused-variable
...
Remove unused global variable from WC_Order_Item_Product::get_item_downloads()
2017-03-22 19:16:25 +00:00
Rodrigo Primo
b47a7b52df
Remove phpdoc for non-existing argument on WC_Order_Item_Product::get_product()
2017-03-22 16:04:49 -03:00
Mike Jolley
56d55517cc
Merge pull request #13698 from woocommerce/remove-factory-cache
...
Remove factory cache
2017-03-22 19:02:53 +00:00
Mike Jolley
b1e76fa68e
Merge pull request #13718 from rellect/correct-hours-minutes-rtl
...
RTL - Correct hour:minute input alignment in order details
2017-03-22 19:02:29 +00:00
Rodrigo Primo
ce9ecefa98
Remove unused global variable from WC_Order_Item_Product::get_item_downloads()
2017-03-22 16:00:11 -03:00
refael iliaguyev
baef6f3907
correct hours:minutes inputs in rtl
2017-03-22 20:17:35 +02:00
Brent Shepherd
16cc914714
Restore prior order item length
...
To maintain backward compatibility with custom order item types,
like 'order_item_pending_switch' used by Subscriptions.
2017-03-22 10:11:46 -07:00
Mike Jolley
a876862bfb
Merge pull request #13693 from woocommerce/orders-refunds-fix-schema
...
Include missing api_refund item to order refunds schema
2017-03-22 15:21:37 +00:00
Mike Jolley
b55f59e975
Merge pull request #13694 from woocommerce/fix-missing-settings-schema
...
Include missing payment gateways and shippingmethods settings schema
2017-03-22 15:21:27 +00:00
Mike Jolley
64905a4d5e
Merge pull request #13692 from woocommerce/order-notes-dates
...
Include date_created_gmt in order notes endpoint
2017-03-22 15:21:19 +00:00
Claudio Sanches
7f7fbcbb5d
Improve order notes schema
2017-03-22 10:53:59 -03:00
Claudio Sanches
8184757e8a
Improved descrition of items in schema
2017-03-22 10:51:52 -03:00
Claudio Sanches
1480257768
Merge pull request #13704 from woocommerce/fix-13700
...
Allow `data-coupon` through kses
2017-03-22 10:47:01 -03:00
faisal-alvi
301bc05a19
Update class-wc-post-types.php
2017-03-22 19:11:21 +05:30
Claudio Sanches
7485b418d7
Improve api_refund description
2017-03-22 10:39:23 -03:00
Mike Jolley
3b35d95c6a
Use gmdate and GMT in data stores so times are not changed
2017-03-22 12:01:38 +00:00
Mike Jolley
15bbac6b5c
Allow `data-coupon` though kses
...
Fixes #13700
2017-03-22 10:53:18 +00:00
Mike Jolley
414e2b9501
Shared cache for order items
2017-03-21 23:50:05 +00:00
Mike Jolley
91f109c33d
Cache order item data
2017-03-21 23:38:04 +00:00
Mike Jolley
2763abb605
Cache order items
2017-03-21 23:37:47 +00:00