Commit Graph

125 Commits

Author SHA1 Message Date
claudiosmweb da43955416 Introduces the wc_get_default_location() function 2014-11-18 12:56:13 -02:00
claudiosmweb 771f25d7b7 Improved the WC_Customer class, removed dead variables, removed duplicated code and added new docblocks 2014-11-18 12:32:48 -02:00
claudiosmweb 6acfd3e2a7 Created WC_Customer::get_default_location() for avoid duplicate code 2014-11-18 11:32:44 -02:00
Mike Jolley 229d9135ef Prevent errors when country field is disabled
Fixes #6336
2014-09-22 13:23:31 +01:00
Mike Jolley 3fb4deaa2b Prevent woocommerce_apply_base_tax_for_local_pickup breaking tax on virtual orders 2014-09-08 14:48:18 +01:00
Mike Jolley c4ef86d44e scrutinizer patches 2014-09-08 00:37:55 +01:00
claudiosmweb 78c7fefe3e fixed some docblocks 2014-09-02 16:50:19 -03:00
Mike Jolley 387cc973df Removes properties from customer class - these are all stored in _data! 2014-06-02 11:50:01 +01:00
claudiosmweb d0fac1f737 introduces the wc_get_customer_available_downloads() function 2014-05-28 14:05:19 -03:00
Mike Jolley 455ef80ee7 Refactor country class get methods Closes #4692 2014-05-15 13:27:13 +01:00
Mike Jolley ffb6dcee4a Brackets 2014-05-08 10:35:51 +01:00
splashingpixels c5deab6fe6 fixed my account downloadables out of order 2014-04-16 21:23:45 -07: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
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
Mike Jolley 9068da2ece When getting downloadable files, check access_expires too Closes #5060 2014-03-06 14:35:25 +00:00
Gerhard 123d60912b Add filenames to Downloads section in My Account 2014-02-25 12:48:36 +02:00
Mike Jolley c3f514fa0a Standards and some query tweaks for get_downloadable_products #4827 2014-02-17 11:58:14 +00:00
Coen Jacobs 19688ad9ef Fixed several @return void clauses. There are more. No code changes in this commit, only PhpDocs
Closes #4216
2013-11-27 10:03:47 +01:00
Mike Jolley 51ba9c393f WC globals 2013-11-25 14:01:38 +00:00
Mike Jolley 67c7671bb2 woocommerce_apply_base_tax_for_local_pickup when no methods are chosen yet 2013-10-30 15:30:20 +00:00
Mike Jolley 355dd16962 Removed @coenjacobs helpers and cleaned up main clas 2013-09-12 14:41:02 +01:00
Mike Jolley e1631bd084 Reloads checkout after registration which fixes #3612, removes some notices preventing login cookie being set, moves cart check for #3162
No perfect solution for #3162. DB locking would probably cause more
issues that its worth, we cannot reliably use transactions as some
clients still use MyIsam. Best to accept orders and deal with stock
conflicts after the fact.
2013-09-04 11:26:19 +01:00
Mike Jolley b797cdb672 Handle local pickup taxes when getting taxable address 2013-09-03 16:26:06 +01:00
Mike Jolley c75ea04c1c classes -> includes 2013-06-11 14:25:30 +01:00