Commit Graph

1986 Commits

Author SHA1 Message Date
Mike Jolley 6fa57f707d Tweak reports query generator to reference table names
Fixes #5278
2014-04-10 13:57:02 +01:00
Mike Jolley b97181c08a get_image_id method + use in email template
Closes #5288
2014-04-10 13:56:56 +01:00
Mike Jolley f89147bd94 Remove nonce from comment form to prevent issues with caching 2014-04-10 13:55:23 +01:00
Gerhard 7ac9c39469 Fix _wc_session_expires autoloading 2014-04-10 13:54:07 +01:00
Mike Jolley cc682f15d9 Only show upgrade notices, and use transient cache
Closes #5211
2014-04-10 13:53:44 +01:00
Mike Jolley 5850b9329b Prevent notices on activation Closes #5216 2014-04-10 13:53:34 +01:00
Mike Jolley 8b59eb3bdb Delete term count transients after stock status change and trashed post
Closes #5286
2014-04-10 13:52:49 +01:00
Mike Jolley 99592a3efc cleaned up download handler, use network_site_url instead of network_admin_url for multisite 2014-04-10 13:52:33 +01:00
Mike Jolley c4c63982f9 During save_meta_boxes, only save for the "main" post being saved, not nested or subsequent save_post events
fixes #5229
2014-04-10 13:51:49 +01:00
Mike Jolley 01ee1089ec When hierarchy is off, only show children in the cat widget. Closes
#5245
2014-04-10 13:51:28 +01:00
Mike Jolley fc906b12d8 woocommerce_coupon_get_discount_amount filter in coupon class
Closes #5244
2014-04-10 13:50:52 +01:00
Mike Jolley 192c74eee6 Remove post_parent so grouped simple products are also returned
Fixes #5178
2014-04-10 13:50:36 +01:00
Mike Jolley 66a1b93fec Clean up labels and default cost to 0 for int shipping
Closes #5219
2014-04-10 13:50:17 +01:00
Mike Jolley b4d63270b6 Stay on checkout when removing coupon Closes #5274 2014-04-10 13:50:13 +01:00
Gregory Karpinsky 5d8ace5d81 Update class-wc-admin-duplicate-product.php
Initialize `$sql_query_sel` before loop - to avoid code validation warning.
2014-04-10 13:49:58 +01:00
Gregory Karpinsky 3ac0005eec Update class-wc-admin-duplicate-product.php
Corrected docblock for `dupe_link()`
2014-04-10 13:49:55 +01:00
Gregory Karpinsky 84e7c12095 Update class-wc-admin-duplicate-product.php
PHP Strict standards:  Only variables should be assigned by reference
2014-04-10 13:49:52 +01:00
Max Rice 7ae0715624 Allow query string fallback for REST API SSL auth
In some environments, the PHP_AUTH_USER/PW server vars are empty which
prevents SSL authentication from working properly. This commit allows
the use of a query string fallback (e.g.
`?consumer_key=123&consumer_secret=abc`) for providing credentials over
SSL.

Fixes #5207
2014-04-10 13:49:37 +01:00
Max Rice bde7b1cde9 Remove unnecessary OAuth code
The parameters provided to the API endpoints only contain the
parameters specified in the method signature so there’s no need to
strip out the OAuth params.
2014-04-10 13:49:25 +01:00
Remi Corson ed09cb7ff2 Removed break line and space 2014-04-10 13:49:19 +01:00
Remi Corson 6491f1da80 Optimized is_paying_customer() 2014-04-10 13:49:15 +01:00
Mike Jolley d43a48eb79 Clear featured transients when needed Closes #5254 2014-04-10 13:49:09 +01:00
Remi Corson 14267660da Added is_paying_customer() to easily check if a user is a WC customer:
Usage:

