Barry Kooij
f105664805
Introduced 'woocommerce_ajax_calc_line_taxes' filter.
2014-12-02 12:57:53 +01:00
claudiosmweb
3ce620e4f3
Removed eXtremeGoHorse practices from WC_AJAX::calc_line_taxes() and wc_save_order_items()
...
cc @barrykooij
2014-12-01 21:55:48 -02:00
Mike Jolley
2c1c9896c5
Remove remove_variation and replace with remove_variations
2014-11-27 15:44:51 +00:00
Mike Jolley
44af56ff75
Simplify feature_product()
2014-11-27 15:40:39 +00:00
Mike Jolley
e3c1ebc927
Simplify mark_order_status()
2014-11-27 15:37:42 +00:00
Mike Jolley
2e398a3a79
Decoupled the order summary and payments area. Both are updated independently via ajax fragments and can be moved around via actions. TEMPLATES OVERRIDING THESE TEMPLATES WILL NEED TO UPDATE THEIR FILES.
...
Closes #5781
Closes #6570
2014-11-26 14:19:53 +00:00
Mike Jolley
8b4332a037
Refactors to shipping tax rate methods
2014-11-21 13:06:33 +00:00
Illimar Tambek
d510372d64
DRY up mark_order_{$status}
2014-11-19 14:13:24 +02:00
Mike Jolley
b3782fa1a5
Removing Mijireh from core 2.3
2014-11-18 16:37:43 +00:00
Mike Jolley
3d1285c8c4
Allow some limited html in text attributes
...
Fixes #6620 . @claudiosmweb @barrykooij see any issues with adding this
one? Doesn’t appear to break anything…
2014-10-29 10:29:51 +00:00
Mike Jolley
d90aee6685
Add fallbacks for wp_get_referer()
...
Closes #6609
2014-10-23 12:13:42 +01:00
Mike Jolley
6f7ff36940
Prefix filter names #6576
2014-10-20 16:12:35 +01:00
Primoz Cigler
bbdcdc923a
Added the filter for the ajax cart_hash, because in some cases (for example when using WPML) the empty string does not refresh the page fragments properly.
2014-10-18 20:54:25 +02:00
claudiosmweb
bc1ea4fdea
woocommerce_ prefix in refund actions, related #6477
2014-10-09 13:15:42 -03:00
75nineteen Media
f57de2cf9a
Added two hooks to support refund Followup Emails
2014-10-07 15:58:21 -07:00
Mike Jolley
700369c386
Refund report changes
...
1. Ensure refund order_total is negative and reflects the full amount,
not just line items
2. Ensure transients are cleared when doing refunds
3. sales-reports order types so we can exclude refunds from pure
‘sales’ reporting
4. Tweak placement of refunds in legend.
Closes #6411
2014-10-06 13:39:53 +01:00
Nicola Mustone
1337c9cd7b
Added $user_id
2014-09-29 09:13:56 +02:00
Nicola Mustone
12129218fb
woocommerce_found_customer_details filter improvement
...
Adding $type_to_load attr to woocommerce_found_customer_details filter
2014-09-26 10:28:46 +02:00
Mike Jolley
4803937222
Fix adding items to orders
...
* Fix - When manually adding items to an order, show tax columns.
* Fix - When manually adding items to an order, include variation data.
Closes #6313
2014-09-19 12:52:26 +01:00
Mike Jolley
955f497dd7
Prevent headers being sent by wp_send_json()
...
Fixes #6244
2014-09-16 13:24:05 +01:00
Mike Jolley
79ce7ab926
If a refund fails, delete refund post.
...
Fixes #6238
2014-09-12 10:09:26 +01:00
claudiosmweb
cfb8d42bcb
Added missing vars in ajax add_variation() method, closes #6234
...
@mikejolley
2014-09-11 18:16:37 -03:00
Mike Jolley
ebed8dbc85
Correction to last commit to deal with tax arrays
2014-09-08 12:45:32 +01:00
Mike Jolley
a588442cbb
Format refund amounts as decimals
...
Fixes #6187
2014-09-08 12:42:30 +01:00
Mike Jolley
265ffee23a
Remove $can_be_edited in favour of ->is_editable()
...
For #6154
2014-09-03 10:09:04 +01:00
thenbrent
78d932e6d2
Add WC_Abstract_Order::is_editable()
...
To centralise logic used to determine if an order can be edited from
the Edit Order screen
2014-09-02 11:47:56 -07:00
thenbrent
30e95ab16e
Fix "remote" typo - should be "remove"
2014-08-27 13:05:35 -07:00
claudiosmweb
b08a0cf1f3
stopped deprecated warnings about like_escape() function since WP 4.0
2014-08-21 14:00:39 -03:00
Barry Kooij
94365791af
Changed all use of get_product to wc_get_product
2014-08-19 12:09:29 +02:00
Barry Kooij
6655188f0b
Changed use of get_order with wc_get_order
2014-08-15 14:29:21 +02:00
Mike Jolley
3f53512c7f
Fix up visibility of stock options, drop downs, and get_availability() when parent is managing stock for a variation.
...
Fixes #6017
2014-08-13 15:03:30 +01:00
claudiosmweb
066ba904cb
added $reason param in WC_Payment_Gateway::process_refund()
2014-08-07 15:57:29 -03:00
Mike Jolley
6e540c3bda
Pass is_ajax through from the ajax handler
...
Fixes #5910
2014-07-31 10:00:16 +01:00
Mike Jolley
ab5af6f930
Merge pull request #5827 from grey-rsi/master
...
class-wc-ajax.php
2014-07-30 12:20:42 +01:00
Mike Jolley
710a570525
Coded in Restore stock option
2014-07-25 11:29:24 +01:00
claudiosmweb
e634efa958
fixed tax calc when exists tax columns
2014-07-24 18:09:13 -03:00
claudiosmweb
2d61126502
added add_shipping and add_fee ajax actions
2014-07-24 17:55:25 -03:00
claudiosmweb
93b464cb29
improved the add_order_tax ajax method
2014-07-24 17:37:02 -03:00
claudiosmweb
5b3f69de0a
fixed the "calculate tax" action #3164
2014-07-24 17:33:26 -03:00
Mike Jolley
a10204894d
Clear transients after refunding
2014-07-24 16:03:52 +01:00
Mike Jolley
19b6922044
Refund line items and taxes
2014-07-24 15:34:14 +01:00
Mike Jolley
11835826de
A start on negative line items
...
@claudiosmweb
2014-07-23 17:41:35 +01:00
claudiosmweb
8edbd8fed5
fixed undefined variable $can_be_edited when add new line items via ajax
2014-07-22 17:33:49 -03:00
claudiosmweb
144d094ad2
created method for delete order tax
2014-07-20 22:57:23 -03:00
claudiosmweb
d875cfa1ac
created ajax method to add new taxes
2014-07-20 22:36:12 -03:00
claudiosmweb
5152457d9d
improved the saving the new tax data
2014-07-20 01:28:16 -03:00
claudiosmweb
f3ef446678
improved the order totals display
2014-07-17 18:17:42 -03:00
claudiosmweb
d321395946
created new methods to save and load the order items in shop_order screen
2014-07-17 17:17:54 -03:00
claudiosmweb
d7133035e1
added order items add shipping cost button
2014-07-16 15:41:18 -03:00
Mike Jolley
755001f19b
Use order types where required
2014-07-11 12:43:42 +01:00
Mike Jolley
eca4025f5e
Delete and display refunds
2014-07-10 16:39:10 +01:00
GreY
cb59771a2d
added do_action( 'woocommerce_after_product_ordering' ); to sync product translations menu_order value
2014-07-10 17:15:31 +03:00
Mike Jolley
280b884c28
Create refunds and process via gateway
2014-07-10 14:49:04 +01:00
Mike Jolley
d88279fe53
Start on ajax handlers
2014-07-10 13:33:05 +01:00
Mike Jolley
fdccaa21d3
Rough, non-functioning example of the UI for refund total and add items in the order items panel
...
#3164
2014-07-07 16:45:08 +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
Mike Jolley
a9262cbaf2
Merge pull request #5555 from toddlahman/master
...
Confirm buffer is not empty before erasing
2014-06-27 14:21:51 +01:00
toddlahman
7d78888f12
sync fork with master
2014-06-26 03:30:09 -07:00
Mike Jolley
0f6f04e017
Added wc_stock_amount() core function and replaced intval
...
#4612
2014-06-25 11:25:28 +01:00
Mike Jolley
af77d8f12c
Only remove featured transient when featured changes
2014-06-19 12:25:10 +01:00
Mike Jolley
cf3cca4c8e
Merge branch 'feature-wc-create-order'
2014-06-18 16:07:29 +01:00
Mike Jolley
f37d6e12b8
Cleaned up ajax tax calc function
2014-06-13 15:54:08 +01:00
Coen Jacobs
89ea6c46ab
Replace new WC_Order calls with get_order
2014-06-13 15:24:51 +02:00
Mike Jolley
375a0e2652
static WC_Tax class - no need for a constructor in this
2014-06-12 16:47:43 +01:00
Kai Armstrong
1274ac3303
Reading the wp_die docs was apparently a giant mental challenge... fixed the fix for #5656
2014-06-11 15:24:27 -05:00
Kai Armstrong
c7410a1630
send proper status codes on die
2014-06-11 14:57:26 -05:00
Coen Jacobs
3ad8935b20
Removed ununsed global variables in local scopes
2014-06-08 22:33:11 +02:00
Mike Jolley
ded4b7404d
Admin changes for #5046
...
- Removed post type classes. Since they were always loaded, there was
no benefit having them split up. Combined meaning less hooked in
methods.
- Stopped loading some function files and sessions in the admin area.
They are not needed there.
- Made a few admin page classes static as they are stateless
2014-06-04 11:16:19 +01:00
Mike Jolley
22a37e860f
[2.1] When linking variations, use slugs #5490
2014-06-02 15:28:00 +01:00
toddlahman
fe43298021
Use wp_send_json() WordPress function for AJAX
...
The header(), json_encode(), and die(), functions are all executed with
a better logical routine that should provide consistent results.
2014-05-31 00:32:22 -07:00
Mike Jolley
e198ee517a
Made stateless classes static to allow unhooking of hooks
...
Closes #5151
2014-05-28 14:52:50 +01:00
splashingpixels
e508a668a3
revised wc_get_product_terms to allow override with args
2014-05-22 07:05:34 -07:00
claudiosmweb
e65f41f014
fixed some coding standards in includes/class-wc-ajax.php
2014-05-12 10:04:36 -03:00
Coen Jacobs
34726ab6bc
Merge branch '2.1'
...
Conflicts:
i18n/languages/woocommerce-admin.pot
i18n/languages/woocommerce.pot
includes/admin/post-types/class-wc-admin-cpt-product.php
includes/class-wc-form-handler.php
package.json
readme.txt
woocommerce.php
2014-04-30 14:30:42 +02:00
Mike Jolley
85ccd2a788
Added brackets
2014-04-29 15:20:46 +01: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
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