Commit Graph

286 Commits

Author SHA1 Message Date
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 d168686478 Added brackets 2014-04-25 12:31:58 +01:00
Mike Jolley c451bc95dc For customer search, join once. Performance increase. 2014-04-15 11:11:00 +01:00
Mike Jolley d43a48eb79 Clear featured transients when needed Closes #5254 2014-04-10 13:49:09 +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 a569c9fd7d Clear featured transients when needed Closes #5254 2014-04-04 14:16:18 +01:00
Mike Jolley b7df01724c Don't use esc_attr for storage of meta key 2014-03-25 13:40:48 +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
tamarazuk b58acfa970 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 02:02:21 -04:00
JustinSainton 7e871109e6 Filter JSON search customers query
Because the json_search_customer_name action is in the scope of $this, and there's no instance of it to allow remove_action() to play nicely with, it's really difficult to modify this query.  And, unfortunately, it's quite non-performant on large user tables.

One possible option would be to allow users to filter this query directly.  This PR reflects that approach.

For reference: https://gist.github.com/curtismchale/9470986, #5095
2014-03-20 09:39:29 +00:00
JustinSainton e91ca49b6d Filter JSON search customers query
Because the json_search_customer_name action is in the scope of $this, and there's no instance of it to allow remove_action() to play nicely with, it's really difficult to modify this query.  And, unfortunately, it's quite non-performant on large user tables.

One possible option would be to allow users to filter this query directly.  This PR reflects that approach.

For reference: https://gist.github.com/curtismchale/9470986, #5095
2014-03-10 14:54:27 -07:00
Mike Jolley 9d47a60914 If you only ship to the billing address, ensure the shipping address data for customers is updated Closes #4786 2014-02-14 12:52:39 +01:00
Mike Jolley 5bfa91f2b9 If you only ship to the billing address, ensure the shipping address data for customers is updated Closes #4786 2014-02-14 11:19:32 +00:00
Mike Jolley 4790e16812 Leaner code for getting terms 2014-02-07 11:39:37 +00:00
toddlahman 2725527d4a Removed urldecode from $_GET and $_REQUEST
The superglobals $_GET and $_REQUEST are already decoded. Using
urldecode() on an element in $_GET or $_REQUEST could have unexpected
and dangerous results.

See Notes:

http://us1.php.net/manual/en/function.urldecode.php
2014-01-26 01:19:17 -08:00
Mike Jolley a2688fad83 Fix ajax naming issues Closes #4368 2013-12-31 14:27:48 +00:00
Mike Jolley 27d40dd46f Fix term reordering Closes #4294 2013-12-05 16:07:44 +00:00
Gregory K 43ca01badc PhpDocs and TODO comments 2013-11-28 12:59:09 -05:00
Gerhard 6300e65582 Make downloadable product dropdown ajaxy, as per #4211 2013-11-26 15:54:34 +02:00
Mike Jolley 5e9a84f26c Fix ajax class functions and includes 2013-11-25 15:47:52 +00:00
Coen Jacobs 4afbd0b556 Merge branch 'function-call-refactor'
Conflicts:
	includes/admin/post-types/meta-boxes/class-wc-meta-box-order-data.php
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-template-functions.php
2013-11-25 15:42:26 +01:00
Mike Jolley b774e84e29 Revert "Replaced templates functions"
This reverts commit 4ce301a080.
2013-11-25 14:16:26 +00:00
Mike Jolley 4ce301a080 Replaced templates functions 2013-11-25 14:01:37 +00:00
Mike Jolley 3973beae5d woocommerce_ functions to wc_ - replaced attribute functions 2013-11-25 14:01:37 +00:00
Coen Jacobs f7df17db1c Order functions woocommerce to wc refactor 2013-11-25 14:54:52 +01:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Coen Jacobs b0e3802b5b Refactor cart functions in core 2013-11-25 13:44:32 +01:00
Gerhard bac3c81296 Fix ajax calls for adding and deleting order item meta from the backend. 2013-11-22 15:16:38 +02:00
Scott Basgaard 922fa990a5 esc_attr() all the things. 2013-11-20 20:11:59 +01:00
Mike Jolley 3acfc07684 Fix user search and sanitize search strings 2013-11-20 17:30:49 +00:00
Scott Basgaard f3b2854638 woocommerce_json_search_products() is now a method of WC_AJAX. Use $this->json_search_products() instead. 2013-11-19 14:44:28 +01:00
Scott Basgaard bee41fb7e5 woocommerce_get_refreshed_fragments() is no longer. Update where it was called to new Ajax class method. 2013-11-19 13:33:26 +01:00
Coen Jacobs 90008d7143 Merge remote-tracking branch 'thenbrent/new_notice_api'
Conflicts:
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-message-functions.php
	woocommerce-ajax.php
2013-11-18 12:44:22 +01:00
Scott Basgaard 4bdfd78ac5 Avoid undefined variable notices when calculating totals and saving attributes via AJAX. 2013-11-14 19:40:15 +01:00
Mike Jolley 645ca3e834 WC_Ajax class for ajax events 2013-11-14 12:13:34 +00:00