`
$customer = new WC_Customer();
$out      = 'Paying customer ? ';

if( $customer->is_paying_customer( 10 ) ) {
	$out .= "yes";
} else {
	$out .= "no";
}

echo $out;
`
2014-04-10 13:48:54 +01:00
Max Rice ca8e0380e5 API: double-encode percent symbols when normalizing parameters 2014-04-10 13:48:13 +01:00
Max Rice ba41a28654 API: normalize both key and value before calculating OAuth signature
The OAuth spec indicates that the full query string should be URL
encoded. The array_walk method does not change keys so when used with a
parameter like `filter[period]=week`, the key is not properly encoded.
This fixes that by properly encoding both the key and value.
2014-04-10 13:47:59 +01:00
Max Rice 3b26370117 code standards 2014-04-10 13:47:52 +01:00
Mike 3fb15a4e78 Change \WC_Order::add_order_note cap to edit_shop_order instead of manage_woocommerce 2014-04-10 13:47:47 +01:00
splashingpixels afc17dad40 myaccount registration added check for auto generate password option 2014-04-10 13:47:34 +01:00
Patrick Rauland ce2f2e1c3d adding spaces after text for title in local delivery 2014-04-10 13:47:17 +01:00
Patrick Rauland f9fafc7d16 using spaces after text 2014-04-10 13:47:13 +01:00
Manos Psychogyiopoulos d6f8ef13d0 Allow filtering order statuses in dashboard reports widget 2014-04-10 13:47:09 +01:00
Gregory Karpinsky 0402400043 Update html-admin-page-status-report.php
Use `$wpdb->db_version()` instead of `mysql_get_server_info()` deprecated in PHP 5.5
2014-04-10 13:46:47 +01:00
Mike Jolley e78323e1e4 Ensure _order_currency is set. Closes #5232 2014-04-10 13:46:28 +01:00
Mike Jolley 9e4d0b1114 Chunk option names in cleanup_sessions() Closes #5225 2014-04-10 13:46:20 +01:00
Patrick Rauland d15edfff15 updating coupon email restriction tool tip 2014-04-10 13:46:01 +01:00
Max Rice e739214e25 Use is_ssl() for get_woocommerce_api_url()
When accessing the API over OAuth for a site that has the checkout
forced over SSL, the OAuth string to sign is incorrect. This fixes that
by checking whether the current request is SSL when returning the api
URL
2014-04-10 13:45:56 +01:00
Andrew Benbow 5ceb59b28f Update class-wc-cart.php 2014-04-10 13:45:04 +01:00
Andrew Benbow 40fa2659ee Update class-wc-cart.php 2014-04-10 13:45:01 +01:00
Andrew Benbow df9a876e87 Update class-wc-cart.php 2014-04-10 13:44:58 +01:00
Mike Jolley 206feeabe8 When removing base taxes, round to precision. 2014-04-10 13:41:47 +01:00
Mike Jolley f9b223bc7a Check order exists when resuming on checkout 2014-04-10 13:41:35 +01:00
pauloiankoski dc2f6928eb Apply filters to $product_type
Apply filters to $product_type and we can set a default product type to new products.
2014-04-10 13:39:13 +01:00
Mike Jolley 39c574d201 Correctly round shipping + shipping tax together when passes the tax inclusive total to paypal 2014-04-10 13:37:21 +01:00
Mike Jolley a2f3bb97c1 Fix the SKU search logic so it works with other filters. Closes #5208 2014-04-10 13:37:01 +01:00
Andrew Benbow 92a62c4ae4 Resolve conflict 2014-04-10 13:34:46 +01:00
Mike Jolley d6f5a6f868 wp_kses_post for meta display in admin 2014-04-10 13:32:35 +01:00
profetes 23ecb9a2c5 WC API: can generate API keys for different user than the one that is making request 2014-04-10 13:28:00 +01:00
Mike Jolley 2192db9fca Add label explaining discount field Closes #5300 2014-04-09 15:58:22 +01:00
Mike Jolley 070aadeda0 Work out cart discount without tax amounts #5300 2014-04-09 15:50:17 +01:00
claudiosmweb 89772bf970 fixed some coding standards in includes/admin/settings/class-wc-settings-general.php 2014-04-08 19:11:33 -03:00
claudiosmweb a969952266 added validation when save the frontend colors, closes #5298 2014-04-08 19:08:04 -03:00
Mike Jolley f869e12aac [2.2] Missed one file for #5284 2014-04-08 16:29:29 +01:00
Mike Jolley 937db45913 [2.2] Merge ship to billing and billing only options
+ update options, update files to use new option + function Closes #5284
2014-04-08 16:28:27 +01:00
Mike Jolley e3cb3a4cc8 Tweak reports query generator to reference table names
Fixes #5278
2014-04-08 15:46:59 +01:00
Mike Jolley 94fb5e4aab Merge pull request #5292 from kloon/fix-session-autoloading
Fix _wc_session_expires autoloading
2014-04-08 15:39:09 +01:00
Mike Jolley 2a27663f1f get_image_id method + use in email template
Closes #5288
2014-04-08 15:02:11 +01:00
Mike Jolley af70da5ebb Remove nonce from comment form to prevent issues with caching 2014-04-08 09:37:01 +01:00
Gerhard daf4c4ff9f Fix _wc_session_expires autoloading 2014-04-08 09:35:04 +02:00
Mike Jolley 128eeb164c Only show upgrade notices, and use transient cache
Closes #5211
2014-04-07 16:39:19 +01:00
Mike Jolley 97c92bc7c8 Prevent notices on activation Closes #5216 2014-04-07 15:57:52 +01:00
Mike Jolley 324e17d85f [2.2] Allow spaces and use formatted postcodes for wildcard in local pickup
Fixes #5250. Should go in 2.2 since it could affect existing setup
codes.
2014-04-07 15:46:40 +01:00
Mike Jolley dc6c70cf77 Delete term count transients after stock status change and trashed post
Closes #5286
2014-04-07 15:16:54 +01:00
Mike Jolley e06906f81d cleaned up download handler, use network_site_url instead of network_admin_url for multisite 2014-04-07 15:09:11 +01:00
Mike Jolley 64c9f275b4 During save_meta_boxes, only save for the "main" post being saved, not nested or subsequent save_post events
fixes #5229
2014-04-07 14:15:51 +01:00
Mike Jolley ecbc6aac9c When hierarchy is off, only show children in the cat widget. Closes
#5245
2014-04-07 12:59:38 +01:00
Mike Jolley 24c9d8b2e4 woocommerce_coupon_get_discount_amount filter in coupon class
Closes #5244
2014-04-07 10:26:43 +01:00
Mike Jolley 08b94299d3 Remove post_parent so grouped simple products are also returned
Fixes #5178
2014-04-07 10:19:13 +01:00
Mike Jolley 392e1d57c0 Merge pull request #5210 from plprofetes/master
REST API: fix for generating API keys for different user
2014-04-07 10:16:47 +01:00
Mike Jolley 021a889e66 Merge pull request #5277 from maxrice/rest-api-fix-5207
Allow query string fallback for REST API SSL authentication
2014-04-07 10:13:55 +01:00
Mike Jolley eadedddd1c Merge pull request #5270 from maxrice/master
Normalize both key and value before generating OAuth signature
2014-04-07 10:13:10 +01:00
Mike Jolley 02a1735674 Clean up labels and default cost to 0 for int shipping
Closes #5219
2014-04-07 10:07:13 +01:00
Mike Jolley 09bf77c74b Stay on checkout when removing coupon Closes #5274 2014-04-07 09:51:12 +01:00
Mike Jolley 0dd30d6b89 Merge pull request #5282 from tivnet/patch-3
Update class-wc-admin-duplicate-product.php
2014-04-07 09:23:55 +01:00
Mike Jolley 9410bde762 Merge pull request #5281 from tivnet/patch-2
Update class-wc-admin-duplicate-product.php
2014-04-07 09:23:42 +01:00
Gregory Karpinsky 198f52d16e Update class-wc-admin-duplicate-product.php
Initialize `$sql_query_sel` before loop - to avoid code validation warning.
2014-04-05 13:16:46 -04:00
Gregory Karpinsky cad45b0cf3 Update class-wc-admin-duplicate-product.php
Corrected docblock for `dupe_link()`
2014-04-05 13:10:32 -04:00
Gregory Karpinsky 06ee47a611 Update class-wc-admin-duplicate-product.php
PHP Strict standards:  Only variables should be assigned by reference
2014-04-05 12:58:28 -04:00
Max Rice 09451855f2 Allow query string fallback for REST API SSL auth
In some environments, the PHP_AUTH_USER/PW server vars are empty which
prevents SSL authentication from working properly. This commit allows
the use of a query string fallback (e.g.
`?consumer_key=123&consumer_secret=abc`) for providing credentials over
SSL.

