Mike Jolley
cb61f703e6
Don't sanitise rate ID - breaks utf8 chars
...
Fixes #5376
2014-04-29 15:20:49 +01:00
Mike Jolley
85ccd2a788
Added brackets
2014-04-29 15:20:46 +01:00
Mike Jolley
739e23ec20
1 filter rather than 2 Closes #5361
2014-04-29 15:20:42 +01:00
Mike Jolley
1f8da71703
Abstract product constructor
...
Check for numeric $product, and expand the checking to see if its
passed a post object. Fixes #5341
2014-04-29 15:20:13 +01:00
claudiosmweb
0cc98a740a
improved the get_order_total() method
2014-04-29 15:17:53 +01:00
claudiosmweb
aeecccce19
added method to check if order needs shipping in "pay for order" page
2014-04-29 15:17:49 +01:00
Mike Jolley
76df3d6e2c
[2.2] Hide COD for virtual orders (no shipping) Closes #5369
2014-04-29 15:17:30 +01:00
claudiosmweb
67e29eade6
removed not defined $wp variable in favor to get_query_var() function
2014-04-29 15:16:08 +01:00
claudiosmweb
4f11effbcd
updated the method to get the order id from "pay for order" page
2014-04-29 15:16:05 +01:00
claudiosmweb
e24d6b247b
updated the WC_Payment_Gateway class to set a maximum transaction amount, closes #5237
2014-04-29 15:16:02 +01:00
Mike Jolley
634a93a936
Ignore variation stock if disabled globally Closes #5370
2014-04-29 15:10:48 +01:00
Mike Jolley
be360e3e02
Recount true when recounting terms Fixes #5320
2014-04-29 15:10:28 +01:00
Mike Jolley
45f9954c10
Let get_file get the first file if no ID is defined
...
#5296
2014-04-29 15:10:21 +01:00
Mike Jolley
01e10b75c8
Allow saving no downloads, if unset
...
#5296
2014-04-29 15:10:12 +01:00
Mike Jolley
005c24a7c9
Check has_file when sending order emails for downloadables
...
Fixes #5296
2014-04-29 15:09:28 +01:00
Mike Jolley
afafc066eb
typecast $used_by to array in case its not set. Closes #5350
2014-04-29 15:09:17 +01:00
Mike Jolley
9be6b3635c
If billing email is not set and user ID is set, use email
...
Fixes #5356
2014-04-29 15:08:23 +01:00
Mike Jolley
7895857d32
URL decode when viewing order attributes to prevent taxonomies not being found
...
Closes #5315
2014-04-29 15:07:45 +01:00
Mike Jolley
2802ded47e
Change label and add description Closes #4698
2014-04-29 15:07:06 +01:00
Max Rice
7e2fa1bbd6
Clear cached API reports when deleting shop order transients
2014-04-29 15:05:43 +01:00
Remi Corson
17abdb223a
fixed incorrect order received endpoit tooltip
2014-04-29 15:03:22 +01:00
splashingpixels
902e7e2506
fixed my account downloadables out of order
2014-04-29 15:02:51 +01:00
Akeda Bagus
86de4e10e1
Typo fix.
2014-04-29 15:02:43 +01:00
Christian Thomas
ede8bc1a2a
Update class-wc-emails.php
...
Check for a value against each meta item before outputting.
2014-04-29 15:02:38 +01:00
Akeda Bagus
e4a959e397
Removes unused block and var.
...
There's duplicate block that does the same thing, but assigning to different variable.
On the end only the last variable is used, which is `$username`.
2014-04-29 15:02:29 +01:00
claudiosmweb
92707eaf55
fixed coding standards in includes/admin/post-types/class-wc-admin-cpt-product.php
2014-04-29 15:02:03 +01:00
claudiosmweb
8ae788f73c
added method to stop save duplicate sku in quick edit
2014-04-29 15:01:32 +01:00
splashingpixels
8f5a98583a
removed wc_clean/sanitize_text_field not needed. handled by wp core functions fixes #5318
2014-04-29 15:01:21 +01:00
Bass Jobsen
06af53bd8c
Update class-wc-frontend-scripts.php
...
See also https://github.com/bassjobsen/wp-defer-loading/issues/14 prettyPhoto-init is not only dependent of jquery, but also of prettyPhoto. The dependency of prettyPhoto is not set.
2014-04-29 15:00:46 +01:00
Max Rice
0e127a3e10
Update REST API documentation link
2014-04-29 14:59:12 +01:00
Mike Jolley
64ebb7c0eb
Prevent duplicate admin menu items Closes #5380
2014-04-29 14:03:16 +01:00
Mike Jolley
116476c45b
Merge pull request #5390 from jjeaton/locate-template-comment
...
Update comment to reflect that parameter template_name for wc_get/locate...
2014-04-29 12:22:36 +01:00
Josh Eaton
3d8daf7054
Update comment to reflect that parameter template_name for wc_get/locate_template() only accepts strings
...
Fixes #5389
2014-04-28 16:04:21 -04:00
mkayan-wakefly
84f531f848
Update class-wc-checkout.php
...
Recalculating the cart totals, in the event a user registers during checkout and in doing so qualifies for any discounts
2014-04-28 14:20:45 -04:00
Mike Jolley
746b79a49d
Merge pull request #5384 from tamarazuk/patch-1
...
Add action filter in inventory product data
2014-04-28 16:01:35 +01:00
Mike Jolley
3e1d5feaf3
Merge pull request #5353 from tamarazuk/backorder-variations
...
Backorders at variation level
2014-04-28 15:27:36 +01:00
splashingpixels
945d4bedc6
gateway COD added instructions to email closes #5385
2014-04-27 21:17:40 -07:00
tamarazuk
44d197cde0
Another action hook in Inventory product data tab
...
allow plugins to create a new options_group in this tab
2014-04-27 19:25:07 -04:00
tamarazuk
47baf952e6
Add action filter in inventory product data
...
Allows plugins to add meta fields after stock status/backorders even if woocommerce_manage_stock is turned off.
2014-04-27 16:18:58 -04:00
Mike Jolley
ca9955fa9a
Update stock amounts with DB queries Closes #5367
...
@claudiosmweb and @coenjacobs please review
2014-04-25 15:28:02 +01:00
Mike Jolley
bf553381b9
Merge pull request #5374 from claudiosmweb/fix-cod-in-pay-for-order-page
...
Improved the COD
2014-04-25 12:34:14 +01:00
Mike Jolley
3d8f7963df
Update abstract docblock
2014-04-25 12:33:14 +01:00
Mike Jolley
34db5d68b6
Don't sanitise rate ID - breaks utf8 chars
...
Fixes #5376
2014-04-25 12:31:58 +01:00
Mike Jolley
d168686478
Added brackets
2014-04-25 12:31:58 +01:00
Mike Jolley
cd4bf515b7
Merge pull request #5375 from claudiosmweb/4820-feature-translate-edit-address-slugs
...
Make possible to translate the edit-address endpoint slugs
2014-04-25 10:46:14 +01:00
Mike Jolley
02acbfa07e
1 filter rather than 2 Closes #5361
2014-04-25 10:43:30 +01:00
Mike Jolley
630eeb4945
Merge pull request #5373 from claudiosmweb/5237-feature-max-transaction-amount
...
Feature maximum transaction amount for payment gateways
2014-04-25 10:20:54 +01:00
Mike Jolley
0e1fcbda64
Abstract product constructor
...
Check for numeric $product, and expand the checking to see if its
passed a post object. Fixes #5341
2014-04-25 10:19:00 +01:00
claudiosmweb
79a8986f06
added the possibility to translate the edit-address endpoint slugs, closes #4820
2014-04-24 18:18:41 -03:00
claudiosmweb
fe467282cd
improved the get_order_total() method
2014-04-24 15:49:41 -03:00
claudiosmweb
d7e26d993c
added method to check if order needs shipping in "pay for order" page
2014-04-24 15:33:14 -03:00
claudiosmweb
64a40c8657
removed not defined $wp variable in favor to get_query_var() function
2014-04-24 15:03:33 -03:00
claudiosmweb
4ac0b28537
updated the method to get the order id from "pay for order" page
2014-04-24 14:52:17 -03:00
claudiosmweb
47d14e9df3
updated the WC_Payment_Gateway class to set a maximum transaction amount, closes #5237
2014-04-24 14:39:20 -03:00
Mike Jolley
3d584bc09a
Ignore variation stock if disabled globally Closes #5370
2014-04-24 16:44:01 +01:00
Mike Jolley
6efbf89cd3
[2.2] Hide COD for virtual orders (no shipping) Closes #5369
2014-04-24 16:37:31 +01:00
Mike Jolley
558a7bbe25
Recount true when recounting terms Fixes #5320
2014-04-24 16:09:03 +01:00
Mike Jolley
9c37d83f11
Let get_file get the first file if no ID is defined
...
#5296
2014-04-24 16:00:35 +01:00
Mike Jolley
5862bfb2fe
Allow saving no downloads, if unset
...
#5296
2014-04-24 16:00:17 +01:00
Mike Jolley
9b873093eb
Check has_file when sending order emails for downloadables
...
Fixes #5296
2014-04-24 16:00:01 +01:00
Mike Jolley
a6a65a2a9d
typecast $used_by to array in case its not set. Closes #5350
2014-04-24 15:26:38 +01:00
Mike Jolley
bf0fafa17b
If billing email is not set and user ID is set, use email
...
Fixes #5356
2014-04-24 14:45:57 +01:00
Mike Jolley
a6a44a3959
URL decode when viewing order attributes to prevent taxonomies not being found
...
Closes #5315
2014-04-23 16:24:05 +01:00
Mike Jolley
c09f710775
Merge pull request #5334 from ragulka/valid-order-statuses-improvements
...
Valid order statuses improvements
2014-04-23 15:07:15 +01:00
Mike Jolley
247bd15f68
Change label and add description Closes #4698
2014-04-23 14:24:20 +01:00
Mike Jolley
e7898f8670
[2.2] Protect admins from shop managers
...
Closes #5322
2014-04-23 14:18:21 +01:00
Mike Jolley
45f1c8a40f
Merge pull request #5359 from splashingpixels/feature-edit-password
...
added a check for current password on password change closes #5177
2014-04-23 11:39:01 +01:00
Mike Jolley
c24ca386cc
Template cleanup
2014-04-23 11:37:05 +01:00
Mike Jolley
433b8c1d41
Template cleanup
2014-04-23 11:35:43 +01:00
splashingpixels
fde72164a4
added a check for current password on password change closes #5177
2014-04-22 12:01:57 -07:00
Max Rice
f5d3d1d74f
Clear cached API reports when deleting shop order transients
2014-04-22 15:01:08 -04:00
Mike Jolley
cae3148d55
Merge pull request #5342 from tivnet/patch-2
...
Update class-wc-admin-cpt-product.php
2014-04-22 16:56:10 +01:00
Mike Jolley
53d10f8c7f
Merge pull request #5344 from tivnet/patch-3
...
Docblock fix: wc_product_post_type_link
2014-04-22 16:49:56 +01:00
Mike Jolley
1cf3f3e73d
Merge pull request #5319 from splashingpixels/passwords
...
removed wc_clean/sanitize_text_field not needed. handled by wp core func...
2014-04-22 16:46:40 +01:00
Mike Jolley
dbe99502bb
Merge pull request #5331 from corsonr/settings-tooltip
...
fixed incorrect "order received" endpoint tooltip
2014-04-22 16:34:50 +01:00
Mike Jolley
49f452928a
Merge pull request #5330 from splashingpixels/downloads-order-my-account
...
fixed my account downloadables out of order
2014-04-22 16:34:27 +01:00
Mike Jolley
6572caa1a0
Merge pull request #5326 from christian-thomas/patch-1
...
Update class-wc-emails.php
2014-04-22 16:23:38 +01:00
Mike Jolley
5274599e11
Merge pull request #5325 from gedex/refactor_cpt-shop_order_custom_columns
...
Removes unused block and var.
2014-04-22 16:23:18 +01:00
Mike Jolley
534579f5ad
Merge pull request #5327 from gedex/typo-fix
...
Typo fix.
2014-04-22 16:21:31 +01:00
Mike Jolley
9b58f80547
Merge pull request #5321 from claudiosmweb/fix-quick-edit-duplicate-sku
...
Prevent duplicate sku when edit product using quick edit
2014-04-22 16:18:02 +01:00
Mike Jolley
8dab698f55
Merge pull request #5317 from bassjobsen/patch-3
...
Update class-wc-frontend-scripts.php
2014-04-22 16:17:02 +01:00
Tamara Zuk
7ba3089909
Backorders at variation level
...
Added a new select metabox for variations allowing users to control
backorders at the variation level.
Might need more testing.
ref: #5351
2014-04-21 21:13:13 -04:00
Gregory Karpinsky
424954743e
Docblock fix: wc_product_post_type_link
2014-04-19 09:44:55 -04:00
Gregory Karpinsky
cac847c068
Update html-bulk-edit-product.php
...
The view part of "Sold Individually" bulk edit
2014-04-18 16:16:22 -04:00
Gregory Karpinsky
a45061b456
Update class-wc-admin-cpt-product.php
...
To handle bulk edit of "Sold Individually".
(The view part will follow in the next edit)
2014-04-18 16:13:13 -04:00
Illimar Tambek
f07ff6acb5
Introduce `woocommerce_valid_order_statuses_for_payment_complete` filter
...
Since it's possible to filter the valid order statuses for payments and cancels,
it only makes sense to be able to do the same when checking which statuses
are valid for completing a payment.
2014-04-17 19:28:52 +03:00
Illimar Tambek
cbfd17437c
Use `woocommerce_valid_order_statuses_for_payment` in `pay_action` too
...
Even though it was possible to filter the statuses in my-order.php and other places,
it was not possible in the actual pay action.
2014-04-17 19:27:39 +03:00
Remi Corson
7e955ba1f9
fixed incorrect order received endpoit tooltip
2014-04-17 11:03:47 +02:00
splashingpixels
c5deab6fe6
fixed my account downloadables out of order
2014-04-16 21:23:45 -07:00
Akeda Bagus
2a97f07d47
Typo fix.
2014-04-15 22:56:35 +07:00
Christian Thomas
a410e84fbe
Update class-wc-emails.php
...
Check for a value against each meta item before outputting.
2014-04-15 16:01:20 +01:00
Akeda Bagus
8ae455eef9
Removes unused block and var.
...
There's duplicate block that does the same thing, but assigning to different variable.
On the end only the last variable is used, which is `$username`.
2014-04-15 21:55:59 +07:00
Mike Jolley
c451bc95dc
For customer search, join once. Performance increase.
2014-04-15 11:11:00 +01:00
claudiosmweb
a016d82321
fixed coding standards in includes/admin/post-types/class-wc-admin-cpt-product.php
2014-04-14 16:15:19 -03:00
claudiosmweb
eb54adf697
added method to stop save duplicate sku in quick edit
2014-04-14 15:46:43 -03:00
splashingpixels
cc86fcc775
removed wc_clean/sanitize_text_field not needed. handled by wp core functions fixes #5318
2014-04-13 23:29:22 -07:00
Bass Jobsen
182b7c1ad5
Update class-wc-frontend-scripts.php
...
See also https://github.com/bassjobsen/wp-defer-loading/issues/14 prettyPhoto-init is not only dependent of jquery, but also of prettyPhoto. The dependency of prettyPhoto is not set.
2014-04-14 01:06:17 +02:00
Max Rice
fe5d757970
Update REST API documentation link
2014-04-10 12:27:27 -04:00
Coen Jacobs
4afeb7926c
Merge branch 'refs/heads/2.1'
...
Conflicts:
i18n/languages/woocommerce-admin.pot
i18n/languages/woocommerce.pot
includes/class-wc-form-handler.php
package.json
readme.txt
templates/checkout/form-shipping.php
templates/emails/email-addresses.php
woocommerce.php
2014-04-10 16:42:08 +02:00
Mike Jolley
7fd971b3ff
Add label explaining discount field Closes #5300
2014-04-10 13:58:15 +01:00
Mike Jolley
3228fecbe5
Work out cart discount without tax amounts #5300
2014-04-10 13:58:10 +01:00
claudiosmweb
31cb09aec6
fixed some coding standards in includes/admin/settings/class-wc-settings-general.php
2014-04-10 13:57:25 +01:00
claudiosmweb
a0ac62efca
added validation when save the frontend colors, closes #5298
2014-04-10 13:57:20 +01:00
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