Gabor Javorszky
5f8f1fc10f
Add null date check for download permissions
...
Fixes #7861
* implements check if `access_expiry` is 0 epoch
Sadly there's no way to circumvent WordPress's sanitization without using raw query in `WC_Meta_Box_Order_Downloads::save`, but it's a lot easier to check for 0 epoch.
2015-04-01 01:04:22 +02:00
Gabor Javorszky
e76749de03
Adds filter to download permissions results
...
The justification for this filter is that Subscriptions will be saving download permissions on the subscription itself, not the original order. This filter would allow us in the future to remove the entry for a file for the original order if the same file has a subscription associated with it.
2015-03-30 14:19:47 +02:00
Mike Jolley
f55e7d6969
wc_customer_bought_product transient
...
Closes #7322
2015-03-27 13:17:54 +00:00
Mike Jolley
97c1a32aa7
Small improvement to #7322
2015-03-27 13:08:27 +00:00
nils-fredrik@maksimer.no
07f7db297f
Fix for #7752
...
wc_create_new_customer() returns identifying error codes for
identifiable errors.
2015-03-18 00:18:52 +01:00
Nicola Mustone
40a7605c99
fix missing downloads
2015-02-19 14:42:24 +01:00
Gerhard
7beb159927
Remove posts join from wc_get_customer_available_downloads, speeds query up by 50%
2015-02-18 12:04:19 +02:00
Claudio Sanches
de4d70d16a
Fixed the product_id type in wc_get_customer_available_downloads()
2015-01-21 10:21:42 -02:00
Claudio Sanches
b896c5063f
Stop erros when the user does not exist in wc_customer_bought_product() function, closes #7145
2015-01-19 00:25:32 -02:00
Mike Jolley
03043a7c02
Expiry date along with download details
...
Closes #7096
2015-01-13 12:29:37 +00:00
Mike Jolley
4769d27415
Added missing global $wpdb;
2015-01-12 17:18:17 +00:00
Mike Jolley
2c32f6cdd0
Add functions to get money spent/order count for customers and fix in API Closes #7083
2015-01-12 17:09:46 +00:00
Claudio Sanches
256216e13d
Fixed the wc_update_new_customer_past_orders() function, closes #6903
...
get_post_status() returns post status (string) or false (bool) on failure.
2014-12-04 11:09:37 -02:00
Mike Jolley
b98b7354ad
String sanitize_user Closes #6667
2014-11-11 13:11:40 +00:00
Mike Jolley
b6835a009c
wc_paying_customer to only increase for 'simple' orders and added tool to refresh stats to customer list.
...
Closes #6395
2014-10-02 16:44:36 +01:00
Barry Kooij
73648c1b91
Removed the 'delete_users' case.
...
Related #6102
2014-09-04 13:30:48 +02:00
Barry Kooij
f77395c572
Only add the 'do_not_allow' if target user ($args[0]) is set.
...
Fixes #6095 .
2014-08-27 20:18:44 +02:00
claudiosmweb
aeaa1577e3
fixed wc_get_customer_available_downloads() query, closes #6057
2014-08-19 14:50:27 -03:00
Mike Jolley
474cba9b87
Merge pull request #6052 from barrykooij/refactor/get_product
...
Renamed get_product to wc_get_product
2014-08-19 11:51:20 +01:00
Barry Kooij
94365791af
Changed all use of get_product to wc_get_product
2014-08-19 12:09:29 +02:00
Mike Jolley
16754a7d01
Add file to downloads array Closes #6044
2014-08-19 11:01:55 +01:00
Barry Kooij
6655188f0b
Changed use of get_order with wc_get_order
2014-08-15 14:29:21 +02:00
Mike Jolley
755001f19b
Use order types where required
2014-07-11 12:43:42 +01:00
Coen Jacobs
86a4add087
Merge remote-tracking branch 'upstream/master' into order-factory-refactor
...
Conflicts:
includes/class-wc-order.php
2014-07-03 13:38:55 +02:00
toddlahman
f6c3f4d0b7
Remove diff code block from wc-customer
2014-06-27 05:56:27 -07:00
Coen Jacobs
89ea6c46ab
Replace new WC_Order calls with get_order
2014-06-13 15:24:51 +02:00
Mike Jolley
f30e95663b
Prefixes for queries
2014-06-03 11:29:01 +01:00
Mike Jolley
fca32a98de
Implement is_status functions and update_status
2014-05-30 17:16:22 +01:00
Mike Jolley
2f374cf8b4
Optimize user functions
2014-05-30 16:14:24 +01:00
claudiosmweb
d0fac1f737
introduces the wc_get_customer_available_downloads() function
2014-05-28 14:05:19 -03:00
Mike Jolley
e7898f8670
[2.2] Protect admins from shop managers
...
Closes #5322
2014-04-23 14:18:21 +01:00