Fixes #5207
2014-04-04 14:24:14 -04:00
Max Rice 1dd24501f5 Remove unnecessary OAuth code
The parameters provided to the API endpoints only contain the
parameters specified in the method signature so there’s no need to
strip out the OAuth params.
2014-04-04 14:22:06 -04:00
Mike Jolley ec5abdd0f6 Merge pull request #5273 from corsonr/master
Added is_paying_customer() to easily check if a user is a WC customer
2014-04-04 14:23:53 +01:00
Remi Corson 7886a4d95d Removed break line and space 2014-04-04 15:23:15 +02:00
Remi Corson e475521a85 Optimized is_paying_customer() 2014-04-04 15:18:10 +02:00
Mike Jolley a569c9fd7d Clear featured transients when needed Closes #5254 2014-04-04 14:16:18 +01:00
Mike Jolley be7d2cffda Merge pull request #5267 from mgmartel/add-order-note-cap
Change capability to add order note to edit_shop_order
2014-04-04 13:59:40 +01:00
Mike Jolley 8e7cd1ff40 Merge pull request #5259 from splashingpixels/myaccount-registration
myaccount registration added check for auto generate password option
2014-04-04 13:58:44 +01:00
Mike Jolley 51f5108aa0 Merge pull request #5255 from tivnet/patch-1
Update html-admin-page-status-report.php
2014-04-04 13:54:12 +01:00
Mike Jolley 862613e45f Merge pull request #5256 from franticpsyx/dashboard_reports_widget
Allow filtering order statuses in dashboard reports widget
2014-04-04 13:52:42 +01:00
Remi Corson 94c93800b4 Added is_paying_customer() to easily check if a user is a WC customer:
Usage:

