Mike Jolley
53511e36ec
Use permission id to revoke access to downloads to prevent removing wrong rows.
...
Fixes #11423 @claudiosmweb
2016-07-14 15:54:28 +02:00
danielvonmitschke
857647cc06
Added '$_product' argument to 'woocommerce_restock_refunded_item' hook
...
currently the hook is only using $_product->id but it might be useful
not to only know the product but also the explicit variation that was
refunded.
2016-07-01 12:53:08 +02:00
danielvonmitschke
abce9cc8b6
Added a filter hook for the wc_ajax endpoint url
...
This might come in handy for some custom ajax implementations
2016-07-01 12:51:37 +02:00
Mike Jolley
30c4d3ab77
docblock
2016-06-07 14:19:36 +01:00
Mike Jolley
548fe93a97
Make use of unused $x var
2016-06-07 14:10:23 +01:00
Mike Jolley
730019ef18
scrutinizer best practice
2016-06-06 19:39:23 +01:00
Mike Jolley
3fd15ad50f
Unused vars and code docs
2016-06-06 18:57:24 +01:00
Mike Jolley
d4d6f3181c
Best practice tweaks
2016-06-06 17:24:31 +01:00
Mike Jolley
a40fb29eca
wc_set_time_limit helper function
2016-06-06 16:55:27 +01:00
Claudio Sanches
e39274e753
HTTPS for everybody
2016-05-26 22:48:49 -03:00
Mike Jolley
54231c2946
Allow shipping classes interface to be extended.
2016-05-19 12:38:28 +01:00
Caleb Burks
75dfae2bf2
Return to shop if session expires and escape url.
2016-05-17 17:00:09 -05:00
Mike Jolley
986bd5abc7
Fix save and striping
2016-05-12 12:18:35 +01:00
Mike Jolley
2cc0ac294e
Fix return on add_metadata
...
Fixes #10892
2016-05-11 15:28:40 +01:00
Joey Kudish
7f71376418
add action hooks for shipping zone method actions
...
Adds action hooks for shipping zone methods added, deleted and status
toggled
2016-05-10 11:43:47 -07:00
Harald Rosberg
84887409a0
added a filter to make it possible to override if an attribute is variation by default, #10869
2016-05-06 13:22:32 +02:00
Mike Jolley
4901117f64
Data must exist
2016-04-20 15:02:41 +01:00
Diego Zanella
531f644f5f
Added safeguard check for shipping methods post data
2016-04-20 10:21:28 +01:00
Diego Zanella
a506909822
Backward compatibility with WC 2.5 and earlier
...
* Slightly altered previous change to maintain the exact logic used before (i.e. the WC_Ajax class sets the POST data for the shipping method explicitly).
2016-04-20 08:49:32 +01:00
Diego Zanella
ba46a5275f
Backward compatibility with WC 2.5 and earlier
...
* Restored signature of WC_Settings_API::process_admin_options() method.
2016-04-20 08:48:29 +01:00
Mike Jolley
6ae2fea045
Allow default address to be empty.
...
Fixes #10664
2016-04-18 14:51:39 +01:00
Mike Jolley
70d334395d
Shipping calculation in backend should be based on line items
...
Fixes #10718
2016-04-18 12:56:59 +01:00
Mike Jolley
dd99c7fb17
Redirect to product screen if referer is missing.
...
Fixes #10713
2016-04-18 11:48:57 +01:00
EmilEriksen
a0ae25ca24
Change AJAX add coupon generic error notice type
2016-04-12 17:07:11 +02:00
Mike Jolley
d3ac3f4073
Modals first pass
2016-03-24 17:26:40 +00:00
Mike Jolley
ca5a46a2f9
Allow bulk deletion of refunds
2016-03-23 16:32:12 +00:00
Mike Jolley
3205975a24
Fix manual addition of shipping to orders
2016-03-23 15:16:09 +00:00
Mike Jolley
f73149feaf
Tweak variation display and reenable bulk editing
2016-03-22 17:13:39 +00:00
Mike Jolley
7be2b129b6
Removed bulk actions from order items panel
...
Reduce/increase order item stock is less important these days do to
automatic stock reduction (when status changes) and because when you
refund items you can restock items via checkbox. Manual stock changes
can be performed by editing products.
Decreases complexity of order items box.
2016-03-21 14:58:14 +00:00
Mike Jolley
1549158981
Add 'is_enabled' column to instances table and allow toggle in zones screen
...
@allendav
2016-03-15 17:23:06 +00:00
ConfusedTA
8495d98275
Add filter to output from json_search_customers
...
Add filter to admin ajax customer search, to allow modification of search result output via plugin or theme.
2016-03-10 12:15:44 +00:00
Mike Jolley
03872e953b
[2.5] Round refund values.
...
Fixes #10456 .
2016-03-03 13:40:50 +00:00
Mike Jolley
c21b0eda82
Merge pull request #10361 from shivapoudel/ajax-customer-search
...
Feature to exclude certain users from ajax customer search box
2016-03-03 12:54:19 +00:00
Mike Jolley
73f71191fc
[2.5] current class fix on some servers when empty
2016-02-22 15:19:44 +00:00
Mike Jolley
e9703da300
Merge pull request #9921 from peterrath/vat-exempt-and-tax-enabled-handling
...
VAT exempt and “TAX enabled” handling in back end and Orders API
2016-02-19 14:53:39 +00:00
Peter
5a9cec18ee
Indent the new if statement
2016-02-18 20:35:33 +01:00
Peter
0cc33c8186
Use !== instead of != in class-wc-ajax.php
...
Use !== here: if ( wc_tax_enabled() && $is_vat_exempt !== 'yes' ) {
2016-02-18 20:29:10 +01:00
Peter
b508a6f19f
Remove space before bracket in class-wc-ajax.php
...
remove space before bracket here: $is_vat_exempt = get_post_meta( $order_id, '_is_vat_exempt', true );
2016-02-18 19:57:55 +01:00
Shiva Poudel
5fb5a7ded2
We need to check for ID in array to exclude user ID as search_columns are of different
2016-02-17 00:25:06 +05:45
Shiva Poudel
a88caf5b72
Feature to exclude certain users from ajax customer search box
...
Closes #10360
CC @mikejolley
2016-02-16 19:40:36 +05:45
Kevin Killingsworth
e99e75b5b9
Fix spacing.
...
Add space after !
2016-02-14 21:56:42 -06:00
Kevin Killingsworth
ce90c440cb
Cart ajax: apply coupon
...
Adds an ajax call for applying coupons while on the cart
screen (not checkout, as it already has this.)
This is the first commit to add ajax calls to the cart update
functions. See issue #6734
2016-02-12 15:43:05 -06:00
Mike Jolley
75c264837f
Justins feedback/code tidy
2016-02-10 13:21:16 +00:00
Mike Jolley
352184cc06
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# i18n/languages/woocommerce.pot
# includes/abstracts/abstract-wc-payment-gateway.php
# includes/abstracts/abstract-wc-shipping-method.php
# includes/admin/settings/class-wc-settings-shipping.php
# includes/wc-core-functions.php
# uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley
3b43a53546
Don't format stock if empty
2016-01-28 11:31:53 +00:00
Mike Jolley
a550c77dba
[2.5] Remove stock bw compat code which was preventing manage stock being disabled.
...
Fixes #10167
2016-01-25 18:17:28 +00:00
Mike Jolley
55c8f91c14
[2.5] Set has calculated shipping to true when setting country
...
Closes #10148
2016-01-25 10:16:39 +00:00
Mike Jolley
a26af7b801
[2.5] Unset reload_checkout once processed.
...
Fixes #10134
2016-01-21 20:29:14 +00:00
Florian Ludwig
6074ea3355
Formatted variation stock with wc_stock_amount
2016-01-20 23:37:22 +01:00
Mike Jolley
6050b204fc
Support qty display in cart messages
...
Closes #10114
2016-01-20 11:32:49 +00:00