Commit Graph

16877 Commits

Author SHA1 Message Date
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 fff214643d Update form-shipping.php 2014-04-10 13:45:11 +01:00
Andrew Benbow 200e558568 Update form-shipping.php 2014-04-10 13:45:08 +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
Andrew Benbow caa382a611 Update form-shipping.php 2014-04-10 13:44:55 +01:00
Andrew Benbow d0804490cd Update form-shipping.php
Add filter to allow needs_shipping() to be overridden, useful if you want to collect a shipping address for virtual products.

Allows a filter to be used as replacement for get_option('woocommerce_require_shipping_address')

Previous suggestion of add_filter('woocommerce_cart_needs_shipping', '__return_true'); is not suitable
2014-04-10 13:44:51 +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
Gregory K bb869562bd Fix: additional-information.php
- Do not display empty <h2> tag
- Removed unused globals
- WP code style
2014-04-10 13:41:23 +01:00
JDGrimes 58273603aa Check wc_checkout_params.is_checkout against string '1' instead of int 1
This was causing `’init_checkout’` not to be triggered on page load. I
noticed this when the taxes for an order weren’t being shown on the
checkout page until changing the billing address.

Introduced in b85b1ab03b
2014-04-10 13:40:55 +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
splashingpixels 493136170f orderby - skip adding hidden input of submit on a GET so JS can submit properly fixes #5221 2014-04-10 13:38:48 +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 9ddca77abd Fix apigen search 2014-04-10 13:32:58 +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
James Koster a4d754bbf7 tooltip max-width. closes #5304 2014-04-10 11:29:02 +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
Mike Jolley 40834e3267 Merge pull request #5299 from claudiosmweb/5298-validate-front-end-colors
Add validation when save the frontend styles
2014-04-09 10:55:26 +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 faa4aefbf5 Fix dashboard styles, and remove non-used styles 2014-04-08 11:15:05 +01:00
Mike Jolley 39b1ffe01c reset grouped products correctly to work with short codes 2014-04-08 10:29:51 +01:00
Mike Jolley af70da5ebb Remove nonce from comment form to prevent issues with caching 2014-04-08 09:37:01 +01:00