`
$customer = new WC_Customer();
$out      = 'Paying customer ? ';

if( $customer->is_paying_customer( 10 ) ) {
	$out .= "yes";
} else {
	$out .= "no";
}

echo $out;
`
2014-04-04 09:38:56 +02:00
Max Rice 1c437bdeb8 API: double-encode percent symbols when normalizing parameters 2014-04-03 16:56:26 -04:00
Max Rice 853520d40b API: normalize both key and value before calculating OAuth signature
The OAuth spec indicates that the full query string should be URL
encoded. The array_walk method does not change keys so when used with a
parameter like `filter[period]=week`, the key is not properly encoded.
This fixes that by properly encoding both the key and value.
2014-04-03 16:11:51 -04:00
Max Rice 9f463e4644 code standards 2014-04-03 16:10:08 -04:00
Mike 16463e339e Change \WC_Order::add_order_note cap to edit_shop_order instead of manage_woocommerce 2014-04-03 14:33:54 +02:00
splashingpixels ff5384714f myaccount registration added check for auto generate password option 2014-04-01 19:45:25 -07:00
Patrick Rauland ceef4bc528 adding spaces after text for title in local delivery 2014-04-01 16:58:45 -05:00
Patrick Rauland fd28f81147 using spaces after text 2014-04-01 16:55:36 -05:00
Manos Psychogyiopoulos 96daed0034 Allow filtering order statuses in dashboard reports widget 2014-04-01 22:35:57 +03:00
Gregory Karpinsky 464e7ed3a5 Update html-admin-page-status-report.php
Use `$wpdb->db_version()` instead of `mysql_get_server_info()` deprecated in PHP 5.5
2014-04-01 14:10:06 -04:00
Mike Jolley 342737907a Ensure _order_currency is set. Closes #5232 2014-04-01 15:33:01 +01:00
Mike Jolley 6deac5cf4b Chunk option names in cleanup_sessions() Closes #5225 2014-04-01 15:33:00 +01:00
Mike Jolley 6ba84559d8 Merge pull request #5248 from maxrice/master
Use is_ssl() for get_woocommerce_api_url()
2014-04-01 14:34:51 +01:00
Patrick Rauland 1db1a47cf5 updating coupon email restriction tool tip 2014-03-31 15:54:21 -05:00
Max Rice ebf7603a45 Use is_ssl() for get_woocommerce_api_url()
When accessing the API over OAuth for a site that has the checkout
forced over SSL, the OAuth string to sign is incorrect. This fixes that
by checking whether the current request is SSL when returning the api
URL
2014-03-31 16:22:17 -04:00
Mike Jolley c981bb56ca Merge pull request #5230 from ChromeOrange/master
show shipping form filter
2014-03-31 11:56:57 +01:00
Mike Jolley 24c2c845b7 When removing base taxes, round to precision. 2014-03-31 11:12:12 +01:00
Mike Jolley edf54ad0c8 Check order exists when resuming on checkout 2014-03-31 11:12:12 +01:00
Andrew Benbow b3fc8cbdf6 Update class-wc-cart.php 2014-03-28 14:40:56 +00:00
Andrew Benbow a8e941513c Update class-wc-cart.php 2014-03-28 14:10:53 +00:00
Andrew Benbow 290043b108 Update class-wc-cart.php 2014-03-28 10:41:17 +00:00
pauloiankoski fd5435f7ee Apply filters to $product_type
Apply filters to $product_type and we can set a default product type to new products.
2014-03-27 20:37:00 -03:00
Mike Jolley ebb6af921c Correctly round shipping + shipping tax together when passes the tax inclusive total to paypal 2014-03-27 12:31:48 +00:00
Mike Jolley 2fbb257926 Merge pull request #5206 from ChromeOrange/master
Order cancelled tweaks
2014-03-26 10:50:31 +00:00
Mike Jolley df8e54985c Fix the SKU search logic so it works with other filters. Closes #5208 2014-03-26 10:46:42 +00:00
Andrew Benbow e8bc26f51c Update class-wc-form-handler.php
Updated as per comments
2014-03-26 09:58:51 +00:00
Mike Jolley 2c0cf925dd wp_kses_post for meta display in admin 2014-03-26 09:43:14 +00:00
profetes 77a5b601ed WC API: can generate API keys for different user than the one that is making request 2014-03-25 17:22:48 +01:00
James Koster 80479d67a4 flat rate additional costs table 2014-03-25 14:10:42 +00:00
James Koster c5656ee991 flat rate additional costs table 2014-03-25 13:59:30 +00:00
Mike Jolley 59b48c2945 Possible workaround for @BFTrick's issue. 2014-03-25 13:40:58 +00:00
Mike Jolley 8f09dc1ae2 delete terms transient during recount. #5204 2014-03-25 13:40:55 +00:00
Mike Jolley 2f605e75e5 Brackets 2014-03-25 13:40:51 +00:00
Mike Jolley b7df01724c Don't use esc_attr for storage of meta key 2014-03-25 13:40:48 +00:00
Andrew Benbow d6782567a2 Order cancelled tweaks
Add filters for order cancelled message, change message class from
success to info and allow to be filtered
2014-03-25 12:10:08 +00:00
Mike Jolley a21f8a3d47 delete terms transient during recount. #5204 2014-03-25 11:55:57 +00:00
Mike Jolley dd0e026ae7 Possible workaround for @BFTrick's issue. 2014-03-25 11:36:54 +00:00
Mike Jolley 9c913de1f2 Brackets 2014-03-25 11:36:35 +00:00
Mike Jolley 8e60cd9554 Don't use esc_attr for storage of meta key 2014-03-24 13:53:40 +00:00
tamarazuk 2f47b7df48 Order items added through admin (ajax)
- Store variation data for order items added through the admin
- do 'woocommerce_ajax_add_order_item_meta' action only if $item_id exists
- fixed some indenting
2014-03-24 12:12:43 +00:00
claudiosmweb af89bb8252 becomes possible to translate the credit card form placeholders 2014-03-24 12:12:12 +00:00
bolderelements eb990d8b3b Update abstract-wc-email.php
wp_mail does return a bool just in case something goes wrong with the function so it might be nice to carry it through. While extending this class I thought it might be a good idea to double check everything I can.
2014-03-24 12:12:08 +00:00
vlinicx 27d940ea94 Update wc-core-functions.php
Adding a currency symbol to Croatian currency
2014-03-24 12:11:53 +00:00
Patrick Rauland c4201add98 fixing typo in product classes 2014-03-24 12:11:43 +00:00
Patrick Rauland 4cf8152602 fixing cool typo. see #5189 2014-03-24 12:11:39 +00:00
Md Ariful Haque Khan 900483ad87 Bangladeshi states (districts) list add and state label rename. 2014-03-24 12:11:25 +00:00
Brent Shepherd d4661d6623 Add wc_cart_totals_taxes_total_html()
Also introduces the new 'woocommerce_cart_totals_taxes_total_html' filter.
2014-03-24 12:10:41 +00:00
Brent Shepherd 16d935a2cb Add 'woocommerce_cart_taxes_total' filter 2014-03-24 12:10:37 +00:00
Mike Jolley 865c04c5cf Escape the change log contents when displaying it from wordpress.org 2014-03-24 12:10:10 +00:00
Mike Jolley 8815e2f93d Fix encoding issue with attribute values and move variation data to tooltip Closes #5169 2014-03-24 12:09:21 +00:00
Mike Jolley a720cc8ad4 WC()->api_request_url for PayPal and Mijireh Closes #5183 2014-03-24 12:08:45 +00:00
Mike Jolley 2b5351ae95 Related to #5041, there is not a way to retrieve these dynamic transient names and use delete_transient, so if using object caching we must flush 2014-03-24 12:07:29 +00:00
Mike Jolley 981ea3734a Refactored report transients to use fixed names based on the report classname. Allows use of delete_transient and Fixes #5041 2014-03-24 12:07:24 +00:00
Mike Jolley 7da02708ce Correct property #5041 2014-03-24 12:07:16 +00:00
Mike Jolley 985cef955a Remove break #5041 2014-03-24 12:07:13 +00:00
Mike Jolley 85e33a71ea Clear object cache for orders + products #5041 2014-03-24 12:07:10 +00:00
Mike Jolley bd93a0023a Merge pull request #5199 from tamarazuk/patch-1
Order items added through admin (ajax)
2014-03-24 10:54:49 +00:00
Mike Jolley 34f2170a47 Merge pull request #5198 from claudiosmweb/credit_card_form
Becomes possible to translate the credit card form placeholders
2014-03-24 10:47:10 +00:00
Mike Jolley a9df2eed00 Merge pull request #5188 from neconest/master
Bangladeshi states (districts) list add and state label rename.
2014-03-24 10:42:44 +00:00
Mike Jolley d9eff07669 Merge pull request #5195 from bolderelements/patch-1
Update abstract-wc-email.php
2014-03-24 10:38:47 +00:00
tamarazuk b58acfa970 Order items added through admin (ajax)
- Store variation data for order items added through the admin
- do 'woocommerce_ajax_add_order_item_meta' action only if $item_id exists
- fixed some indenting
2014-03-24 02:02:21 -04:00
claudiosmweb 7ba14b4bd7 becomes possible to translate the credit card form placeholders 2014-03-23 19:51:27 -03:00
bolderelements 4ce392c7f8 Update abstract-wc-email.php
wp_mail does return a bool just in case something goes wrong with the function so it might be nice to carry it through. While extending this class I thought it might be a good idea to double check everything I can.
2014-03-23 13:09:01 -04:00
Md Ariful Haque Khan 7c1377e5d2 Merge remote-tracking branch 'upstream/master' 2014-03-23 15:52:59 +06:00
vlinicx 61ac7fbc9a Update wc-core-functions.php
Adding a currency symbol to Croatian currency
2014-03-22 14:33:25 +01:00
Patrick Rauland abd8a36ddc fixing typo in product classes 2014-03-21 16:41:32 -05:00
Patrick Rauland e4296cc5f7 fixing cool typo. see #5189 2014-03-21 16:37:26 -05:00
Md Ariful Haque Khan 6c028259ee Bangladeshi states (districts) list add and state label rename. 2014-03-21 23:26:13 +06:00
Brent Shepherd c7e6a779cb Add wc_cart_totals_taxes_total_html()
Also introduces the new 'woocommerce_cart_totals_taxes_total_html' filter.
2014-03-20 17:54:42 -07:00
Brent Shepherd 49be7992e6 Add 'woocommerce_cart_taxes_total' filter 2014-03-20 17:54:18 -07:00
Mike Jolley 0dcfb797a7 Escape the change log contents when displaying it from wordpress.org 2014-03-20 16:04:33 +00:00
Mike Jolley 8007e4c102 Fix encoding issue with attribute values and move variation data to tooltip Closes #5169 2014-03-20 15:47:52 +00:00
Mike Jolley 3effa037b4 WC()->api_request_url for PayPal and Mijireh Closes #5183 2014-03-20 11:44:54 +00:00
Mike Jolley 66b44c5cfe Related to #5041, there is not a way to retrieve these dynamic transient names and use delete_transient, so if using object caching we must flush 2014-03-20 11:20:54 +00:00
Mike Jolley 8615d06a33 Refactored report transients to use fixed names based on the report classname. Allows use of delete_transient and Fixes #5041 2014-03-20 11:10:25 +00:00
Mike Jolley 3a54142299 URL decode attributes in admin so they display correctly (asian chars) 2014-03-20 10:03:09 +00:00
Mike Jolley 49a7d169ca Remove this from earlier as it breaks foreign chars 2014-03-20 10:02:35 +00:00
Mike Jolley 73b415f055 esc_attr isn't suitable for meta keys 2014-03-20 10:02:31 +00:00
Mike Jolley fb0948c2d0 Expanding line item_meta causes conflicts if attributes are named with things like 'name', 'type' or 'qty'. Added blacklist to exclude unsafe values. Closes #5100 2014-03-20 10:02:23 +00:00
Mike Jolley e9d48ea28e sync min and max prices for regular and sale prices so prices are displayed correctly when sale price is lower than a regular price of another variation 2014-03-20 10:01:51 +00:00
Mike Jolley debd45bc19 get_children visible only arg to hide out of stock items. Moved logic. 2014-03-20 10:01:33 +00:00
Mike Jolley 7810d78cde wc_session_use_secure_cookie filter 2014-03-20 10:01:26 +00:00
splashingpixels ac53f7fbac removed url decode from custom text attributes related to commit 7bce58e 2014-03-20 09:59:20 +00:00
Patrick Rauland 7e88c32ae7 fixing comma issue with free shipping coupon 2014-03-20 09:59:14 +00:00
Mike f82fb6b8b8 Remove comment exclusion in order notes meta box 2014-03-20 09:59:11 +00:00
Mike Jolley 3cf6d78859 URL decode not needed for custom text attribute names Closes #5155 2014-03-20 09:58:40 +00:00
monirulalom 36c06c2a3d Update wc-core-functions.php file
Update wc-core-functions.php file to add Bangladeshi currency and symbol.
2014-03-20 09:56:23 +00:00
Mike Jolley afde101e50 Don't hide empty - do it at walker level to maintain correct counts and hierarchy Closes #5028 2014-03-20 09:55:46 +00:00
Mike Jolley fa00577674 Fix term count corrections when a count is 0 #5028 2014-03-20 09:55:41 +00:00
Mike Jolley 6891768237 Hide empty at walker level #5028 2014-03-20 09:55:36 +00:00
Mike Jolley da970638d5 Convert states to strings for PayPal Closes #5078 2014-03-20 09:55:14 +00:00
Mike Jolley c39c4ca5a3 Fix term recount during WP callbacks Closes #5133 2014-03-20 09:54:44 +00:00
Mike Jolley 6dcc387978 Use is_purchasable to determine if a variation cart button is needed, and potentially show empty_price_html Closes #5137 2014-03-20 09:54:32 +00:00
Mike Jolley 2fed8e3f53 Fix sale flash for out of stock sale items Closes #5119 2014-03-20 09:52:19 +00:00
Mike Jolley 936c6e84b1 Correct discount calculation in admin when fees are involved. Closes #5103 2014-03-20 09:52:01 +00:00
Mike Jolley dd44ea643b Item meta list classes Closes #5083 2014-03-20 09:50:56 +00:00
Mike Jolley ccddd1df05 Filter the filename Closes #5074 2014-03-20 09:50:12 +00:00
Mike Jolley efc88fdb05 Move loop_end hook as it is generic and used in all WP loops 2014-03-20 09:49:35 +00:00
Gerhard a049c63123 Remove opening bracket from AED currency symbol 2014-03-20 09:48:19 +00:00
Coen Jacobs 24f47553e2 Updated expiry times for transients 2014-03-20 09:45:43 +00:00
thenbrent 1f9ec54e76 Add 'woocommerce_cart_totals_fee_html' filter 2014-03-20 09:44:47 +00:00
InoPlugs Webdesign 3e82ea460a Update class-wc-checkout.php
We need this hook to mark the fees our plugin (additional fee based on gateway) adds to the the order. Otherwise we can't tell if a fee was added by the user (Add fee button), by another plugin or by our plugin.
2014-03-20 09:41:45 +00:00
justinstern d11b0e857d Don't trailingslash Order Cancel URLs with a Query String
With non-pretty permalinks enabled, this was producing a URI like
http://example.com/?page_id=7/  That final unnecessary trailing slash
messes up some redirect gateways that are passed the cancel URL
2014-03-20 09:40:26 +00:00
Andrew Benbow b3335d5521 Update class-wc-gateway-paypal.php
modify currency error message to include both sent and returned currencies for comparison
2014-03-20 09:40:14 +00:00
JustinSainton 7e871109e6 Filter JSON search customers query
Because the json_search_customer_name action is in the scope of $this, and there's no instance of it to allow remove_action() to play nicely with, it's really difficult to modify this query.  And, unfortunately, it's quite non-performant on large user tables.

