Mike Jolley
a0aa663f29
Attribute post data needs stripslashes
2019-01-08 13:25:27 +00:00
Claudiu Lodromanean
3b14bfb90b
Merge pull request #22270 from Prospress/fix/22149
...
strip slashes from tax classes on save
2019-01-07 11:39:35 -08:00
Mike Jolley
217c039262
Merge branch 'pr/21465'
2019-01-07 13:29:40 +00:00
Mike Jolley
f4dbd5a723
Define consistently
2019-01-07 13:29:09 +00:00
Mike Jolley
05de936932
Merge pull request #21581 from codemascot/161018-131105-class-wc-ajax.php
...
Removed unnecessary variable.
2019-01-07 12:43:40 +00:00
JeroenSormani
f4775ccd90
Use shipping method instead of property through magic + doc return statements
2019-01-04 12:41:38 +00:00
Mike Jolley
cbee6af449
Use helper and return notes.
2019-01-03 13:40:48 +00:00
Mike Jolley
5ef45f51f6
Stock handling in ajax class only
2019-01-03 12:23:49 +00:00
Mike Jolley
184b121eb8
Use adjust stock handling
2019-01-02 17:09:45 +00:00
Ron Rennick
292c5c5dcc
strip slashes from tax classes on save
2018-12-19 15:22:04 -04:00
Gerhard
fae1e1cce1
Make links in order notes clickable.
2018-11-15 14:27:26 +02:00
Refael Iliaguyev
127f1cb276
Use WC() instead wc() for consistency
2018-11-08 12:59:07 +02:00
Claudiu Lodromanean
b551f57173
Merge pull request #21769 from nishitlangaliya/issue-21765
...
fix: Manually adding fee on order generate html code
2018-11-05 15:27:33 -05:00
nishitlangaliya
b7cf72d626
fix: save fee name without html from base source
2018-11-03 00:19:30 +05:30
Claudio Sanches
a1875a135e
Added exception for when a non-admin user tries assign API keys to an admin
2018-11-02 10:21:18 -07:00
Khan M Rashedun-Naby
439bd54ce5
The variable should be 0 rather than empty string
2018-10-16 14:23:43 +06:00
Khan M Rashedun-Naby
7940694ce4
Removed Unnecessary Variable.
2018-10-16 13:25:56 +06:00
Frédéric Demarle
7c3ef6cc27
Fix missing punctuation mark a the end of the comments
2018-10-04 20:22:18 +02:00
Frédéric Demarle
e20ce00101
Fix ajax responses not testable when calling wp_send_json_success in a try block
2018-09-28 13:42:51 +02:00
claudiulodro
178f98ff65
Fix attribute saving
2018-09-19 11:35:46 -07:00
Peter Fabian
964ee9ac1a
Unslash city name to prevent double escape.
2018-08-27 18:33:14 +02:00
Peter Fabian
2e350fe5b7
Small PHPCS fix.
2018-08-24 09:21:49 +02:00
Peter Fabian
f5fd36fbdf
Updated order of array traversal to respect user's order when changing order of attributes for variations.
2018-08-23 18:41:28 +02:00
Florian Ludwig
0f6f6814ad
Moves cart hash calculation to WC_Cart class
2018-08-14 18:08:55 +02:00
Claudiu Lodromanean
2a3cedddcd
Merge pull request #20520 from woocommerce/feature/product-custom-tables-supporting-changes
...
Product custom tables supporting changes
2018-06-27 08:57:50 -07:00
Mike Jolley
f9530c3ba2
Remove order again from URls
2018-06-22 13:32:21 +01:00
Rodrigo Primo
b6e73f528b
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-06-15 14:56:31 -03:00
Claudiu Lodromanean
fc02687545
Merge pull request #20470 from woocommerce/update/20454
...
Support limiting search results
2018-06-15 09:03:07 -07:00
Mike Jolley
5e6405b650
Merge branch 'master' into update/13359
2018-06-15 15:12:12 +01:00
Mike Jolley
04e304921a
Show stock based on querystring var
2018-06-15 15:11:07 +01:00
Mike Jolley
01a3e359c3
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-06-13 10:18:38 +01:00
therealgilles
3818598811
Rename woocommerce_checkout_skip_update_order_review_expired to woocommerce_checkout_update_order_review_expired and change filter polarity.
2018-06-11 20:29:16 +00:00
therealgilles
1d733236e0
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2018-06-10 18:53:13 +00:00
Mike Jolley
81149157a3
woocommerce_json_search_limit filter
2018-06-09 17:22:26 +01:00
Mike Jolley
52854b7690
Add qty to order via modal, include stock qty in formatted name display for reference
2018-06-08 16:18:32 +01:00
Mike Jolley
8261cffaa7
Remove bulk actions
2018-06-07 18:01:21 +01:00
Mike Jolley
4df54b4e53
Merge branch 'master'
2018-06-07 11:24:12 +01:00
therealgilles
830e42794e
Add woocommerce_checkout_skip_update_order_review_expired and woocommerce_checkout_skip_cart_is_empty_check filter calls.
2018-05-23 20:40:23 +00:00
therealgilles
f7ec8c22de
Add woocommerce_checkout_skip_update_order_review_expired and woocommerce_checkout_skip_cart_is_empty_check filter calls.
2018-05-23 20:08:14 +00:00
Claudio Sanches
09f7425fea
Just use exit() in AJAX endpoints used to redirect users
2018-05-23 10:50:49 -03:00
Mike Jolley
be63fb152a
Preview checkout without dummy product
2018-05-22 11:19:09 +01:00
Mike Jolley
1ff5520512
Pass through JSON context when getting zones for JSON responses and scripts
2018-05-09 17:41:33 +01:00
Claudiu Lodromanean
305167efba
Merge pull request #19933 from franticpsyx/deprecate-woocommerce_ajax_added_order_items
...
[3.4] Deprecate woocommerce_ajax_added_order_items action
2018-05-03 08:03:55 -07:00
Mike Jolley
06ef8c8589
Hook doc update
2018-05-02 14:28:53 +01:00
Manos Psychogyiopoulos
1895bbe3f3
Deprecate woocommerce_ajax_added_order_items action
2018-05-02 14:49:24 +03:00
Rodrigo Primo
597033ca6f
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-04-24 13:47:22 -03:00
Mike Jolley
bd539e38f0
Remove output buffering
2018-04-19 18:27:29 +01:00
Khan M Rashedun-Naby
74c2ceb3d1
Removed unnecessary variable.
2018-04-17 00:09:30 +06:00
Mike Jolley
1b34cd4745
Moved settings tabs around to allow for privacy page.
2018-04-12 16:59:42 +01:00
Mike Jolley
47fbd79d8f
Clear shipping transient when saving shipping method on zones screen
2018-04-10 12:25:09 +01:00
Rodrigo Primo
bb553c88ae
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-03-29 12:05:55 -03:00
Mike Jolley
04eadf13ac
Merge branch 'master' into update/18894
2018-03-08 13:08:40 +00:00
Rodrigo Primo
3a480e5d80
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-03-01 08:02:08 -03:00
Mike Jolley
f3ab50d962
Merge pull request #19135 from Chouby/ajax_wp_die
...
Replace exit by calls to wp_die() in ajax responses
2018-02-27 19:09:41 +00:00
Mike Jolley
e1beda3eb0
Use relative scheme for ajax endpoint
2018-02-26 18:51:46 +00:00
Frédéric Demarle
b2f59b0da5
Replace exit by calls to wp_die() in ajax responses
2018-02-26 18:27:25 +01:00
Mike Jolley
f8edd02285
phpcbf auto fixes
2018-02-22 15:37:01 +00:00
Mike Jolley
9571a90c9f
phpcs
2018-02-22 14:30:13 +00:00
Mike Jolley
0f85e00af1
Product search functions should check for read access, not edit access
2018-02-22 14:11:27 +00:00
Claudio Sanches
fe83dfdba7
Merge branch 'master' into fix/18545
2018-02-21 19:15:45 -03:00
Mike Jolley
6f855c781f
Fix response/ajax handling for #18080
2018-02-19 14:56:30 +00:00
Mike Jolley
5fce9152bd
Merge pull request #18080 from WPprodigy/fix-stock-update-order-notes
...
Enhancements for stock updates
2018-02-19 14:51:05 +00:00
Gerhard Potgieter
780905cd0e
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-02-08 10:11:27 +02:00
Mike Jolley
3ce51d9791
JSON context
2018-01-22 14:11:43 +00:00
Gerhard Potgieter
8e6afdfdc7
Fix indentation
2018-01-19 09:57:27 +02:00
Gerhard Potgieter
b495e803e8
Reworks the ajax user lookup so it caters for numeric usernames without affecting performance of lookups by ID.
2018-01-19 09:52:05 +02:00
Mike Jolley
a110180643
Saving taxes should invalidate caches.
2018-01-18 17:47:26 +00:00
Mike Jolley
672a31e7c6
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-01-16 10:40:19 +00:00
claudiulodro
cdad70a6b1
Safety first
2018-01-03 13:40:51 -08:00
claudiulodro
afdc737ec5
Ajax add to cart button shortcode fix for variations
2018-01-03 13:38:06 -08:00
Caleb Burks
457e60d253
Allow for multiple stock updates at once
2017-12-09 22:22:41 -06:00
Caleb Burks
4f187a0840
Ajaxify the order note addition
2017-12-09 00:32:35 -06:00
Caleb Burks
2237c35912
Set $added_by_user to true
...
These stock updates are done manually
2017-12-08 22:33:09 -06:00
Caleb Burks
e88ef38a76
Standardize stock update messages
...
Essentially just use get_formatted_name(), that way the product name appears along with either the sku or ID
2017-12-08 22:29:01 -06:00
Mike Jolley
0a9485c465
Merge branch 'master' into feature/11259
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# includes/admin/list-tables/class-wc-admin-list-table-products.php
# includes/class-wc-install.php
# includes/wc-update-functions.php
2017-12-04 14:14:03 +00:00
Mike Jolley
5d42a64b73
Merge branch 'master' into update/order-screen-refinements
2017-12-04 13:44:27 +00:00
Mike Jolley
85cd9647df
Merge pull request #17871 from ragulka/delete-refund-on-exception
...
Ensure refund is deleted when exception is thrown during wc_create_refund()
2017-11-23 13:06:40 +00:00
claudiulodro
5513dc4546
Update with master
2017-11-22 11:02:14 -08:00
Mike Jolley
3773b81bc9
Merge branch 'master' into update/order-screen-refinements
...
# Conflicts:
# includes/admin/meta-boxes/views/html-order-item.php
2017-11-22 16:32:34 +00:00
ragulka
4f2e1ee8d4
Ensure refund is deleted when exception is thrown during wc_create_refund
2017-11-22 17:03:58 +01:00
Ahmed Ali
d8050f99b1
fixing typo replace add to cart to be remove from cart
2017-11-22 14:33:21 +02:00
Mike Jolley
98bebd14f2
Hooks for columns and preview list tables
2017-11-21 16:22:43 +00:00
Mike Jolley
830ef8ed73
Change status action buttons
2017-11-20 22:43:37 +00:00
claudiulodro
a73436bdcd
Merge remote-tracking branch 'origin/master' into HEAD
2017-11-20 14:43:12 -08:00
Claudiu Lodromanean
106e6533f2
Merge pull request #17781 from woocommerce/fix/17629
...
When populating defaults, sanitize
2017-11-18 13:40:40 -08:00
Mike Jolley
a765367dd5
Merge pull request #17747 from woocommerce/feature/allow-add-content-to-order-preview
...
Introduce hooks to allow custom content into order preview
2017-11-18 18:26:08 +00:00
Mike Jolley
8a2050e066
When populating defaults, sanitize
...
part of #17775
Caused by https://github.com/woocommerce/woocommerce/pull/17629/files
leaving attribute names uppercase.
2017-11-18 13:55:26 +00:00
Mike Jolley
f207fdcde9
Reload attributes html on save
2017-11-17 15:43:14 +00:00
Mike Jolley
72e078e83e
Merge branch 'fix/17236'
...
# Conflicts:
# includes/class-woocommerce.php
2017-11-17 12:49:02 +00:00
Claudio Sanches
563896931e
Introduced hooks to allow custom content into order preview
2017-11-16 18:48:47 -02:00
claudiulodro
0390cf3e26
Bring up-to-date with master
2017-11-16 10:06:07 -08:00
Akeda Bagus
6572ee7852
Added missing meta info (author and date) when adding order note.
...
Fixes #17717 .
2017-11-16 02:03:07 +07:00
Mike Jolley
128b826791
Merge branch 'master' into tweak/order-screens
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# includes/admin/class-wc-admin-post-types.php
2017-11-15 13:36:13 +00:00
Mike Jolley
dea454c88e
Clickable elements
2017-11-15 12:51:14 +00:00
claudiulodro
3050959836
Variations stock status
2017-11-14 14:18:03 -08:00
Mike Jolley
220728544a
Merge pull request #17631 from woocommerce/update/page-caching-class
...
Page caching class
2017-11-10 14:12:13 +00:00
Claudio Sanches
b2105774c9
Merge pull request #17629 from woocommerce/fix/17613
...
Set attributes during variation creation
2017-11-09 16:45:57 -02:00
Mike Jolley
9f059e17a9
Add helper function instead of calling method, and restore old method for bw compat
2017-11-08 15:07:00 +00:00
Gerhard Potgieter
7b9fb6c0cb
Change nocache_headers hook firing ( #17540 )
...
* wp hook is too late to fire the nocache_headers filter, some caching plugins read it before that it seems.
* Create do_not_cache_page helper function and call that instead of nocache_headers
* Must add checks to prevent caching on certain pages as well
* Nothing to return
2017-11-08 14:27:30 +00:00
Mike Jolley
0d25375593
Set attributes during variation creation
2017-11-08 13:12:54 +00:00
Mike Jolley
10ea761a7d
Pass order location through to order ajax functions which recalc taxes.
...
Closes #17236
2017-11-02 17:31:03 +00:00
Mike Jolley
1f7ecd9fb9
Merge branch 'master' into tweak/order-screens
...
# Conflicts:
# assets/js/frontend/checkout.min.js
2017-11-01 16:52:21 +00:00
Gerhard Potgieter
1e66cedaf0
Save order items before adding new one when there are unsaved changes. Closes #17384 ( #17402 )
2017-10-27 12:38:10 +01:00
Gerhard Potgieter
ec1a70ad14
When deleting an order item and there are changes to other items, first save those before deleting.
2017-10-20 11:51:16 -07:00
Mike Jolley
5a22c7fa97
Fix tax rate save when only changing shipping checkbox
2017-10-12 11:30:41 +01:00
Claudio Sanches
a509161724
Merge pull request #16991 from woocommerce/fix/16988
...
Just use home_url for wc-ajax requests
2017-09-29 11:42:08 -03:00
Mike Jolley
fbe6db5c02
Just use home_url for wc-ajax requests
2017-09-29 15:08:14 +01:00
Mike Jolley
e0421cd7bc
Replay protection on refunds
...
Sends the current refunded amount with the request, so if a refund is
attempted twice it will mismatch.
Fixes #13614
2017-09-28 16:17:13 +01:00
Claudio Sanches
f2da349bcf
Remove slash frmo ajax endpoint
2017-09-27 14:00:58 -03:00
Claudio Sanches
5721bc6044
Improved WC_AJAX->get_endpoint()
2017-09-27 12:07:27 -03:00
Mike Jolley
4275c65ff0
Show error messages for ajax application of coupons
2017-09-27 12:50:20 +01:00
claudiulodro
4f5356160b
Dont load gateways unless we really need them
2017-09-25 14:37:13 -07:00
claudiulodro
c889908ac8
Load up gateways on ajax order status transitions
2017-09-25 14:34:43 -07:00
Matt Miller
a871d36380
Added wp_unslash() to address fields on the checkout page ( #16874 )
...
* Added wp_unslash() to address fields on the checkout page
* Cleaned up code indentation
* Added wp_unslash() function on remaining POST address fields on checkout
2017-09-21 17:37:27 +01:00
Mike Jolley
a7b2ae8661
Update shipping code to see if full address has been entered before showing no shipping notice
...
Fixes #16757
2017-09-08 14:54:15 +01:00
Mike Jolley
2a71a66fc9
Order screen refinements and preview window
2017-09-04 17:42:31 +01:00
Mike Jolley
e0b4d59bb6
Merge pull request #16566 from franticpsyx/reload-order-items-on-add
...
Reload items table after adding line item manually
2017-08-29 10:08:29 +01:00
Manos Psychogyiopoulos
a55c2714f5
Do away with 'new_row' class
2017-08-29 12:02:02 +03:00
Mike Jolley
804feb9333
Store fee amount and prevent totals going negative
2017-08-23 12:15:06 +01:00
Mike Jolley
f18a146d0f
Prompt to apply fee in admin
2017-08-23 11:22:18 +01:00
Manos Psychogyiopoulos
1596979d75
Reload order items on add
2017-08-22 15:19:20 +03:00
Mike Jolley
95cc51ae5c
Swap to text input for tax rate %, and format as decimal.
...
Closes #16524
2017-08-21 12:49:23 +01:00
Claudiu Lodromanean
a4d3518a61
Merge pull request #16508 from woocommerce/remove-manual-discounts
...
Removed manual discounts code
2017-08-18 08:30:07 -07:00
Mike Jolley
b34b7bf850
Merge pull request #16512 from Umangvaghela/issue-16511
...
Yoda condition is missing in class-wc-ajax.php
2017-08-18 12:08:06 +01:00
Umangvaghela
5e8723b99e
Set Yoda condition
2017-08-18 16:26:21 +05:30
Mike Jolley
a9a93436fc
rename ajax method
2017-08-18 10:59:55 +01:00
Mike Jolley
e99471c0cd
Removed manual discounts code
2017-08-18 10:36:10 +01:00
Mike Jolley
835d0ab450
Fix remove tax column
...
Closes #16443
2017-08-15 14:51:12 +01:00
Mike Jolley
87858d1407
recalc on remove/add
2017-08-10 16:32:24 +01:00
claudiulodro
a416ebe09b
It kind-of works.
2017-08-09 14:55:35 -07:00
Mike Jolley
d40edfe9a6
add_order_discount ajax method
2017-08-09 14:54:30 +01:00
James Kemp
8ebe8a1720
Add sorting ID and menu orders to sorting action
2017-08-05 12:05:47 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
Mike Jolley
0517673cfa
Reverse results of wc_array_cartesian so variations are created in a more expected way
...
Closes #16117
2017-07-17 11:02:47 +01:00
Claudio Sanches
eb4caec13e
Applies wc_delete_order_note() and properly delete notes by AJAX
2017-07-13 19:38:37 -03:00
Mike Jolley
37fc4c8f77
Ajaxify the product category filter ( #16110 )
...
* Ajaxify the product category filter
Closes #12773
* Min
2017-07-13 17:04:40 +01:00
Mike Jolley
7c321a2269
Ajaxify widget remove from cart button
...
Fixes #13171
2017-07-13 12:15:13 +01:00
Mike Jolley
6685a4199c
Pass correct value to woocommerce_shipping_classes_save_class when inserting a new term
...
Fixes #16027
2017-07-10 10:03:46 +01:00
Mike Jolley
bf613bc922
Limit results to 20 for short strings and allow < 3 chars
2017-05-16 10:16:04 +01:00
Mike Jolley
25bca1c218
Merge branch 'pr/13391'
2017-04-28 13:36:10 +01:00
Mike Jolley
ca0c3e0bb8
Merge pull request #14064 from rafsuntaskin/develop
...
added bulk variation update for stock status, resolves #14046
2017-04-27 17:37:59 +01:00
Mike Jolley
801f5e1eb1
Avoid escaped quote chars in strings
...
Closes #14670
2017-04-26 13:51:53 +01:00
Claudio Sanches
accf956632
Merge pull request #14500 from woocommerce/fix/14494
...
Removed the non-functional order total input and combine the recalculation buttons into one working button.
2017-04-20 00:43:22 -03:00
Manos Psychogyiopoulos
1670f9ae60
Fix typo in json_search_downloadable_products_and_variations
2017-04-19 13:20:05 +03:00
Mike Jolley
2a4103d776
Removed the non-functional order total input and combine the recalculation buttons into one working button.
...
Fixes #14494
2017-04-18 19:44:42 +01:00
Claudio Sanches
4133f77a31
Merge pull request #14242 from dixitadusara/issue-14227
...
Incorrect sale dates set when bulk editing variations ref #14227
2017-04-11 17:26:58 -03:00
dixitadusara
1bf13e2b8b
Incorrect sale dates set when bulk editing variations ref #14227
2017-04-11 13:04:39 +05:30
rafsuntaskin
ac5de585e5
added bulk variation update for stock status, resolves #14046
2017-04-07 02:11:04 +06:00
Claudio Sanches
2ffb2e8853
Allow search customers by ID in admin customer ajax search
...
Closes #13980
2017-04-06 02:19:12 -03:00
Claudio Sanches
014262c0cc
Fixed returned data from WC_AJAX::get_customer_details()
2017-04-03 03:00:07 -03:00