Commit Graph

1449 Commits

Author SHA1 Message Date
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