One possible option would be to allow users to filter this query directly.  This PR reflects that approach.

For reference: https://gist.github.com/curtismchale/9470986, #5095
2014-03-20 09:39:29 +00:00
crazyscience 4498395f2a Fix for Issue #3367
Fixed a bug where the application attempts to schedule an event using a function name rather than a hook name
2014-03-20 09:24:41 +00:00
Coen Jacobs 47e8a76488 set_transient calls should have expiration to prevent autoloading 2014-03-19 16:04:03 +00:00
Mike Jolley eee61a9d1a URL decode attributes in admin so they display correctly (asian chars) 2014-03-19 15:54:26 +00:00
Mike Jolley ed4f283627 Remove this from earlier as it breaks foreign chars 2014-03-19 15:32:07 +00:00
Mike Jolley 2d5d64dbd7 Merge pull request #5173 from splashingpixels/encoding
removed url decode from custom text attributes related to commit 7bce58e
2014-03-19 15:31:33 +00:00
Mike Jolley bf30244791 Merge pull request #5172 from BFTrick/free-ship-coupon
An Extra Comma Appears When Using A Coupon That Gives Free Shipping
2014-03-19 15:00:29 +00:00
Mike Jolley 6355a0c54a esc_attr isn't suitable for meta keys 2014-03-19 12:58:39 +00:00
Mike Jolley 2f9860c583 Expanding line item_meta causes conflicts if attributes are named with things like 'name', 'type' or 'qty'. Added blacklist to exclude unsafe values. Closes #5100 2014-03-19 12:58:39 +00:00
Mike Jolley f09063b1fd Merge pull request #5170 from mgmartel/order-comments-caps
Remove comment exclusion in order notes meta box
2014-03-19 10:57:07 +00:00
Mike Jolley 51482579d1 sync min and max prices for regular and sale prices so prices are displayed correctly when sale price is lower than a regular price of another variation 2014-03-19 10:51:07 +00:00
Mike Jolley 7f7dae0629 get_children visible only arg to hide out of stock items. Moved logic. 2014-03-19 10:06:13 +00:00
Mike Jolley b1df70f17e wc_session_use_secure_cookie filter 2014-03-19 09:16:28 +00:00
splashingpixels c7bb4f0bbb removed url decode from custom text attributes related to commit 7bce58e 2014-03-18 15:11:43 -07:00
Patrick Rauland f7a63f0ae8 fixing comma issue with free shipping coupon 2014-03-18 16:29:15 -05:00
Mike 5a19abe48b Remove comment exclusion in order notes meta box 2014-03-18 19:49:15 +02:00
Mike Jolley 7bce58e9a1 URL decode not needed for custom text attribute names Closes #5155 2014-03-18 11:36:38 +00:00
Mike Jolley 29da66f4e4 Merge pull request #5154 from monirulalom/patch-1
Update wc-core-functions.php file
2014-03-18 11:21:41 +00:00
Mike Jolley 9d1cb8316f Correct property #5041 2014-03-18 11:18:35 +00:00
Mike Jolley b366523c2c Remove break #5041 2014-03-18 11:10:50 +00:00
Mike Jolley 251b8b411f Clear object cache for orders + products #5041 2014-03-18 11:09:56 +00:00
monirulalom 7ea71912a0 Update wc-core-functions.php file
Update wc-core-functions.php file to add Bangladeshi currency and symbol.
2014-03-18 00:33:08 +06:00
Mike Jolley 95f4be04f9 Don't hide empty - do it at walker level to maintain correct counts and hierarchy Closes #5028 2014-03-17 16:52:24 +00:00
Mike Jolley c4099ab136 Fix term count corrections when a count is 0 #5028 2014-03-17 16:52:06 +00:00
Mike Jolley d9887bebbb Hide empty at walker level #5028 2014-03-17 16:51:34 +00:00
Mike Jolley 8d33594e6a Convert states to strings for PayPal Closes #5078 2014-03-17 15:23:11 +00:00
Mike Jolley b47e73b5a6 Fix term recount during WP callbacks Closes #5133 2014-03-17 14:38:09 +00:00
Mike Jolley b321d6297b Use is_purchasable to determine if a variation cart button is needed, and potentially show empty_price_html Closes #5137 2014-03-17 12:12:10 +00:00
Mike Jolley eaa2033570 Merge pull request #5097 from JustinSainton/patch-3
Filter JSON search customers query
2014-03-14 14:55:04 +00:00
Mike Jolley 7f417c0e8e Fix sale flash for out of stock sale items Closes #5119 2014-03-14 13:41:25 +00:00
Mike Jolley abfafa7ce3 Correct discount calculation in admin when fees are involved. Closes #5103 2014-03-14 13:20:59 +00:00
Mike Jolley ad5f510979 Item meta list classes Closes #5083 2014-03-14 12:40:55 +00:00
Mike Jolley cf50b4977d Filter the filename Closes #5074 2014-03-14 10:04:41 +00:00
sparkweb 1280d6d6ff Removing ordering code from orders
This code got moved to the resources file.
2014-03-13 11:14:08 -06:00
sparkweb d40f773e77 REST API: allow ordering change 2014-03-13 11:08:36 -06:00
Mike Jolley adc604e0e2 Move loop_end hook as it is generic and used in all WP loops 2014-03-13 13:07:47 +00:00
sparkweb 25900f9976 Allow reordering of the order list with the REST api 2014-03-12 23:47:42 -06:00
Mike Jolley c27a5a3f4d Merge pull request #5082 from crazyscience/patch-2
Fix for Issue #3367
2014-03-12 14:37:40 +00:00
Gerhard 37ed91cedf Remove opening bracket from AED currency symbol 2014-03-12 15:50:51 +02:00
Mike Jolley b160a00464 Pass args through for deprecated function Closes #5087 2014-03-12 14:38:03 +01:00
Mike Jolley 26b5ffa3d0 Only append generator tag on HTML pages Closes #5113 2014-03-12 14:38:03 +01:00
Mike Jolley 9a3b796bf4 Pass args through for deprecated function Closes #5087 2014-03-12 13:17:53 +00:00
Coen Jacobs fa089f7c0d Merge pull request #5077 from woothemes/transient-expiration
set_transient calls should have expiration to prevent autoloading
2014-03-12 13:02:42 +01:00
Coen Jacobs 3617316357 Updated expiry times for transients 2014-03-12 12:58:41 +01:00
Mike Jolley 49b8ad4378 Only append generator tag on HTML pages Closes #5113 2014-03-12 11:54:02 +00:00
Mike Jolley 8523fe8f34 Merge pull request #5114 from thenbrent/woocommerce_cart_totals_fee_html_filter
Add 'woocommerce_cart_totals_fee_html' filter
2014-03-12 11:35:43 +00:00
Mike Jolley 71bcef64a1 Merge pull request #5104 from InoPlugs/patch-2
Update class-wc-checkout.php
2014-03-12 11:34:29 +00:00
thenbrent 18efa7341a Add 'woocommerce_cart_totals_fee_html' filter 2014-03-12 21:11:22 +10:00
InoPlugs Webdesign a284d7fe69 Update class-wc-checkout.php
We need this hook to mark the fees our plugin (additional fee based on gateway) adds to the the order. Otherwise we can't tell if a fee was added by the user (Add fee button), by another plugin or by our plugin.
2014-03-11 19:48:51 +01:00
justinstern 6dfce64e47 Don't trailingslash Order Cancel URLs with a Query String
With non-pretty permalinks enabled, this was producing a URI like
http://example.com/?page_id=7/  That final unnecessary trailing slash
messes up some redirect gateways that are passed the cancel URL
2014-03-11 00:04:49 -04:00
Andrew Benbow 2f5fb72a9c Update class-wc-gateway-paypal.php
modify currency error message to include both sent and returned currencies for comparison
2014-03-10 23:23:30 +00:00
JustinSainton e91ca49b6d Filter JSON search customers query
Because the json_search_customer_name action is in the scope of $this, and there's no instance of it to allow remove_action() to play nicely with, it's really difficult to modify this query.  And, unfortunately, it's quite non-performant on large user tables.

