Commit Graph

5702 Commits

Author SHA1 Message Date
Mike Jolley 948ba904de Merge pull request #9244 from franticpsyx/template_override_check_path
[2.4] System Report: Template version check path incorrect
2015-10-01 18:48:55 +02:00
Manos Psychogyiopoulos 4fc018a88b stray error_log 2015-10-01 19:27:43 +03:00
Mike Jolley d4fbe0e45c Use SKU for stock order notes
Fixes #9133
2015-10-01 18:13:37 +02:00
Mike Jolley 19db1a6b4f Add notes for manual email send
Closes #8902
2015-10-01 17:39:32 +02:00
Claudio Sanches 3a536ac8b7 Sanitize shipping method label/title, closes #9159 2015-10-01 17:17:45 +02:00
Mike Jolley 7b751dc622 Clean post cache after variation update
Closes #9173
2015-10-01 16:48:41 +02:00
Claudio Sanches 033f8636a7 Merge pull request #9258 from krautnerds/fix-status-update-order-comment
Add username on marking order status
2015-10-01 16:34:55 +02:00
Claudio Sanches 522a7f4c04 :P 2015-10-01 16:30:14 +02:00
Claudio Sanches 7c05671188 Added new actions to make easy add custom fields for variations, closes #8827 2015-10-01 16:30:02 +02:00
James Koster 018bcc9d2d hook the product category links in, instead of hard coding into the template. #8575 2015-10-01 15:28:57 +01:00
James Koster fe689d3d24 Let's not create template files for such simple code. #8575
Also removes pluggability of code that simply shouldn’t have any need
to be overwritten.
2015-10-01 15:20:05 +01:00
Florian Ludwig 2d39a91fdc Add username on marking order status
At the moment the status updates via the order list action buttons are
not linked to the correct user. Lets fix that :)
2015-10-01 16:15:29 +02:00
Claudio Sanches bb59b9aabb Merge pull request #9085 from woothemes/feature/wp-cli_support
WP-CLI support for WooCommerce
2015-10-01 16:14:30 +02:00
James Koster 9de9f87c17 product category title is now hooked in rather than hard-coded into template 2015-10-01 15:12:56 +01:00
Claudio Sanches b6bef31f27 :) 2015-10-01 16:10:25 +02:00
Claudio Sanches f6a5e48a59 Register all styles on admin before call #8488 2015-10-01 16:10:18 +02:00
James Koster 02ddb7fc4d product archive anchors are now hooked into templates rather than hard coded. #8575 2015-10-01 14:49:40 +01:00
Claudio Sanches 0966fedb12 Moved JS vendor libraries for our own directories #8488 2015-10-01 15:46:08 +02:00
Akeda Bagus 7cbc94a50f Added tool subcommand.
Currenly only `clear_transients` is available. We'll add more in the
next release.
2015-10-01 15:46:04 +02:00
Akeda Bagus 0eea6a434c Better wording for report command.
The command is not managing report, only show reports.
2015-10-01 15:34:37 +02:00
Claudio Sanches 1e5332dc07 Register all styles on frontend before call #8488 2015-10-01 15:31:05 +02:00
Akeda Bagus 7157b64588 Allow orders to be filtered by customer_id. 2015-10-01 15:20:18 +02:00
Akeda Bagus df34fa9396 Implement cli command for customer' orders. 2015-10-01 15:20:05 +02:00
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