Akeda Bagus
0d91e1b6d3
Added more command help for `wp wc product`.
2015-10-01 15:18:54 +02:00
Claudio Sanches
6cb5c08037
[API] Added inventory_delta attribute to products endpoint, closes #7673
2015-10-01 15:05:02 +02:00
Claudio Sanches
e34e234481
[API] Added grouped_products attribute to products endpoint, closes #8862
2015-10-01 14:08:42 +02:00
Shiva Poudel
b614222b11
Removed unused global variable
2015-10-01 15:28:41 +05:45
Claudio Sanches
6c3005cddc
[2.4] [API] Fixed customers count method
2015-10-01 10:54:30 +02:00
Mike Jolley
324e3cac0f
Add billing column (off for new users)
...
Closes #9240
2015-10-01 10:52:03 +02:00
Claudio Sanches
0547c01418
[API] Removed useless _order_number param in POST/PUT orders, closes #9250
2015-10-01 10:14:42 +02:00
Mike Jolley
1defb3fb4f
Explain the fees method in more detail.
...
Closes #9231 Closes #9193
2015-10-01 10:05:16 +02:00
Akeda Bagus
274eede1f6
Initial works on WP-CLI support.
2015-10-01 09:34:03 +02:00
Claudio Sanches
e43fa91ab9
Inline comment for #8884
2015-09-30 18:12:12 +02:00
Claudio Sanches
2559c9287a
[API] Added filter option to show all users on customers endpoint, closes #8884
2015-09-30 18:10:47 +02:00
Manos Psychogyiopoulos
37b24ae525
move version check into loop
2015-09-30 11:01:25 +03:00
Mike Jolley
44f4a3b9be
Merge pull request #9226 from aelia-co/master
...
[2.4] Fixed loading of variation prices. Fixes #9224
2015-09-30 09:51:10 +02:00
Manos Psychogyiopoulos
e36c5ae630
fix file version check path
2015-09-29 12:36:03 +03:00
Akeda Bagus
78f3d8a6cb
Fixed permission issue when show_ui arg is set to false for attributes.
...
When show_ui for taxonomies is set to false, the ability to view the
term editing screen is removed.
See https://core.trac.wordpress.org/ticket/33938
Fixes #9223 .
2015-09-29 09:11:23 +02:00
Diego Zanella
5da98ce782
Fixed loading of variation prices
...
The original method loaded the prices once, then stored them in a property of the product instance. Any subsequent calls to WC_Product_Variable::get_variation_prices() would get the stored prices, regardless of the value of the $display argument.
2015-09-25 16:11:41 +01:00
Claudio Sanches
f7ea1d4c6a
[API] Product featured_src return type as string, closes #9220
2015-09-25 16:13:52 +02:00
Claudio Sanches
06d31d1f86
[2.4] [API] Added refunded_item_id on GET orders/<id>/refunds endpoint, closes #9196
2015-09-22 14:37:11 -03:00
Claudio Sanches
df508c82a3
Merge pull request #9198 from nvartolomei/shop-order-meta-save
...
Set order date before changing order status.
2015-09-22 13:55:24 -03:00
Claudio Sanches
605db1cf3a
hijax for variations on frontend
2015-09-22 13:22:12 -03:00
Claudio Sanches
91c30310ee
Fixed stock email recipient description typo, closes #9199
2015-09-22 13:06:10 -03:00
Nicolae Vartolomei
dd62484cc2
Set order date before changing order status.
2015-09-22 12:02:29 +03:00
Aurélien PIERRE
aead6f1e87
add shortcodes support in variation description
2015-09-21 19:34:06 -04:00
Claudio Sanches
f9fb149551
Allow filter orders by customer id, closes #9162
2015-09-21 19:11:54 -03:00
Claudio Sanches
1522a4d87b
Added download-url class in WC_Abstract_Order::display_item_downloads(), closes #9158
2015-09-21 18:28:03 -03:00
Claudio Sanches
dc30ffcd60
Created woocommerce_upsell_display_args filter, closes #9185
2015-09-21 17:30:37 -03:00
Claudio Sanches
ae7bb7d397
Merge pull request #9157 from siliconforks/issue-9156
...
Trim leading plus sign and "1" digit from US/CA phone numbers
2015-09-21 17:09:57 -03:00
Claudio Sanches
c4a845e9ac
Merge pull request #9178 from krautnerds/fix-report-chart-highlighting
...
[2.4] Fixed wrong highlighting of reports chart
2015-09-21 16:50:24 -03:00
Claudio Sanches
63b389d21c
Merge pull request #9181 from woothemes/issues/8721-fix-network-activated-plugins-not-showing-up
...
Fix network activated plugins not showing up in system status report.
2015-09-21 16:43:40 -03:00
Claudio Sanches
ebc0996f4c
[2.4] Show tax fields in product bulk edit only when tax is enabled
2015-09-21 16:36:46 -03:00
Claudio Sanches
d07441f518
[2.4] Show tax fields in product quick edit only when tax is enabled
2015-09-21 16:03:03 -03:00
Akeda Bagus
7490600de5
Fix network activated plugins not showing up in system status report.
...
The array returned by `get_site_option( 'active_sitewide_plugins' )` has
plugin file as array's key while array returned by `get_option( 'active_plugins' )`
has plugin file as array's value.
Fixes #8721
2015-09-20 23:35:03 -05:00
Florian Ludwig
7d2d102dc4
Fixed wrong highlighting of reports chart
...
The highlight data attributes were totally messed up - Fixed them
according to the current sorting of the graph series
2015-09-20 18:12:31 +02:00
Claudio Sanches
f6e828e359
[2.3] unslash shipping label, closes #9160
2015-09-18 12:28:13 -03:00
Claudio Sanches
daf371052c
Missing ) on order screen for customers select2
2015-09-18 12:21:55 -03:00
Nicolae Vartolomei
e15a4367bd
Rename action that is executed after permission deletion (typo)
2015-09-18 16:50:26 +03:00
Nicolae Vartolomei
c415d1554c
Remove downloadable permissions on permanent order deletion
2015-09-18 16:41:50 +03:00
Claudio Sanches
e075552604
Merge branch 'master' of github.com:woothemes/woocommerce
2015-09-18 02:18:28 -03:00
Claudio Sanches
52787c282c
[2.3] Prevent "Trying to get property of non-object" in Sensei
2015-09-18 02:18:15 -03:00
Silicon Forks
b73fce8dca
Trim leading plus sign and "1" digit from US/CA phone numbers
...
Fixes #9156 .
2015-09-17 18:58:49 -03:00
Mike Jolley
a175638032
[2.4] unslash file URL
2015-09-17 16:18:11 +01:00
Mike Jolley
0c56fe0844
Merge pull request #9149 from JeroenSormani/stock-changes
...
Add get_stock_quantity filter
2015-09-17 10:57:47 +01:00
JeroenSormani
cb75a1e8af
Add get_stock_quantity filter
2015-09-17 10:19:04 +02:00
Claudio Sanches
c739f395ce
[2.4] [API] Improved the way are used for non-global attributes for variations
2015-09-17 02:57:04 -03:00
roykho
f5f61da4e9
fixes a case were there are orphaned variations and trying to call the parent that doesn't exist
2015-09-16 08:49:18 -07:00
Claudio Sanches
4c286272af
Merge pull request #8808 from SiR-DanieL/shortcodes-category
...
Added args category to some shortcodes
2015-09-16 12:07:48 -03:00
Mike Jolley
83838358fe
Revert "Merge pull request #8768 from SiR-DanieL/session-delete"
...
This reverts commit f63c500848
, reversing
changes made to 2a31d1fe98
.
2015-09-16 13:38:28 +01:00
Mike Jolley
7a3bd70c8b
Allow bulk edit price to 0
...
Fixes #9143
2015-09-16 13:20:59 +01:00
Mike Jolley
f63c500848
Merge pull request #8768 from SiR-DanieL/session-delete
...
Instroducing WC_Session::delete
2015-09-16 10:34:51 +01:00
Nicola Mustone
7d6bf488c9
using unset also in the magic method
2015-09-16 11:34:22 +02:00
Nicola Mustone
6bc17c65c8
delete to unset
2015-09-16 11:34:03 +02:00
Nicola Mustone
ffc941fcb1
rebase shortcakes category
2015-09-16 09:26:30 +02:00
Claudio Sanches
2a31d1fe98
Merge branch 'master' of github.com:woothemes/woocommerce
2015-09-15 22:06:18 -03:00
Claudio Sanches
8ed7754e49
Fixed strings with "MasterCard", closes #9142
2015-09-15 22:06:02 -03:00
Claudio Sanches
ab921ea82c
Merge pull request #9088 from khag7/khag7-patch-1
...
Filter the array which determines what classes are applied to an order note
2015-09-15 20:01:33 -03:00
Claudio Sanches
f7d035e739
Merge pull request #9084 from rchq/patch-1
...
Added an action for notifications
2015-09-15 19:59:16 -03:00
Claudio Sanches
ebedba7906
Merge pull request #9081 from helgatheviking/filter-admin-order-item-thumbnails
...
Add `woocommerce_admin_order_item_thumbnail` filter in admin
2015-09-15 19:58:23 -03:00
Claudio Sanches
f447a66281
Introduces woocommerce_update_new_customer_past_order action, closes #9078
2015-09-15 19:56:59 -03:00
Claudio Sanches
7e63374aaf
Merge pull request #8735 from shivapoudel/backbone-modal
...
Allow support for variable in backbone modal template in extensions
2015-09-15 19:44:50 -03:00
Claudio Sanches
376b13aece
[API] Sanitize product image alt attribute
2015-09-15 14:25:43 -03:00
Claudio Sanches
d7c25e3051
Merge pull request #9136 from mikaelmattsson/master
...
Make the image properties alt and title writable in the REST API v3, closes #8860
2015-09-15 13:15:20 -03:00
James Koster
82f8b61418
make it clearer that variation drag/drop only applies to the backend. closes #9104
2015-09-15 17:05:55 +01:00
Mike Jolley
4e063fb069
Merge pull request #8925 from shivapoudel/hidden-meta-boxes
...
Hides 'custom fields' section by default in product
2015-09-15 16:47:05 +01:00
Mike Jolley
cc875d7b94
Merge pull request #8939 from SiR-DanieL/_x
...
Added some comments on translations
2015-09-15 16:45:39 +01:00
Mike Jolley
3e55364e3a
Merge pull request #8940 from woothemes/issues/8482
...
Tidy up how we're dealing with coupon postmeta around `_used_by` which can get big.
2015-09-15 16:42:51 +01:00
Mikael Mattsson
d3302a9fa8
Merge branch 'master' of https://github.com/woothemes/woocommerce
...
# By Akeda Bagus (4) and Beka Rice (1)
# Via Mike Jolley (3) and others
* 'master' of https://github.com/woothemes/woocommerce :
Added more products query filter for REST API.
Added support to GET, POST, PUT, and DELETE tags.
Added support to POST, PUT, and DELETE categories.
Added API support for product shipping classes.
[2.5] Filter when purchase note is showed
2015-09-15 17:28:42 +02:00
Claudio Sanches
b8172b173e
Merge pull request #9135 from woothemes/issues/8971-filter-products-by-tax
...
Added more products query filter for REST API.
2015-09-15 12:19:36 -03:00
Mike Jolley
c4fa25c09e
Merge pull request #9100 from woothemes/issues/8879-categories-tags-api-addition
...
Added support to POST, PUT, and DELETE categories/tags.
2015-09-15 16:17:50 +01:00
Mikael Mattsson
ac49411146
Make the image properties alt and title writable in the REST API v3.
2015-09-15 17:17:14 +02:00
Mike Jolley
b2749c3939
Merge pull request #9118 from woothemes/issues/8948
...
Added API support for product shipping classes.
2015-09-15 16:15:52 +01:00
Mike Jolley
0830543c4f
Add disclaimer to woocommerce_adjust_non_base_location_prices
2015-09-15 16:01:11 +01:00
Mike Jolley
4959937689
Merge branch 'universal-pricing-test'
2015-09-15 15:57:04 +01:00
Akeda Bagus
97565ef9a1
Added more products query filter for REST API.
...
The new filters are taxonomies related: tag, shipping class, and
attribute. The code was refactored a bit so all taxonomies query are
wrapped within tax_query.
2015-09-15 07:18:28 -05:00
Mike Jolley
9f1a5e3c26
Remove unused arg
2015-09-15 12:51:45 +01:00
Mike Jolley
0164584aaf
Reduce stock once and record in _order_stock_reduced meta
...
Also clears up the payment_complete method
2015-09-15 12:39:16 +01:00
Mike Jolley
96814b992f
Show more variations per page
2015-09-14 16:54:58 +01:00
Mike Jolley
3dbe9ccd95
Better fallback for ajax variations in case sync_attributes has ran
2015-09-14 16:50:58 +01:00
Mike Jolley
fc78f85bc6
Merge branch 'pr/9034'
2015-09-14 15:56:38 +01:00
Mike Jolley
3a1bcd8e7d
Store prices in class to prevent running get_variation_prices multiple times
2015-09-14 15:09:57 +01:00
Mike Jolley
2d90e1c6c6
Ensure _product_version checks act the same regardless of the attributes being checked
2015-09-14 12:12:05 +01:00
Akeda Bagus
6906eb4eae
Added support to GET, POST, PUT, and DELETE tags.
2015-09-13 17:59:07 +07:00
Akeda Bagus
2980ffd66b
Added support to POST, PUT, and DELETE categories.
2015-09-13 17:59:07 +07:00
Akeda Bagus
f781d393c8
Added API support for product shipping classes.
...
This change implements GET, POST, PUT, and DELETE handlers for shipping
classes endpoint, /products/shipping_classes.
Fixes #8948 .
2015-09-13 17:54:23 +07:00
Panagiotis Vagenas
8e37f8d0a5
#9116 . Moving the action outside the curly braces will do the trick.
2015-09-13 10:03:25 +03:00
Claudio Sanches
03ed840a79
Merge pull request #9109 from SiR-DanieL/related-products-args
...
Wrong per_page attribute
2015-09-11 18:24:56 -03:00
Nicola Mustone
cc3962cddb
wrong per_page attribute
2015-09-11 10:53:26 +02:00
Akeda Bagus
82a7c70334
Don't show undo link if removed item product is out of stock.
2015-09-11 15:22:09 +07:00
Claudio Sanches
194f9cd6ec
Revert "Added API support for product shipping classes."
2015-09-10 14:22:11 -03:00
Mike Jolley
53c6bebbd0
Select 1=1 instead of '1' when using get_var
...
Fixes #9102
2015-09-10 16:49:51 +01:00
Mike Jolley
8ec5986d48
Tweak hash logic
2015-09-09 22:29:54 +01:00
Claudio Sanches
1a97aeb0b3
Merge pull request #9098 from woothemes/issues/8948
...
Added API support for product shipping classes.
2015-09-09 12:27:38 -03:00
Kevin Hagerty
1c6dad110e
improved spacing, filter name more conventional, added esc_attr
2015-09-09 10:11:09 -04:00
Akeda Bagus
1f18d861ce
Added API support for product shipping classes.
...
This change implements GET, POST, PUT, and DELETE handlers for shipping
classes endpoint, /products/shipping_classes.
Fixes #8948 .
2015-09-09 20:38:11 +07:00
Mike Jolley
71b8f0ddff
Change loops wording
...
Closes #8818
2015-09-09 11:26:11 +01:00
Mike Jolley
a0411e7d8b
Apparently allowing full screen fixes wistia notices
...
Fixes #9052
2015-09-09 11:06:26 +01:00
Geoffrey de Vlugt
9d7d40ced1
Coupon usage count can become negative
...
This commit fixes issue #9086
2015-09-09 09:56:32 +02:00
Kevin Hagerty
849a3598c9
add a filter to the array of the html classes for an order note
...
allow plugins to hook into the display of order notes to add classes.
2015-09-08 20:11:04 -04:00
rchq
332c1bdf9c
Update abstract-wc-order.php
...
Created an action to be able to hook into and add additional notification triggers.
2015-09-08 11:00:22 -07:00
Kathy Darling
9571b8827e
Add `woocommerce_admin_order_item_thumbnail` filter in `html-order-item.php`.
2015-09-08 13:41:12 -04:00
Mike Jolley
4084b8b359
Merge pull request #9075 from krautnerds/fix-lost-password-form-handling
...
Fix lost password form handling for space before/after email
2015-09-08 11:45:22 +01:00
Mike Jolley
6306c3afde
get_formatted_meta allow 0 values
...
Fixes #9072
2015-09-08 11:39:50 +01:00
Mike Jolley
14ee9e2daa
Merge pull request #9074 from khag7/khag7-patch-1
...
fix HTML for the order total column
2015-09-08 10:24:19 +01:00
matttallan
bbe11fdd6b
Don't try add/remove download permissions if order does not exist
2015-09-08 15:28:38 +10:00
Florian Ludwig
5cffd789a4
Removed unused variable
2015-09-08 00:08:40 +02:00
Florian Ludwig
9966f6b0a4
Fixed issue where space before or after mail led to "Invalid e-mail" error
2015-09-08 00:08:32 +02:00
Kevin Hagerty
a59b3482e8
fix HTML for the order total column
...
the HTML generated now uses get_formatted_order_total, same solution used for issue #9047
2015-09-07 17:30:55 -04:00
Florian Ludwig
35655f8544
Fixed all inefficient selector usages
...
Use find for more efficient selectors - more information on e.g.
https://24ways.org/2011/your-jquery-now-with-less-suck/
2015-09-07 19:51:10 +02:00
Manos Psychogyiopoulos
e3dad9106f
elseif
2015-09-07 19:17:33 +03:00
Manos Psychogyiopoulos
d9d11974fe
introduce context in transient with price filters
2015-09-07 19:13:41 +03:00
Mike Jolley
821434cbb7
Fix geolocation redirect with querystring
2015-09-07 16:58:05 +01:00
Mike Jolley
a056e3e649
Unslash key description
...
Closes #9068
2015-09-07 16:29:03 +01:00
Mike Jolley
358f3f79fa
Don't use extract() in add_rate
...
#9057
2015-09-07 16:02:23 +01:00
Mike Jolley
38a5d04c53
woocommerce_save_account_details_required_fields hook
...
Closes #9056
2015-09-07 15:21:57 +01:00
Mike Jolley
3e0986bce0
Merge pull request #9053 from khag7/khag7-patch-1
...
Improve order total formatting
2015-09-07 14:43:49 +01:00
Mike Jolley
50e4a68235
Merge pull request #9028 from LeGaS/patch-1
...
Count only published variations
2015-09-07 14:43:01 +01:00
Mike Jolley
ee0b0ba088
Merge pull request #9003 from krautnerds/fix-api-v2-item-meta-keys
...
Restored wc<2.4 behavior of order item meta keys
2015-09-07 14:36:17 +01:00
Mike Jolley
27ac395496
Use geolocation class IP function
...
Fixes #9048
Closes #9050
2015-09-07 14:24:00 +01:00
Mike Jolley
ae849c7adb
Merge pull request #9054 from khag7/khag7-patch-2
...
use the needs_payment function
2015-09-07 14:19:48 +01:00
Mike Jolley
13b85f89a6
Tweak wc_create_page to work with trashed pages...
...
… and to check post IDs are valid pages with correct post statuses.
Fixes #9061
Closes #9062
Closes #9063
2015-09-07 14:17:22 +01:00
Mike Jolley
bf0cb28d36
esc_html
...
Closes #9065
2015-09-07 13:26:43 +01:00
Mike Jolley
174967dd6b
Merge pull request #9066 from dominic-p/query-id-check
...
Check specifically for Post IDs in WC Query verbose rules fix
2015-09-07 13:22:29 +01:00
James Koster
4aff861626
responsive orders table in dashboard. closes #8996
...
Also removes unnecessary tooltip on order row.
2015-09-07 12:35:30 +01:00
Mike Jolley
1c68137cf9
Only run maybe_set_cart_cookies if cart was loaded
2015-09-07 11:38:24 +01:00
Dominic
358336546e
Check specifically for Post IDs in WC Query
...
The `WP_Query::queried_object_id` property can reference either a post
or a term ID. This way, we ensure that we are check for posts only.
2015-09-07 02:17:01 -07:00
Kevin Hagerty
164b39ea42
Use the needs_payment function
...
Instead of checking against a list of valid order statuses, use the needs_payment function which already checks against those statuses
2015-09-05 08:09:47 -04:00
Kevin Hagerty
e4b092fe10
Use the needs_payment function
...
Instead of checking against a list of valid order statuses, use the needs_payment function which already checks against those statuses
2015-09-05 08:06:57 -04:00
Kevin Hagerty
3671bcf39d
Improve order total formatting
...
The function get_formatted_order_total already provides formatted HTML with indication of a prior refund. No need to do that logic and formatting again.
2015-09-05 07:48:24 -04:00
Mike Jolley
991bd96fb6
Redirect 'not right now' to referer
2015-09-04 16:02:44 +01:00
Mike Jolley
b111331686
Allow line breaks in non-variation attributes
2015-09-04 14:00:42 +01:00
James Koster
8eebc7c900
Free is an amount!
...
All product prices are wrapped in `span class=“amount”`. To make
themers lives easier let’s be consistent. When the product is free the
price should still be wrapped.
2015-09-04 11:19:52 +01:00
Mike Jolley
d90d562b42
Leave excl function alone
2015-09-04 10:57:22 +01:00
Mike Jolley
e08f8d8902
Apply woocommerce_adjust_non_base_location_prices to all prices
2015-09-04 10:48:50 +01:00
Mike Jolley
31ed6c2531
woocommerce_adjust_non_base_location_prices test (false for now, should be true for current behavior)
2015-09-04 10:33:51 +01:00
Mike Jolley
bbd95bab7b
Merge pull request #9033 from jackgregory/is-layered-nav-active
...
add woocommerce_is_layered_nav_active filter
2015-09-04 10:08:18 +01:00
Mike Jolley
8596cb9322
Merge pull request #9039 from krautnerds/fix-api-key-bulk-revoke-for-translated-woocommerce
...
Don't use translated key for name in bulk action checkbox
2015-09-03 23:16:28 +01:00
Mike Jolley
797f2fab62
decode quotes
...
#9040
2015-09-03 23:15:06 +01:00
Florian Ludwig
6f3a221c62
Removed senseless sprintf argument
2015-09-03 22:21:23 +02:00
Florian Ludwig
2b6aecb262
Don't use translated key for name in bulk action checkbox
...
Otherwise the translation will break the code in
https://github.com/woothemes/woocommerce/blob/master/includes/admin/clas
s-wc-admin-api-keys.php#L122
We shouldn’t use the translated string here in my opinion.
2015-09-03 22:12:55 +02:00
Manos Psychogyiopoulos
68e24c8f8a
no filters allowed when generating variable product price transients
2015-09-03 19:04:31 +03:00
Mike Jolley
8149213c4b
Add monthly cron schedule
...
@claudiosmweb
2015-09-03 16:21:53 +01:00
Mike Jolley
889d40b8aa
Add data attribute to leave options visible
...
Closes #9017
2015-09-03 15:38:42 +01:00
Jack Gregory
e75b462e86
add woocommerce_is_layered_nav_active filter
2015-09-03 15:09:21 +01:00
Mike Jolley
fad48bf800
Add filters to control shipped via text
2015-09-03 15:05:10 +01:00
Szabolcs Légrádi
6bb0dd864b
Do not count trashed product variations
2015-09-02 23:11:28 +02:00
Szabolcs Légrádi
68460063a0
Count only published variations
2015-09-02 22:58:07 +02:00
Mike Jolley
b4e879f30e
Merge pull request #8993 from jackgregory/filter-dropdown-variation-args
...
add woocommerce_dropdown_variation_args filter
2015-09-02 14:01:39 +01:00
Jack Gregory
16cdbb4ff3
update woocommerce_dropdown_variation_attribute_options_args filter naming
2015-09-02 12:39:23 +01:00
Mike Jolley
d4c8611ec8
Merge pull request #8972 from didi3r/patch-1
...
Hide "Our Bank Details" heading when no bacs registered
2015-09-02 12:24:22 +01:00
Mike Jolley
c4ca7abd4c
Check home URL not this page
...
Fixes #8963
2015-09-02 12:23:53 +01:00
Mike Jolley
2023910400
Log refund response.
2015-09-02 11:36:42 +01:00
Mike Jolley
a27aeaaa6f
Escape add to cart messages to stop translations from breaking cart events.
2015-09-02 10:59:17 +01:00
Mike Jolley
cf7a9c3913
Case insentiive matching in cache helper
...
@georgestephanis
2015-09-01 16:40:17 +01:00
Mike Jolley
dd7c32c22c
Added 'false' check in variation admin
...
@claudiosmweb Closes #8966
2015-09-01 16:35:13 +01:00
Mike Jolley
c65d227105
Merge pull request #9011 from woothemes/WPprodigy-patch-1-1
...
Allow for multiple email recipients
2015-09-01 15:46:46 +01:00
Mike Jolley
f7e4bf224d
Exclude cart and account pages from geolocation
...
Closes #8967
2015-09-01 15:41:05 +01:00
Mike Jolley
66c0d8f009
Swiss
...
Fixes #9001
2015-09-01 13:50:14 +01:00
Mike Jolley
91ac7fc974
To prevent discounts being applied in 'random' order (based on order added to cart), sort cart items based on subtotal during calculate_totals.
...
Closes #8987
@claudiosmweb @georgestephanis does this change look sane to you folks?
2015-09-01 13:16:55 +01:00
Caleb Burks
c53248896e
Allow for multiple email recipients
...
Allow multiple emails to be used for the low stock / out of stock email.
2015-09-01 07:11:41 -05:00
Mike Jolley
6728f5c1fe
singular_name context
...
Closes #8988
2015-09-01 12:42:45 +01:00
Florian Ludwig
4e0961333f
Restored wc<2.4 behavior of order item meta keys
...
The previous version of woocommerce showed the machine readable names
in item_meta['key’] especially for the custom variation attributes but
after 2.4 it shows only meta ids in the key.
This commit reverts the behavior to the prior 2.4 behavior.
2015-08-31 17:59:41 +02:00
Mike Jolley
07237d9a09
Set charset when doing html_entity_decode
...
@claudiosmweb Closes #8964
2015-08-31 12:29:36 +01:00
toddlahman
b631cc719c
Fix for Invalid argument supplied for foreach
2015-08-30 21:18:21 -07:00
Jack Gregory
f8cc75fe4f
add woocommerce_dropdown_variation_args filter
2015-08-29 16:30:36 +01:00
Mike Jolley
7643712a52
Sync after save
2015-08-29 13:45:58 +01:00
Florian Ludwig
b50a75ce23
Use wc_stock_amount for ajax response in variation admin
...
My previous pull request of old WC 2.3 didn’t get applied in the new
2.4 AJAX method for the variation admin. So let’s do it again ;) (old
pull request see #8304 )
2015-08-28 18:17:54 +02:00
Didier Pérez
8bbb0f2878
Hide "Our Bank Details" heading when no bacs registered
...
The heading "Our Bank Details" is shown in emails even if there are not bacs registered. This fix prevent that.
2015-08-27 13:33:32 -05:00
Claudio Sanches
58df3604f8
Merge pull request #8962 from woothemes/simplify-ireland-support
...
Adds a filter on the supported countries for Simplify Commerce.
2015-08-26 11:32:41 -03:00
Matty
19c052428d
Adds a space after (array) to comply with WordPress coding standards. #8960 .
2015-08-26 15:16:42 +02:00
Mike Jolley
4849d7d56e
Sync stock status during save
...
Closes #8950
2015-08-26 13:51:51 +01:00
Matty
7c679edf63
Adds a filter on the supported countries for Simplify Commerce, to add country support without the need to update WooCommerce itself. #8960 .
2015-08-26 14:35:55 +02:00
Matty
49b33ae89d
Adjusts Simplify Commerce country support to reflect support for Ireland. Closes #8960 .
2015-08-26 14:24:24 +02:00
Mike Jolley
fdb25fa0c3
Pass through tax_display
...
Fixes #8951
2015-08-26 13:05:52 +01:00
Mike Jolley
1f3e8b984e
use empty to check to see if attributes for variations exist
...
Closes #8959
2015-08-26 12:56:44 +01:00
Mike Jolley
28da8a40d8
Tweak wc_var_prices naming to allow them to be flushed on save
2015-08-26 12:28:04 +01:00
Ibrahim
6b60616ed3
Update class-wc-shortcodes.php
...
`ob_start` is used which is not required.
2015-08-26 12:08:17 +05:30
Mike Jolley
5fbdb06710
show_counts -> show_count
2015-08-25 10:48:36 +01:00
George Stephanis
f71af3b1de
Account for the fact that when fetching all meta, maybe_unserialize() hasn't run yet.
...
@see
https://github.com/WordPress/WordPress/blob/a7b38bf90a8b4e070ae98faa076e
41403c59f951/wp-includes/meta.php#L499-L508
2015-08-24 16:08:04 -04:00
George Stephanis
6ef4cf0d18
Optimization. Don't call `get_post_meta` 17+ odd times.
...
As @pmgarman remarked here:
https://pmgarman.me/blog/woocommerce-and-coupon-_used_by-logging/ — for
very large values of postmeta, when using memcached that cannot handle
data stores of over 1M, the store seems to fail at pulling it back in,
resulting in large query results on each call.
At the least, this change should avoid those cache misses and
re-queries, although I do feel that not being able to keep the cached
in php’s memory and losing it in the cache is indeed a failing here of
the object cache plugin.
Still, this should have some optimizations, as we’re caching the data
right here, closer to usage.
2015-08-24 15:06:19 -04:00
George Stephanis
a17addae0a
Migrate the actual querying of the underlying data structure.
...
Move it into the relative class for tidiness, and have it be called via
an access function.
2015-08-24 14:30:13 -04:00
George Stephanis
4692afacdd
Add a conditional to match `inc_usage_count()`
...
Otherwise, for empty $used_by values, it will fire off a needless db
query.
2015-08-24 14:20:30 -04:00
George Stephanis
40dfb59bde
Clarify a comment as to why we're not using a core method.
2015-08-24 14:19:08 -04:00
George Stephanis
fd3ceb3e04
Allow a user to be specified for validating the limit of.
2015-08-24 13:08:44 -04:00
George Stephanis
e6b7d5c49a
Simplify the data we're working with.
...
This provides slightly safer bounds for large data sets.
2015-08-24 13:08:23 -04:00
Nicola Mustone
6f7b534493
missing comma
2015-08-24 17:27:23 +02:00
Nicola Mustone
657728d778
_x for the order details admin page
2015-08-24 17:15:19 +02:00
Mike Jolley
5e984faebc
Allow HTML in store notice.
2015-08-24 16:15:16 +01:00
Nicola Mustone
beb97b279e
_x for refund reports
2015-08-24 17:13:04 +02:00
Mike Jolley
a07824e8a7
Ensure product exists in add cart handler
...
Closes #8937
2015-08-24 15:28:57 +01:00
Mike Jolley
f03be47e86
Handle non standard decimals in flat rate costs.
2015-08-24 15:26:08 +01:00
Mike Jolley
14b0c20bf2
Ensure variable stock status is based only on variations
2015-08-24 15:03:44 +01:00
Mike Jolley
3c7290a765
During updates, only recreate .htaccess if not using redirect download method.
...
Fixes #8923
2015-08-24 13:50:14 +01:00
Mike Jolley
ae21b511f0
Support 0 value attributes
2015-08-24 13:32:20 +01:00
Mike Jolley
d9e8787198
WC Setup wizard: Fix manual setting of decimal/thousand separator.
...
Closes #8930
2015-08-24 12:54:09 +01:00
Mike Jolley
ae207466d4
Ajax variation < 2.4 attribute name handling.
2015-08-23 21:47:04 +01:00
Mike Jolley
0cf74b5dba
Set ajax endpoint headers like admin_ajax
...
@claudiosmweb does this make sense to you?
2015-08-23 21:17:03 +01:00
Shiva Poudel
9cf86e8494
Cleanup docblocks
2015-08-22 02:57:03 +05:45
Shiva Poudel
4018ca4ed3
Tweak - Hide default Custom Fields Meta-Boxes, Closes #8924
2015-08-22 02:52:05 +05:45
Mike Jolley
04a68ad925
Add spinner/loading indication between onboarding steps
...
Closes #8816
2015-08-21 19:12:36 +01:00
Mike Jolley
393bb012c1
Tweak gateway wording
...
@mjepson
2015-08-21 19:01:21 +01:00
Mike Jolley
87534d683b
Update tweets!
...
@MarinaWoo
2015-08-21 18:57:14 +01:00
Mike Jolley
d677be46ce
update example to show decimal
2015-08-21 17:01:25 +01:00
Mike Jolley
07b1f9329d
Bulk update variation: Allow stock to be set to 0.
2015-08-21 16:48:25 +01:00
Mike Jolley
bbb00d9a3a
Bulk update variation manage stock when _manage_stock meta data is missing.
2015-08-21 16:33:55 +01:00
Mike Jolley
d8a9ebd29c
Merge pull request #8916 from SiR-DanieL/encode-variation-data-url
...
Encode variation data
2015-08-21 15:52:17 +01:00
Mike Jolley
714cd8dc9a
Merge branch 'pr/8901'
2015-08-21 15:32:11 +01:00
Mike Jolley
574c0b2936
Update wording
2015-08-21 15:25:03 +01:00
Mike Jolley
8fca3e2d60
Merge pull request #8913 from woothemes/add-to-cart-handlers
...
Add to cart handlers
2015-08-21 14:35:20 +01:00
Mike Jolley
296d9a8850
Merge pull request #8915 from shivapoudel/fix-site-icon
...
WC Setup wizard and site icon
2015-08-21 14:09:40 +01:00
Mike Jolley
2d8b3f0c1f
menu_order notices on IIS.
2015-08-21 14:08:32 +01:00
Nicola Mustone
ae3f0aec51
encode variation data
2015-08-21 12:32:00 +02:00
Shiva Poudel
7cd88cfa30
Fixed - WC Setup wizard site icon display on WP 4.3
2015-08-21 13:31:10 +05:45
Claudio Sanches
c7f8e541cd
Merge pull request #8912 from thenbrent/simplify_change_payment_fix
...
Fix changing failing subscription payment method
2015-08-20 22:37:42 -03:00
Mike Jolley
170737b4e8
Remove purchasable check completely
...
Not required as the cart class checks this later on. Was originally
added for #7220 . Later changed to support admin buying private products
https://github.com/woothemes/woocommerce/commit/9ed36d4b0104e77ede338862
b67a99d0a243aac8
Fixes #8908
2015-08-20 23:43:39 +01:00
Mike Jolley
80b6c0f541
Refactor add_to_cart_action by splitting product type methods
2015-08-20 23:41:56 +01:00
Caleb Burks
4bff967e40
Flat Rate Calculation - min_fee
...
The correct shortcode term to use is `min_fee`: https://github.com/woothemes/woocommerce/blob/master/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php#L94
2015-08-20 16:55:00 -05:00
Brent Shepherd
f52316856c
Fix changing failing subscription payment method
2015-08-20 13:51:08 -07:00
Mike Jolley
5c948f374c
Fix preg_replace in layered nav dropdown
2015-08-20 17:32:27 +01:00
Claudio Sanches
1c348ebc27
Merge pull request #8904 from woothemes/wizard-language-download
...
Wizard language download, closes #8895
2015-08-20 12:16:01 -03:00
Claudio Sanches
d81cea3ab6
Properly escape WC_Admin_Setup_Wizard::get_next_step_link()
2015-08-20 12:15:12 -03:00
Claudio Sanches
86de66c8c9
Use self for static methods
2015-08-20 12:10:41 -03:00
Mike Jolley
0f40e8cdf7
Language install prompt
2015-08-20 16:03:29 +01:00
Tor Morten Jensen
f6b7ab97b1
Adds tooltips to explain 'tax class' and 'tax status' in product admin. Addresses #8817
2015-08-20 14:33:25 +02:00
JeroenSormani
c25cc886ae
Add tiptip dependency to wc-admin-meta-boxes
2015-08-20 13:46:52 +02:00
Mike Jolley
24c7f56b03
move attribute code above selector
2015-08-20 10:52:59 +01:00
Mike Jolley
9ed36d4b01
In add_to_cart_action, check is_purchasable rather than post status.
2015-08-20 10:39:38 +01:00
Lucas Stark
00be9b1324
Update class-wc-admin-settings.php
...
Reset the $value to array when processing image_width. Strange bug if the value is a string and the array is not explicitly created.
2015-08-19 13:39:38 -04:00
Claudio Sanches
186257fcd1
Removed the forced redirect
2015-08-19 12:43:13 -03:00
Claudio Sanches
aa8e469a9d
Download translations in setup wizard
2015-08-19 12:36:59 -03:00
Mike Jolley
ac90660f7d
Add expand/close links for attributes and match variation UI
...
Closes #8875
2015-08-19 14:00:26 +01:00
Mike Jolley
ecc50f78ab
Don't clean keys - avoids destroying special chars
2015-08-19 11:33:42 +01:00
Mike Jolley
57bb0ebe25
Record manual order status change
2015-08-18 16:33:38 +01:00
Mike Jolley
625105b1c7
Merge pull request #8873 from SiR-DanieL/transient-limit-filter
...
Added filter woocommerce_delete_version_transients_limit
2015-08-18 14:44:41 +01:00
Mike Jolley
c6d6a6b439
Merge pull request #8866 from woothemes/fix/pinking-shears
...
Pinking Shears.
2015-08-18 14:36:52 +01:00
Mike Jolley
dc37e49c02
Suppress set_time_limit errors to prevent issues in some environments
...
“Warning: Cannot set max_execution_time above master value of 30 (tried
to set unlimited) in
/var/www/web1043/html/wordpress/wp-content/plugins/woocommerce/includes/
class-wc-download-handler.php on line 337</p>”
2015-08-18 13:16:25 +01:00
Nicola Mustone
7f879b416a
added filter woocommerce_delete_version_transients_limit
2015-08-18 11:47:19 +02:00
Claudio Sanches
c00239fbef
Fixed visual endpoint callback content-type #8021
2015-08-17 19:19:08 -03:00
George Stephanis
ffd2b2de30
Pinking Shears.
2015-08-17 17:35:10 -04:00
Claudio Sanches
8da7369088
Just avoid deprecated notices for #8848
2015-08-17 14:04:12 -03:00
Claudio Sanches
a12552dbf1
[API] Removed $HTTP_RAW_POST_DATA in favor of php://input, closes #8848
2015-08-17 12:51:19 -03:00
Mike Jolley
a5a7c71aa7
Keep new variation in sync so actions can modify data Closes #8858
2015-08-17 15:11:34 +01:00
Mike Jolley
9330176865
Flush product cache so prices are regenerated
...
Fixes #8851
2015-08-17 14:19:58 +01:00
Mike Jolley
1999dbe92d
Improve display_item_downloads numbering and use same function in emails.
2015-08-17 12:17:56 +01:00
Mike Jolley
ad691fe916
save_account_details should check display name of current user.
...
Fixes #8856
2015-08-17 12:02:16 +01:00
Mike Jolley
329c2c9c9b
Merge pull request #8838 from StuartOB/master
...
Missing object attributes
2015-08-17 11:03:44 +01:00
Claudio Sanches
a9a6009b66
Check if order is valid in checkout shortcode, closes #8829
2015-08-15 17:50:42 -03:00
stuartobrien
237acd7e90
consistent code formatting
2015-08-15 01:28:48 +02:00
stuartobrien
3ce5374cd9
fixed - missing attribute $password_generated used in the object but not declared
2015-08-15 01:16:02 +02:00
stuartobrien
6a8742d4d6
change type to boolean
2015-08-15 01:03:18 +02:00
stuartobrien
5a616d86c3
fixed - missing attributes refund and partial_refund are used in the object but are not declared
2015-08-15 00:57:12 +02:00
Claudio Sanches
13c34f6ba2
Fixed Allowed Zip description for Local Delivery, closes #8831
2015-08-14 15:28:34 -03:00
Claudio Sanches
1d0d48b1ad
Fix attribute text based in API, closes #8823
2015-08-14 15:22:57 -03:00
Claudio Sanches
934808fc37
Created new wc_sanitize_term_text_based() for properly sanitize term text based before save, closes #8823
2015-08-14 15:22:16 -03:00
Claudio Sanches
dc666f6b27
Added missing $menu_order on WC_Ajax::add_variation()
2015-08-14 14:40:46 -03:00
Lee Hopkins
9632077c7e
Wrap product name in correct double quotes in wc_format_list_of_items()
2015-08-14 09:57:35 -07:00
George Stephanis
81804d8d3b
Don't show the `pre` displaying the changes by default.
2015-08-14 11:07:35 -04:00
Mike Jolley
a0be65596f
COD: remove shipping check if the cart is 100% virtual.
...
@claudiosmweb
2015-08-13 23:54:16 +01:00
Mike Jolley
dc1798f942
woocommerce_variable_children_args hook.
2015-08-13 23:35:41 +01:00
George Stephanis
2aa1650f54
Rearrange things to get ajax working.
...
Spread them out throughout WooCommerce.
2015-08-13 17:49:59 -04:00
Diego Zanella
5b29d23daf
Added filter for Variable Products, as suggested in #8820
...
* The new filter allows to alter the query used to retrieve children of a variable product.
2015-08-13 22:42:16 +01:00
George Stephanis
c6d7e6ba26
Make this public so it can be used to sanitize.
2015-08-13 17:34:00 -04:00
Mike Jolley
92043a19f2
Free shipping should not be on by default
...
Closes #8819
2015-08-13 22:02:44 +01:00
George Stephanis
ec287f116f
Add ajax submission processing.
...
Not quite finished yet, as the add_action isn’t catching.
2015-08-13 16:57:54 -04:00
George Stephanis
d4ab9e6feb
Add in a bit of extra sanitizing for tax rate classes.
2015-08-13 16:56:50 -04:00
Claudio Sanches
893d0e40da
Include attribute archives support in the breadcrumbs
2015-08-13 16:02:57 -03:00
George Stephanis
2d097a8f4c
Minified version of new js file.
2015-08-13 14:29:01 -04:00
George Stephanis
3a87b98ba6
Rewrite onAddNewRow for Backbone models.
2015-08-13 14:10:47 -04:00
Mike Jolley
63fe4a0c05
Correct docbloc Closes #8814
2015-08-13 18:05:55 +01:00
Mike Jolley
d9f9da955d
empty checking
2015-08-13 16:58:23 +01:00
George Stephanis
b4bd433342
Update the unsaved message to give better data.
2015-08-13 11:58:09 -04:00
Mike Jolley
827ff2ae85
Merge pull request #8813 from SiR-DanieL/deprecated-fix
...
Replacing deprecated functions
2015-08-13 16:56:32 +01:00
Mike Jolley
56b6c0ab9c
Link to full image
...
Closes #8809
2015-08-13 16:55:32 +01:00
Nicola Mustone
51c4599b59
replacing deprecated functions
2015-08-13 17:49:25 +02:00
Mike Jolley
630c14124c
Avoid firing woocommerce_order_fully_refunded twice
2015-08-13 16:35:52 +01:00
Ewout Fernhout
535949b02e
add $display_refunded parameter to get_formatted_order_total
...
#8793
2015-08-13 15:45:49 +02:00
Mike Jolley
a52619c344
Ajax variation handling when 'any' attribute is set.
2015-08-13 13:57:26 +01:00
Mike Jolley
fb64e6e66e
Use wp_unslash and only decode when getting attributes, not saving
2015-08-13 13:03:51 +01:00
Mike Jolley
7552704e75
double encode attributes
2015-08-13 12:16:08 +01:00
Mike Jolley
a545a3aa02
wp_json_encode is 4.1 +
2015-08-13 12:07:12 +01:00
Mike Jolley
4908131b86
stripslashes_deep attributes
2015-08-13 12:07:05 +01:00
Mike Jolley
3a4653ba3b
Run html_entity_decode over text attributes to fix problems with quote characters.
2015-08-13 12:06:52 +01:00
Manos Psychogyiopoulos
46151c6757
ensure variation data is_array
2015-08-13 13:32:26 +03:00
Manos Psychogyiopoulos
97ab635e71
introduce get_formatted_variation_attributes
2015-08-13 13:12:24 +03:00
Mike Jolley
8f759c8af1
Order variations by menu_order by fallback to ID.
2015-08-13 10:40:50 +01:00
Mike Jolley
d3e2217227
Allow errors with debug on
...
Closes #8805
2015-08-13 10:27:22 +01:00
Claudio Sanches
275849b5da
[2.4] Fixe order by user and sorting by total, closes #8803
2015-08-13 00:33:56 -03:00
George Stephanis
e10064d0fe
Revert back to passing in array values. We can indexBy in JS
2015-08-12 17:17:39 -04:00
Claudio Sanches
6d79f7f02b
Fixed default wc_lostpassword_url() args, closes #8800
2015-08-12 17:43:04 -03:00
George Stephanis
f77b77e335
New template for empty set.
2015-08-12 15:29:17 -04:00
George Stephanis
4e2229a6bf
Merge branch 'master' into issue/8587
2015-08-12 15:07:44 -04:00
George Stephanis
220550621a
Populate the search field value attribute
2015-08-12 14:38:25 -04:00
George Stephanis
3ee43646ae
Pass in the current page's base url to js for appending.
2015-08-12 14:18:49 -04:00
Mike Jolley
f8b539eb5e
Improved refund email events and woocommerce_order_fully_refunded hook.
...
Closes #8793
2015-08-12 19:01:05 +01:00
George Stephanis
4aedda5eb8
Indent the template file properly.
2015-08-12 13:52:04 -04:00
Mike Jolley
cbb89fa4b9
wc_get_product_variation_attributes should only get parent attributes which are for variations.
...
Closes #8796
2015-08-12 18:02:13 +01:00
George Stephanis
56218b0824
Add in a notification for unsaved changes.
2015-08-12 12:59:13 -04:00
George Stephanis
8dc2126718
Update the tablenav so the gotos are never out of range.
2015-08-12 12:59:12 -04:00
George Stephanis
837931f99a
Check for truthiness.
...
This avoids silliness where `’0’` evaluates to true. Just parse it as
an int and evaluate that.
2015-08-12 12:59:11 -04:00
George Stephanis
2a0951e4e5
Add more data attributes to the rows and fields.
2015-08-12 12:59:11 -04:00
George Stephanis
1a066ebbe0
Swap to associative array for model.
2015-08-12 12:59:11 -04:00
George Stephanis
ce7cb1f65d
Add a `beforeunload` event to prompt before leaving with unsaved changes.
2015-08-12 12:59:10 -04:00