One possible option would be to allow users to filter this query directly.  This PR reflects that approach.

For reference: https://gist.github.com/curtismchale/9470986, #5095
2014-03-10 14:54:27 -07:00
crazyscience 9898aee867 Fix for Issue #3367
Fixed a bug where the application attempts to schedule an event using a function name rather than a hook name
2014-03-07 11:17:11 -08:00
Coen Jacobs 03163c54b0 set_transient calls should have expiration to prevent autoloading 2014-03-07 09:29:01 +01:00
Mike Jolley fbeb3bc822 Update LESS compiler and less files #5070 2014-03-06 17:29:52 +01:00
Mike Jolley 90914cc3c8 Update LESS compiler and less files #5070 2014-03-06 16:23:43 +00:00
splashingpixels 7a28434ab4 get_related fixed tags OR query not excluding product ID 2014-03-06 16:27:13 +01:00
Mike Jolley a955a5ba5d Fallback for add ons page loading 2014-03-06 16:26:47 +01:00
Mike Jolley 7aac055895 When getting downloadable files, check access_expires too Closes #5060 2014-03-06 16:26:47 +01:00
Mike Jolley e2ea31fc94 pedantic nonce checking 2014-03-06 16:26:47 +01:00
Mike Jolley d303e5d072 When dealing with fixed_product discounts, when doing it for the line, multiple by product qty Closes #5054 2014-03-06 16:26:47 +01:00
Mike Jolley 2c13c5c24e Fix variation price display by checking if a variation is actually stock managed before comparing to stock amount Closes #5059 2014-03-06 16:26:47 +01:00
Mike Jolley 6e466d4fdb Set default for $plain_text variable. Closes #5051 2014-03-06 16:26:47 +01:00
Mike Jolley c3d5111c8d Check existence of nonce Closes #5050 2014-03-06 16:26:47 +01:00
Mike Jolley 156098edb9 Fallback for add ons page loading 2014-03-06 15:25:05 +00:00
Mike Jolley 9068da2ece When getting downloadable files, check access_expires too Closes #5060 2014-03-06 14:35:25 +00:00
Mike Jolley 88c666968e Merge pull request #5043 from splashingpixels/related-products
get_related fixed tags OR query not excluding product ID
2014-03-06 13:26:26 +00:00
Mike Jolley a553fd4956 pedantic nonce checking 2014-03-06 13:11:20 +00:00
Mike Jolley 24e884a480 When dealing with fixed_product discounts, when doing it for the line, multiple by product qty Closes #5054 2014-03-06 12:29:25 +00:00
Mike Jolley ba466b3de9 Fix variation price display by checking if a variation is actually stock managed before comparing to stock amount Closes #5059 2014-03-06 12:07:28 +00:00
Mike Jolley 8971dc0d92 Set default for $plain_text variable. Closes #5051 2014-03-06 11:57:47 +00:00
Mike Jolley d42bb7a285 Check existence of nonce Closes #5050 2014-03-06 11:37:48 +00:00
Gerhard 0463516020 Remove duplicate coupon type check 2014-03-06 10:08:27 +02:00
Gerhard 3b0c541acf Send http status 201 when coupon created. 2014-03-06 09:59:28 +02:00
claudiosmweb 2adacc742a fixed the status for create new customers via api 2014-03-06 04:28:42 -03:00
Gerhard ae85e64b2b Edit coupon, save product ID's in comma separates values as per core 2014-03-06 08:52:34 +02:00
Gerhard 518a8cffb2 Save product ID's as comma separated values like core does it 2014-03-06 08:51:00 +02:00
Gerhard 1b1c13349b Do not url decode the body data, just add it. See https://oauth.googlecode.com/svn/spec/ext/body_hash/1.0/oauth-bodyhash.html 2014-03-06 08:42:05 +02:00
Gerhard 8e0a267a84 Remove implode function 2014-03-06 08:10:08 +02:00
Gerhard d5171854a1 edit coupon, change comma separated data structures to arrays 2014-03-06 07:59:10 +02:00
Gerhard 6ddbc7e6ee Change comma separate data to arrays 2014-03-06 07:55:49 +02:00
Gerhard 88d6e064fa Add missing bracket 2014-03-06 07:50:05 +02:00
Gerhard 7e73f621c8 Add coupon type check when adding new coupon 2014-03-06 07:49:01 +02:00
Gerhard d278896d31 Fix route comments, moved coupon code filter and remove wc_clean around it, check for valid coupon types. 2014-03-06 07:45:32 +02:00
claudiosmweb e6755972b0 fixed the inline documentation 2014-03-05 14:24:47 -03:00
Mike Jolley bfb32b9630 Suppress errors in download handler Closes #5042 2014-03-05 11:04:18 +01:00
Mike Jolley fb20fc87b6 Use woocommerce_notify_no_stock_amount not 0, Closes #5035 2014-03-05 11:04:18 +01:00
Mike Jolley 914308765e Recoded set_stock to only make a variable product out of stock if all variations are stock managed, to to resync prices after stock changes #5035 2014-03-05 11:04:18 +01:00
Mike Jolley 676a67bffb Updated sync logic to exclude hidden and out of stock variations from the price display #5035 2014-03-05 11:04:18 +01:00
Mike Jolley fa7629e8b8 Corrected the "Show Siblings and Children Only" queries Closes #5028 2014-03-05 11:04:18 +01:00
Patrick Rauland b6d54a8ebe returning false instead of array for countries without states 2014-03-05 11:04:18 +01:00
Mike Jolley f44a4bc9d9 Made woocommerce_update_cart_action_cart_updated a filter which can return true or false to recalc totals Closes #4905
Conflicts:
	includes/class-wc-form-handler.php
2014-03-05 11:04:14 +01:00
Mike Jolley 84a42f16cb Add context to strings #4986 2014-03-05 11:02:53 +01:00
Mike Jolley 630eb61203 Later hook for template redirect and the_post Closes #4984 2014-03-05 11:02:53 +01:00
Mike Jolley bb9299fa0c Change the save order so email data is correct for manual orders Closes #4995 2014-03-05 11:02:53 +01:00
Mike Jolley bf8f45fbc9 Correctly recompile scripts on update. Frontend css option no longer exists Closes #5014 2014-03-05 11:02:53 +01:00
Mike Jolley e81c018e60 wc_get_endpoint_url - added support for permalinks containing a query string Closes #5016 2014-03-05 10:58:36 +01:00
splashingpixels 5d96b666f1 shop order - fixes non object error on comments when order is in the trash 2014-03-05 10:58:36 +01:00
splashingpixels 8b8fe715b6 wc_get_product_ids_on_sale should never return post id of 0 fixes #5002 2014-03-05 10:58:36 +01:00
claudiosmweb 0b08814227 improved the bacs email instructions
Conflicts:
	includes/gateways/bacs/class-wc-gateway-bacs.php
2014-03-05 10:58:30 +01:00
claudiosmweb 1aa9840856 forced end of line in bank_details method to fix the #4999
Conflicts:
	includes/gateways/bacs/class-wc-gateway-bacs.php
2014-03-05 10:57:55 +01:00
Patrick Rauland 74755555f5 adding plain text email flag to cheque 2014-03-05 10:57:02 +01:00
Patrick Rauland d3476b8669 adding plain text email flag to bacs 2014-03-05 10:57:02 +01:00
Patrick Rauland afc1c1e566 adding wordpress php formatting" 2014-03-05 10:57:02 +01:00
Mike Jolley 10190ab177 Ensure attributes exist 2014-03-05 10:57:02 +01:00
Mike Jolley f683c29e66 Fix category widget ordering Closes #4971 2014-03-05 10:57:02 +01:00
Mike Jolley 508854effe Fix reports by using strings - int's have a max. Closes #4904 2014-03-05 10:56:23 +01:00
Mike Jolley f1189f5aac Only show the relevant updates in the notices Closes #4977 2014-03-05 10:56:23 +01:00
Mike Jolley 5448e1bedc Fix strict standards Closes #4980 2014-03-05 10:56:23 +01:00