Commit Graph

3444 Commits

Author SHA1 Message Date
Tamara Zuk 20655d367d Introduce `woocommerce_product_is_on_sale` filter
This filter is useful for extensions like Measurement Price Calculator
which alter the product price quite a bit, but would still like the
sale badge to appear :)

Current workaround is to use three filters ( `woocommerce_get_price`,
`woocommerce_get_regular_price`, and `woocommerce_get_sale_price` )
which most extension may be using already, but not all need/want to
alter these prices.
2014-11-14 18:00:03 -05:00
Mike Jolley 537233efcc Split is_valid() into separate methods 2014-11-14 17:18:02 +00:00
Mike Jolley f600c5ec05 Limit coupons to X needs to persist across lines during calc
Fixes #6745
2014-11-14 16:38:33 +00:00
Mike Jolley 1d3b8db754 Move formatting logic 2014-11-14 16:22:01 +00:00
Mike Jolley 668e5ffb5c Some refactoring of the coupon class to load data with less code 2014-11-14 16:22:01 +00:00
claudiosmweb a91dd8b516 Fixed missing comma
@mikejolley
2014-11-14 12:09:02 -02:00
Mike Jolley 4b5d22b8e8 Format totals to 2dp when doing paypal checks Closes #6678 2014-11-14 13:17:17 +00:00
Mike Jolley 9701dad114 API - set_fee should support tax_data
Closes #6719 cc @maxrice
2014-11-14 13:14:48 +00:00
Mike Jolley 2e2ce3c286 [2.2] During refunds, correctly set shipping tax totals
Fixes #6691
2014-11-14 12:52:43 +00:00
claudiosmweb 8413d68de6 Added Simplify Commerce minified js file 2014-11-14 09:58:21 -02:00
claudiosmweb c683720b02 Removed old ajax_loader_url param from all js files 2014-11-14 09:52:44 -02:00
James Koster c187c002be mar icons stuff 2014-11-14 09:59:12 +00:00
James Koster c28e7821d5 add dependency to dashicons. 2014-11-14 09:49:59 +00:00
James Koster d765c3138c dashicons for loader and arrows. 2014-11-14 09:47:45 +00:00
James Koster 30a5c4bfdb bye bye ajax loader gif. 2014-11-13 18:28:15 +00:00
Mike Jolley 9abbf4cef8 Fix coupons by date queries to prevent inflated results
Closes #6742
2014-11-13 17:25:45 +00:00
Mike Jolley 2b4f68cf33 Merge pull request #6746 from ThomasSultana/master
#6740 Expose Previous Item Quantity
2014-11-13 08:49:22 -08:00
Mike Jolley 4c8a3eaba5 Merge pull request #6738 from bryceadams/master
Add script_debug $suffix for admin settings.js
2014-11-13 08:43:51 -08:00
Mike Jolley 4a6dc10300 Merge pull request #6741 from ragulka/meta-box-field-attributes
Custom attributes for select, checkbox and textareas
2014-11-13 08:43:38 -08:00
Mike Jolley ea335e5e61 missing colon in wc-emails class 2014-11-13 14:02:06 +00:00
Mike Jolley 7c666852c7 If totals mismatch in paypal, don't send line items 2014-11-13 13:41:51 +00:00
Illimar Tambek a7a913ab09 Custom attributes for select, checkbox and textareas 2014-11-13 13:26:52 +02:00
ThomasSultana d3542a2192 #6740 Expose Previous Item Quantity
woocommerce_after_cart_item_quantity_update will now also pass the old quantity. #6740
2014-11-13 12:11:24 +01:00
Bryce d717eed3ad Add script_debug $suffix for admin settings.js 2014-11-13 15:57:09 +07:00
James Koster 452cb56cd9 layered nav count markup matches product/post categories. #5606 2014-11-13 08:30:10 +00:00
claudiosmweb 75c28e715f fixed the deprecated filters 2014-11-12 22:57:45 -02:00
claudiosmweb bac2af461a Improved the WC_Emails::order_meta() method
Deprecated the woocommerce_email_order_meta_keys filter in favor to woocommerce_email_order_meta_fields

Now we can filter and work with the data without worrying about translations.

cc: @mikejolley @helgatheviking
2014-11-12 22:53:36 -02:00
claudiosmweb 7200b449dc Fixed the labels in customer details 2014-11-12 22:33:47 -02:00
Kathy Darling cfeeb7e9c6 Merge branch 'email_customer_details_hook_backup' into email_customer_details_hook_2
Conflicts:
	includes/class-wc-emails.php
2014-11-13 00:32:15 +01:00
Kathy Darling 520cb4e385 change array to account for localization per @claudiosmweb 2014-11-12 20:44:11 +01:00
Mike Jolley ca6885c4a3 Merge pull request #6731 from SiR-DanieL/patch-2
Hide order again button
2014-11-12 09:06:29 -08:00
Mike Jolley 622c031f05 Merge pull request #6733 from SiR-DanieL/patch-3
Improved Shop Page Display option
2014-11-12 09:05:54 -08:00
Mike Jolley ccdacb76b7 Fire all form handlers priority 20
Closes #6706
2014-11-12 16:43:29 +00:00
Mike Jolley a1c04670bc End output buffering even if buffers are empty.
Closes #6659
2014-11-12 16:15:47 +00:00
Mike Jolley 18ebded7c5 Make check_cart_items consistantly placed
Closes #6708
2014-11-12 15:47:27 +00:00
Mike Jolley 4b2ab00be3 Order again button template file
Closes #6664
2014-11-12 15:33:00 +00:00
Mike Jolley 3ccd54f268 English version of Taiwan address format
Closes #6651
2014-11-12 15:28:33 +00:00
Mike Jolley 87c417e56a When bulk editing variable products, set the stock status for non-stock managed variations
Fixes #6661
2014-11-12 15:15:05 +00:00
Mike Jolley bb1564d6c4 Incorrect variable
#6626 cc @claudiosmweb
2014-11-12 14:50:01 +00:00
Mike Jolley aaca944a85 API - Variation handling for stock data
Closes #6626 cc @claudiosmweb
2014-11-12 14:21:29 +00:00
Nicola Mustone fc2429549e Improved Shop Page Display option
I tweaked the text of the second option in Shop Page Display because i guess it confuse users that only read "Show subcategories". What about main categories?

I'd like to change also "Show both" to "Show all". What do you think?
2014-11-12 15:01:17 +01:00
James Koster 6a0fe9974f reports print styles. closes #4544 2014-11-12 12:53:57 +00:00
Nicola Mustone be59e9f80b Hide order again button
Hide "Order again" button if the user is not logged in.
2014-11-12 11:44:26 +01:00
Marin Atanasov 5ad973eac2 fixing small typo 2014-11-11 22:52:45 +02:00
Marin Atanasov 7c5be1ebde fixing small typo 2014-11-11 22:32:06 +02:00
Mike Jolley a076c5a69d get_product in product factory should return passed in object if its a product already
Fixes #6726
2014-11-11 16:24:22 +00:00
Mike Jolley 9e53b3fb33 Clear shipping transient on save
Closes #6723
2014-11-11 16:22:29 +00:00
James Koster 57809bc017 coding standards 2014-11-11 15:47:14 +00:00
Mike Jolley d58400399a Fix wildcard search and optimise local delivery + pickup Closes #6676 2014-11-11 15:46:57 +00:00
James Koster ecb5c77eae coding standards 2014-11-11 14:40:13 +00:00
James Koster 0321fc79d1 yoda 2014-11-11 14:31:27 +00:00
James Koster 7fd28c1295 order. #6639 2014-11-11 14:29:54 +00:00
James Koster c153a62406 Products setting tab. #6639 2014-11-11 14:25:46 +00:00
Mike Jolley f8bc4a0abd Add item cost column Closes #6650
@jameskoster
2014-11-11 13:40:47 +00:00
Mike Jolley b98b7354ad String sanitize_user Closes #6667 2014-11-11 13:11:40 +00:00
Mike Jolley 83fb26e30d Dump chosen select option. Closes #6593 2014-11-11 12:12:28 +00:00
Mike Jolley cb8fe34b4c get_base_tax_rates() + filter. Closes #6668 2014-11-11 11:56:17 +00:00
Mike Jolley b5f359b22a Merge pull request #6717 from bryceadams/master
Add filter for registration auth cookie #6707
2014-11-11 03:44:54 -08:00
Mike Jolley 01091c304c Fix conflicts in #5949 2014-11-11 11:23:44 +00:00
Mike Jolley 7490438da7 Merge pull request #6648 from SiR-DanieL/cancelled-order-email
Added cancelled order admin email
2014-11-11 02:53:35 -08:00
Mike Jolley f6fbdcd0ec Merge pull request #6704 from helgatheviking/update_cart_action
move $cart_updated inside $passed_validation IF statement. #6703
2014-11-11 02:05:12 -08:00
Barry Kooij fddcdd9453 Merge pull request #6716 from larsemil/master
Fix for #6715
2014-11-11 10:38:07 +01:00
Barry Kooij d02beb5610 Merge pull request #6702 from tivnet/patch-3
Update class-wc-shortcode-my-account.php
2014-11-11 10:29:49 +01:00
Marin Atanasov 8892b1aeb0 fixing a typo in comments in WC_Cart and its tests 2014-11-09 17:42:49 +02:00
Marin Atanasov cce13abc06 checking _wpnonce before using it in WC_Form_Handler::process_registration() 2014-11-09 17:14:55 +02:00
Bryce f489739349 Add filter for registration auth cookie #6707 2014-11-08 14:30:18 -08:00
Emil Österlund 8861e23078 Fix for #6715 2014-11-08 16:08:26 +01:00
Emil Österlund d77548f4cc woocommerce_form_field did not use "input_class" if type was set to select, this commit solves that 2014-11-08 16:02:43 +01:00
Kathy Darling 5a2c9a3ed2 move $cart_updated inside $passed_validation IF statement. #6703 2014-11-07 11:16:37 +01:00
Gregory Karpinsky 1f7eb3e595 Update class-wc-shortcode-my-account.php
Return if no data submitted. Otherwise, two PHP notices are issued on checking `! $user_data` and two `wc_add_notice` printed.
2014-11-06 23:08:48 -05:00
claudiosmweb 2f7fcb56ae Improved the Shipping class field in quick edit and bulk edit, closes #6681 2014-11-04 11:49:15 -08:00
claudiosmweb 6c4a65dbca Fixed the WooCommerce Status widget links, closes #6685 2014-11-04 00:22:28 -08:00
James Koster 5c04007605 products settings tab. #6639 2014-10-31 19:07:04 +00:00
Mike Jolley 591086eb9b Show notice when nonce isn't set. Fixes #6658
Wrap entire process_checkout method in try catch block to make errors
output correctly.
2014-10-31 15:03:53 +00:00
Mike Jolley 03e7a0ceaa Check order exists in wc_clear_cart_after_payment()
Fixes #6649
2014-10-31 12:37:13 +00:00
Mike Jolley 80cba5ee05 Adjust ZIP code UI in local pickup
Closes #6647
2014-10-30 16:11:02 +00:00
claudiosmweb 324a86cea8 Fixed DocBlock for wc_get_core_supported_themes() 2014-10-30 11:00:24 -02:00
claudiosmweb fa6edff86d Added UAH currency, closes #6653 2014-10-30 10:27:16 -02:00
Nicola Mustone 011bb0a784 Added cancelled order admin email 2014-10-29 15:05:43 +01:00
Mike Jolley ab562615ce [2.2] Remove strtolower and capitalize status names
Fixes #6624
2014-10-29 11:15:00 +00:00
Mike Jolley 69ca69ce52 Split up the product widget methods 2014-10-29 11:07:06 +00:00
Mike Jolley 9be06dd9e5 Merge pull request #6635 from tivnet/patch-2
Avoid notices if file does not exist
2014-10-29 10:37:28 +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 bcaf0e0779 Merge pull request #6641 from coenjacobs/filter-empty-rate-code
Allow to filter empty tax rate code
2014-10-29 10:04:34 +00:00
claudiosmweb a5ad428faf [2.2] fixed the value format in stock field with wc_stock_amount(), closes #6622 2014-10-28 18:37:53 -02:00
Coen Jacobs 7ea0d586c9 Allow to filter empty tax rate code 2014-10-28 12:24:09 +01:00
Barry Kooij b76fc7c68a Merge branch 'master' of github.com:woothemes/woocommerce 2014-10-28 11:53:44 +01:00
Barry Kooij 6312683eec Small codestyle fix to add_discount method. 2014-10-28 11:51:33 +01:00
Mike Jolley f4556fe710 [2.2] Fixed nonce check in form handler 2014-10-28 09:40:50 +00:00
Gregory Karpinsky 5460e0fed0 Avoid notices if file does not exist
1. I've got notices on files
my-theme/woocommerce/single-product\add-to-cart\bundle.php, 
my-theme/woocommerce/single-product\bundled-item-image.php, 
my-theme/woocommerce/single-product\bundled-item-title.php
which are Template Overrides (WooCommerce Product Bundles)
and do not exist in the WC plugin.

2. There should be a more elegant way, because this is just to shut up notices. No version comparison performed.
2014-10-27 20:21:33 -04:00
Mike Jolley b9eb83403e Split prevent_caching() method 2014-10-27 15:00:14 +00:00
Mike Jolley d5ca220eb4 Merge pull request #6630 from vachan/patch-1
Added Address Format for India
2014-10-27 14:09:04 +00:00
Mike Jolley b55812a8db Parse_file_path can just do replacements 2014-10-27 13:38:29 +00:00
James Koster fd81658cba storefront prompt. closes #6351 2014-10-27 13:38:04 +00:00
Vachan Kudmule 755d065107 Added Address Format for India
In India the Postcode is at the city level, thus updated the file in accordance with the Indian Standard of Address Formatting.
@line#382: Hyphenated Postcode to the City Name & State then Country.
REF: 
1) I am an Indian Citizen myself
2) http://en.wikipedia.org/wiki/Address_(geography)#India
3) http://www.addressdoctor.com/en/countries-data/address-formats.html#fbid=Bv4FMyXjoPh
4) http://www.bitboost.com/ref/international-address-formats/india/
2014-10-27 18:12:51 +05:30
Mike Jolley 04dcc6a3f2 Tweak download_product() method 2014-10-27 12:25:05 +00:00
Mike Jolley 8a310f96d8 Split download_headers() method 2014-10-27 11:01:27 +00:00
Mike Jolley abd81e6685 Split check_current_user_can_download() method 2014-10-27 11:01:27 +00:00
claudiosmweb dfde3f0028 Prevents adding trashed products in the cart 2014-10-24 20:12:55 -02:00
Mike Jolley cac813c1de Attempt to improve check_current_user_can_download() 2014-10-24 23:08:50 +01:00
Mike Jolley 63c923394c Additional download handler tweaks 2014-10-24 22:50:23 +01:00
Barry Kooij 80dc739ef0 Add return statement to check_cart_items 2014-10-24 20:56:06 +02:00
Mike Jolley c3023d4c8c WC_Download_Handler - Split download and download_product into multiple methods 2014-10-24 18:21:21 +01:00
Mike Jolley 3aaa397361 WC_Download_Handler - readfile_chunked refactor 2014-10-24 18:21:21 +01:00
Barry Kooij 1ffa095ef1 Merge branch 'master' of github.com:woothemes/woocommerce 2014-10-24 17:04:30 +02:00
Barry Kooij fbff5936d9 Added return statement to set_quantity 2014-10-24 16:02:31 +02:00
Mike Jolley 2b8be95360 Remove # (hash) from get_order_number and add to strings instead as needed.
Most places use Order #X
Some places use Order Number: X

Both are now valid.

Fixes #6518
2014-10-24 14:53:43 +01:00
Barry Kooij 25d9b9e54a WC cart codestyle 2014-10-24 15:35:45 +02:00
Nicola Mustone 2080bcc0c4 Typo in the system report 2014-10-24 13:54:51 +02:00
Mike Jolley cde08791f6 System status table separation Closes #6290 2014-10-24 12:49:27 +01:00
Mike Jolley c62a13148b Instead of using saved title from order, use payment method_title for refund buttons
Closes #6334
2014-10-24 12:11:28 +01:00
Mike Jolley 423b9c4969 Merge pull request #6596 from krautnerds/fix-cropping-in-core-function
Fixed cropping function to respect option settings
2014-10-24 12:01:58 +01:00
Mike Jolley eff1cf53c4 Fixes for sales by cat report, Closes #6606 2014-10-24 11:58:25 +01:00
Mike Jolley 44d0152bfc [2.2] Low stock report should hide no stock
Closes #6611
2014-10-24 11:42:05 +01:00
Mike Jolley f96f01b271 esc_url_raw, huh. What is it good for. Absolutely nuthin #5798 2014-10-23 15:47:21 +01:00
Mike Jolley 2294135bff Rename touch punch to stop grunt breaking minify 2014-10-23 14:38:19 +01:00
Mike Jolley a76f9d9096 Optimise paypal gateway, and revise encoding.
#5798
2014-10-23 14:27:24 +01:00
Mike Jolley d90aee6685 Add fallbacks for wp_get_referer()
Closes #6609
2014-10-23 12:13:42 +01:00
Mike Jolley 7cc71dea44 Allow API edit_product method to update post_name (slug)
Closes #6601
2014-10-23 11:58:39 +01:00
Mike Jolley daf14fc57e Use current user ID for refunds. Closes #6598 2014-10-23 11:36:15 +01:00
Mike Jolley 1739b8b048 Merge pull request #6597 from SiR-DanieL/patch-1
Order note use comment_date instead of GMT date
2014-10-23 10:42:18 +01:00
claudiosmweb 7219addebc [2.2] Fixed POST/PUT products attributes values, closes #6600 2014-10-22 18:46:39 -02:00
Nicola Mustone dcde2a52e2 Removed GMT 2014-10-22 17:31:12 +02:00
Nicola Mustone cbbdfadb74 Order note use comment_date instead of GMT date
The order comment note should not use always GMT date. I think using `comment_date` is better.

Ref Ticket: #224994
2014-10-22 17:28:25 +02:00
Florian Ludwig d443823a52 Fixed constant value cropping to option setting
I don’t think that it is the right way to set the cropping by checking
if the ‚crop’ option is set because it could have been set to 0 in the
options. In that case it would be cropped either way because isset
would also return true.
2014-10-22 15:23:20 +02:00
Mike Jolley 997e7e7910 extra sanitisation for product data 2014-10-22 12:12:25 +01:00
Mike Jolley 06aca23919 Enforce slug format of translated edit-address-slugs.
Fixes issues with addresses not loading correctly in edit account.
2014-10-22 11:26:09 +01:00
Mike Jolley bb7f5800f5 Merge pull request #6591 from SiR-DanieL/patch-1
Avoid notice errors with W3 Total Cache
2014-10-22 09:39:55 +01:00
claudiosmweb 861a34c348 Removed the frontend styles setting #6589 2014-10-21 20:12:39 -02:00
claudiosmweb 95605982ba Load billing and shipping address when get the values in checkout, closes #6590 2014-10-21 19:56:20 -02:00
claudiosmweb eba08c41f3 alt attribute from paypal logo now is translatable 2014-10-21 19:31:37 -02:00
Nicola Mustone 359859df5c Avoid notice errors with W3 Total Cache
Avoid errors in the admin with W3 Total Cache when you add an extra space by mistake.
2014-10-21 22:24:55 +02:00
Mike Jolley b349c0883c WP remote GET test for updater
cc @kloon @ChromeOrange
2014-10-21 16:38:03 +01:00
Mike Jolley e917f10b91 Fix 2.3 plain text emails 2014-10-21 16:18:59 +01:00
Mike Jolley 0bc3ad868d [2.2] Fix error message with maximum amount
Fixes #6567
2014-10-21 14:55:43 +01:00
Mike Jolley e4b212cb3a [2.2] Fix stock report queries Closes #6565 2014-10-21 14:50:18 +01:00
Barry Kooij 4d3fbaa9e0 Regex escape mathes before using them as regex to prevent delimiter problems. 2014-10-21 15:20:19 +02:00
Barry Kooij 153664d1f1 Merge branch 'master' of github.com:woothemes/woocommerce 2014-10-21 15:09:52 +02:00
Barry Kooij e122cf482a Changed pregmatch delimiters and optimized regex.
Fixes #6584.
2014-10-21 15:09:43 +02:00
Barry Kooij 77521f699b Optimized cart get_checkout_url method. 2014-10-21 15:08:51 +02:00
claudiosmweb 42820ea88d introduced the wc_strtolower() function, closes #6575 2014-10-21 10:51:16 -02:00
Mike Jolley e41c9f3f91 Merge pull request #6585 from SiR-DanieL/bacs-slashes
Fixed indentation and added wp_unslash
2014-10-21 13:25:02 +01:00
Mike Jolley 4d44bf2c36 Merge pull request #6539 from helgatheviking/variation-is-defined
add variation class method which tests if all the attributes are set
2014-10-21 13:24:10 +01:00
Mike Jolley b09f1062da Merge pull request #6579 from woothemes/hotfix-unqiue-nonce-edit-details
[2.2] Make edit account details nonce unique to customer.
2014-10-21 13:17:36 +01:00
Gerhard 045046492f Fix nonce check on edit address. 2014-10-21 13:24:01 +02:00
Gerhard afc0ddf6e7 Propper verify nonce use on order tracking page. 2014-10-21 09:46:14 +02:00
Gerhard 5c1ad63876 Propper verify nonce use on checkout 2014-10-21 09:44:53 +02:00
Nicola Mustone b9a89e4589 Fixed indentation and added wp_unslash 2014-10-21 09:43:57 +02:00
Gerhard a08b501ebc Propper verify nonce use on edit account. 2014-10-21 08:53:54 +02:00
Gerhard 817e23a807 Propper verfiy nonce use on edit address. 2014-10-21 08:52:19 +02:00
Gerhard 36ae6b8876 remove more debug info. 2014-10-21 08:51:35 +02:00
Gerhard 9b7fd195a7 remove debug info. 2014-10-21 08:51:00 +02:00
Gerhard 1c46b7324a Register nonce used same name as register form button. 2014-10-21 08:50:23 +02:00
Gerhard 9f438edfa0 Correctly use verify nonce on register 2014-10-21 08:41:52 +02:00
Gerhard f2e65f0857 Propper verify_nonce use on reset password functionality. 2014-10-21 08:39:16 +02:00
Gerhard 1bc74317df Use wp_verify_nonce correctly in process_login 2014-10-21 08:33:48 +02:00
Gerhard 1fd61e6d75 Use wp_verify_nonce correctly in save_account_details. 2014-10-21 08:31:48 +02:00
Mike Jolley 96a9e48823 Refactored stock emails with consistent filters mirroring other email classes
Closes #6580
2014-10-20 16:59:02 +01:00
Mike Jolley 6f7ff36940 Prefix filter names #6576 2014-10-20 16:12:35 +01:00
Mike Jolley 1922b377e8 Corrected comment 2014-10-20 16:10:39 +01:00
Mike Jolley 5724d1c43f Merge pull request #6576 from primozcigler/master
Added the filter for the ajax cart_hash
2014-10-20 16:10:23 +01:00
Mike Jolley 4fa1404d86 Merge pull request #6572 from doublesharp/patch-2
Update class-wc-addons-gateway-simplify-commerce.php
2014-10-20 16:06:57 +01:00
Gerhard 1fdff91114 Make edit account details nonce unique to customer. 2014-10-20 09:35:54 +02: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
Nicola Mustone a14bc870c4 Improved system status 2014-10-18 11:56:58 +02:00
doublesharp 8dae054e0c Update class-wc-addons-gateway-simplify-commerce.php
Use new $order->get_status() in lieu of legacy $order->status to support the new post_status format in WC 2.2
2014-10-18 01:04:40 -07:00
Mike Jolley fa38b34977 Merge pull request #6564 from krautnerds/rest-api-filter-by-product-cat
REST API 2.0: Add possibility to filter products by product_cat
2014-10-17 16:36:44 +01:00
Florian Ludwig 671fcde079 Changed filter name and some code style compliance 2014-10-17 17:34:26 +02:00
Mike Jolley bc0cb6fc53 Merge pull request #6566 from helgatheviking/add-to-cart-handler-2
add custom add to cart handler. update for #5923
2014-10-17 16:28:30 +01:00
Kathy Darling 41c5b18659 add custom add to cart handler. update for #5923 2014-10-17 17:26:50 +02:00
Mike Jolley 8766cfa6df Tweak woocommerce_get_price_html_from_to in #6455 2014-10-17 16:25:54 +01:00
Mike Jolley 2668f0b8dd Merge pull request #6455 from paulwilde/from-to-filters
Introduce filters to get_price_html_from_text() and get_price_html_from_to()
2014-10-17 16:25:16 +01:00
Mike Jolley 20279831e7 Tweak to naming in #6375 2014-10-17 16:24:21 +01:00
Kathy Darling 3d4a534e6a rename method to has_all_attributes_set 2014-10-17 17:24:04 +02:00
Mike Jolley 21784e80cd Merge pull request #6375 from dominic-p/settings-desc
Moved description and tip generation to a separate method
2014-10-17 16:19:02 +01:00
Florian Ludwig 29f152633b RESTAPI 2 Add possibility to filter by product_cat
For products it would be nice to be able to filter by product cat.

usage: filter[product_cat]=CATSLUG
2014-10-17 16:53:14 +02:00
James Koster e27d4afee1 data tabs tweaks. #6562 2014-10-17 14:50:23 +01:00
Mike Jolley ebea42f7ee Merge branch 'pr/6322'
Conflicts:
	.gitignore
2014-10-17 14:43:54 +01:00
Mike Jolley 10fc2f7321 Add separate meta box for wc endpoints 2014-10-17 14:42:35 +01:00
James Koster eb258950bd variations markup / css refactor. #6562 2014-10-17 12:17:30 +01:00
Mike Jolley 5ff8f65d1f Merge pull request #6507 from chrisnharvey/master
Pass cart item values to is_valid_for_product method in WC_Coupon
2014-10-17 12:09:23 +01:00
Mike Jolley d079a7a1a6 Merge pull request #6557 from SiR-DanieL/lost-psw
Fix lost password submitting twice
2014-10-17 11:54:46 +01:00
Tamara Zuk f34187d5d3 Allow for non-integer stock quantities
It looks like a3b522aff8 removed this
ability.
This would be very useful for extensions like Measurement Price
Calculator.
2014-10-17 00:52:56 -04:00
Nicola Mustone 6e9176a5bf Fix disable password submitting twice 2014-10-16 21:59:45 +02:00
Mike Jolley 0718aef09e wc_update_product_stock should update stock regardless, if the meta data doesn't currently exist
Fixes #6553
2014-10-16 17:15:10 +01:00
Mike Jolley 4234502265 Coupon API: Don't return current timestamp when expiry_date is not set
Fixes #6546
2014-10-16 16:59:51 +01:00
Mike Jolley dfa4f8b63a Merge pull request #6552 from Aaron3/patch-1
Fixed API create_order to allow setting line totals.
2014-10-16 16:53:18 +01:00
Mike Jolley 9fb4e1cee4 Merge pull request #6538 from krautnerds/rest-api-all-customer-fix
REST API 2.0 Add possibility to get all customers
2014-10-16 15:54:00 +01:00
Mike Jolley 1af90cd169 Only show integrations subnav when there are multiple integrations. 2014-10-16 15:53:12 +01:00
Mike Jolley 05d5849a67 Check mb_strtolower exists. 2014-10-16 15:53:12 +01:00
Mike Jolley 152105d334 Merge pull request #6548 from SiR-DanieL/patch-2
Fix potential bug
2014-10-16 12:15:17 +01:00
Aaron 0b557e175e Fixed API create_order to allow setting line totals.
$order->add_product expects totals without the `line_` prefix. See https://github.com/woothemes/woocommerce/blob/master/includes/abstracts/abstract-wc-order.php#L149

Without this, setting product coupons doesn't work correctly. (The coupon is saved to the order but no discounts are added to the product.)
2014-10-16 13:56:08 +03:00
Nicola Mustone 437e041d3d Fix potential bug
Added `default` to prevent notices and reordered the code.
2014-10-16 08:56:28 +02:00
Florian Ludwig e1039c127f Reworked code to be Wordpress code style compliant 2014-10-15 19:43:13 +02:00
mgiulio 8567f2f1fd Fix comment 2014-10-15 14:51:15 +02:00
Kathy Darling 0304778f18 add variation class method is_all_defined() which tests if all the attributes are set 2014-10-15 09:11:41 +02:00
Florian Ludwig 3a4cc14f62 Fixed intendation 2014-10-15 00:31:56 +02:00
Florian Ludwig 846c24d119 REST API 2.0 Add possibility to get all customers
usage similar to products and orders: filter[limit]=-1
2014-10-15 00:24:16 +02:00
Mike Jolley 44ad43216e Turn caching back on 2014-10-14 17:01:15 +01:00
Mike Jolley c01bc63020 Correct report handling for full and partial refunds.
Fixes #6530

@claudiosmweb look good?
2014-10-14 16:39:57 +01:00
Barry Kooij b353c75d43 Display excluded categories in coupon error message.
Related #6400.
2014-10-14 16:18:31 +02:00
Barry Kooij 4371c661ec Codestyle. 2014-10-14 16:11:46 +02:00
Barry Kooij 6ea096ad42 Merge branches 'master' and 'master' of github.com:woothemes/woocommerce 2014-10-14 16:10:05 +02:00
Barry Kooij 389eae28c2 Display what products are excluded from using with a coupon.
Fixes #6400.
2014-10-14 16:09:56 +02:00
claudiosmweb 223957089e fixed the new WC_Order_Refund::init() 2014-10-14 10:46:30 -03:00
Mike Jolley 4954020877 Correct refund's init function 2014-10-14 14:31:31 +01:00
Mike Jolley e03cf9c204 Set order_type property, and move actual order loading to separate method to make it easier for sub-classes to handle just that process.
Closes #6513
2014-10-14 14:25:53 +01:00
Mike Jolley c2ce3b0d88 Tidy 2014-10-14 14:25:53 +01:00
Barry Kooij acf6644830 Confirm to user email is sent when sending email from within order edit screen.
Fixes #6461.
2014-10-14 15:18:09 +02:00
Mike Jolley 3df2c39bf5 If order gets cancelled behind the scenes, don't clear user cart
#6524
2014-10-14 12:54:23 +01:00
Mike Jolley e90c634745 Code tidy 2014-10-14 12:54:10 +01:00
Mike Jolley e43285f677 [2.2] Fix /shop/ base URL Non Latin issue with url decode
Fixes #6512
2014-10-14 12:24:45 +01:00
Mike Jolley 4a2a2714f6 Make cart total consider taxes
Fixes #6522
2014-10-14 12:20:38 +01:00
Mike Jolley ea1d61b88e Use mb_strtolower to prevent issues with unicode chars
Fixes #6525
2014-10-14 11:58:28 +01:00
Mike Jolley f2d668a6b6 Allow a delimiter to be set in $item_meta->display()
Fixes #6526
2014-10-14 11:54:20 +01:00
Mike Jolley 30edd0aa05 [2.2] Prevent notice if meta is not set Closes #6514 2014-10-14 11:26:14 +01:00
Mike Jolley 65d9fec4c8 Merge pull request #6520 from GeertDD/patch-1
Fix typo
2014-10-13 23:39:11 +01:00
Mike Jolley d68cab0eec In the US address format, use state code rather than the full state name. 2014-10-13 18:28:38 +01:00
Geert De Deckere b105a24cf8 Fix typo 2014-10-13 15:42:07 +02:00
Chris Harvey 4119e70b3c Setting values to an optional argument 2014-10-13 09:32:40 +01:00
claudiosmweb 61e96b0a8b Prevent warnings in WC_Shipping_Method::is_available() when exclude countries 2014-10-10 23:01:19 -03:00
claudiosmweb 86ef09970a Prevented warnings when countries is empty in shipping methods.
Stopped this erros:

PHP Warning:  array_intersect(): Argument #1 is not an array in
wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php
on line 182
PHP Warning:  in_array() expects parameter 2 to be array, null given in
wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php
on line 194

@mikejolley
2014-10-10 22:46:19 -03:00
Chris Harvey 00c77d1716 Accept cart item values in is_valid_for_product method and pass these to the woocommerce_coupon_is_valid_for_product filter 2014-10-10 15:45:01 +01:00
Chris Harvey 504253c909 Pass cart values to is_valid_for_product method 2014-10-10 15:44:18 +01:00
Mike Jolley b340fd68ae Made tax importer expand postcode ranges.
Closes #4463
2014-10-10 15:18:47 +01:00
Mike Jolley 38000b1785 Define WC tables in wpmu_drop_tables
Closes #5396
2014-10-10 14:48:08 +01:00
Mike Jolley bf885f846e Refactor - get_product_search_form().
Also removed < 2.1 deprecated filter mapping.

Closes #4444
2014-10-10 12:48:05 +01:00
Mike Jolley 98361804e6 Merge pull request #5767 from IAmJulianAcosta/touch-compability
Price filter widget touch compability
2014-10-10 12:16:18 +01:00
Mike Jolley f36cb8b53c [2.2] Make updater set parent backorder status
Closes #6494
2014-10-10 11:28:24 +01:00
claudiosmweb bc1ea4fdea woocommerce_ prefix in refund actions, related #6477 2014-10-09 13:15:42 -03:00
Mike Jolley 5e07ec0382 $cart_totals should be checked to see if its an array
Closes #6496
2014-10-09 16:50:42 +01:00
Mike Jolley 5c1b931438 [2.2] Fix refund date.
Fixes #6499
2014-10-09 16:43:26 +01:00
Mike Jolley 4d084ed7ae Merge pull request #6477 from 75nineteen/master
[Maybe 2.2] Added two hooks to support refund Followup Emails
2014-10-09 15:56:17 +01:00
Mike Jolley cb631793c5 Merge pull request #6489 from BFTrick/css-inliner-2
Adding CSS Inliner
2014-10-09 15:55:57 +01:00
Mike Jolley 728086d175 Merge pull request #6324 from SiR-DanieL/reports-currency
Fixing currency position in reports
2014-10-09 12:39:20 +01:00
Mike Jolley 02f5ed7542 Merge pull request #6327 from SiR-DanieL/order-notes
Fixing order notes date
2014-10-09 12:39:00 +01:00
Mike Jolley 26186f815a Fix potential error if variation doesn't exist 2014-10-09 11:20:46 +01:00
Mike Jolley dc822594fd Merge pull request #6483 from bekarice/email-typos
Fixes typos
2014-10-08 23:06:42 +01:00
Kathy Darling 2c63d5ca13 add filter to rename Customer Details section 2014-10-08 23:58:13 +02:00
Kathy Darling eaabcd5dfa fix variable naming error 2014-10-08 23:57:48 +02:00
Kathy Darling f13a7142fe make `woocommerce_email_order_meta_keys` filter args match `woocommerce_email_customer_details_keys` 2014-10-08 23:49:12 +02:00
Kathy Darling a13218eba2 add customer details and addresses to emails via `woocommerce_email_customer_details` hook 2014-10-08 23:47:50 +02:00
Patrick Rauland 4b30a2aed5 implementing emogrifier email css inliner 2014-10-08 15:34:31 -06:00
Patrick Rauland b5fb174697 adding emogrifier class for inlining email styles 2014-10-08 15:32:46 -06:00
Mike Jolley 666b25b352 Removed save_post remove_action call which breaks 3rd party plugins.
Fixes #6485, but means #6376 needs another solution.
2014-10-08 21:30:52 +01:00
Beka Rice de0e01f05b Fixes typos 2014-10-08 12:21:23 -04:00
Mike Jolley b041093194 [2.2] Added woocommerce_product_subcategories_hide_empty filter
Use add_filter( ‘woocommerce_product_subcategories_hide_empty’,
‘__return_true’ ); to enable. Fixes #6482
2014-10-08 15:19:54 +01:00
Mike Jolley 853e17d28f [2.2] Prevent address fields being empty when editing an address within an order
Fixes #6476
2014-10-08 15:13:26 +01:00
Mike Jolley 8d38401d64 [2.2] Product attribute shortcode should return columns class
Fixes #6481
2014-10-08 15:07:03 +01:00
Mike Jolley e9393ddaf7 Settings API should use h3 rather than h4 when outputting titles 2014-10-08 15:06:38 +01:00
75nineteen Media f57de2cf9a Added two hooks to support refund Followup Emails 2014-10-07 15:58:21 -07:00
Mike Jolley c6c5265493 Conflict 2014-10-07 11:10:29 +01:00
Mike Jolley 3f6e6309be define $view 2014-10-07 11:09:42 +01:00
Mike Jolley 80716fbd46 Corrected get_return_url docblock 2014-10-07 11:09:38 +01:00
Mike Jolley 8c3d142002 define $transients_to_clear 2014-10-07 11:09:35 +01:00
Mike Jolley 615ebc3916 is_GB_postcode define array 2014-10-07 11:09:32 +01:00
Mike Jolley 742594e207 Tweaks to order class 2014-10-07 11:09:29 +01:00
Mike Jolley 58904fcf83 Removed deprecated get_product() calls 2014-10-07 11:09:25 +01:00
Mike Jolley 090ab4a56d Tweaks to report class 2014-10-07 11:09:22 +01:00
Mike Jolley ac14427c32 get_order_report_data should return string 2014-10-07 11:09:19 +01:00
Mike Jolley 1de3b8a034 Set default $query 2014-10-07 11:09:16 +01:00
Mike Jolley d52664d738 Tweak report debug output - add pre 2014-10-07 11:09:12 +01:00
Mike Jolley 98ec3da5ac Merge pull request #6472 from thenbrent/edit_order_currency
Display order & item totals with correct currency on Edit Order screen
2014-10-07 10:16:16 +01:00
thenbrent 66cbf9f3a3 Tabs & spaces 2014-10-07 15:16:59 +10:00
thenbrent 6869403a39 Disable autosave for all order types w/ meta boxes 2014-10-07 15:13:56 +10:00
thenbrent 94355b73dc Display order & item totals with correct currency
If a store changes currency or is using an extension which allows for
purchasing in multiple currencies, the currency symbol displayed on the
Edit Order admin screen may be incorrect for previous orders because
it uses the `wc_price()` fallback, which is the site wide currency
rather than the currency for that specific order. This fixes that.
2014-10-07 09:59:52 +10:00
Mike Jolley 589da28f42 Small tweak on text in #6457 2014-10-06 14:31:32 +01:00
Mike Jolley 83d8eb7fd8 Merge pull request #6457 from bryceadams/master
Re-do coupon free shipping option desc issue #6391
2014-10-06 14:29:16 +01:00
Mike Jolley 46a753cb74 [2.2] Unhook save_meta_boxes after first successful run to prevent race conditions
Fixes #6376
2014-10-06 14:26:22 +01: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
James Koster ef28c43862 move proceed to checkout button. closes #5496 2014-10-06 12:33:39 +01:00
Mike Jolley 90297a09af [2.2] When formatting meta data for display, suffix items to prevent issues when there are multiple values for the same meta key
Fixes #6404
2014-10-06 12:17:07 +01:00
Mike Jolley 7d9598d0a8 [2.2] Core still has issues dealing with pad_counts + parent when getting categories.
Workaround by not hiding empty cats, then filter the returned list
using wp_list_filter. Fixes #6459
2014-10-06 11:41:33 +01:00
Gustavo Bordoni c335d223d8 Remove all calls to get_page(), as it was deprecated on WordPress 3.5.0 2014-10-06 06:55:45 -03:00
Mike Jolley 9947c22cfe Prevent order statuses affecting other queries.
Closes #6437
2014-10-03 14:35:45 +01:00
Mike Jolley d1de7f42b9 Made template debug mode set WC_TEMPLATE_DEBUG_MODE constant and remove all overrides for all template loading functions.
Closes #6436
2014-10-03 10:52:11 +01:00
Bryce 5a6f0b1529 Re-do coupon free shipping option desc issue #6391
I didn’t update the POT as was having some poedit issues
2014-10-03 16:44:57 +07:00
Mike Jolley c8ffee57ff [2.2] Ensure rate is double
Fixes #6442
2014-10-03 10:11:14 +01:00
Mike Jolley 3d36f446d3 Deprecate woocommerce_admin_css action - it's pointless
Will be removed in 2.4. Closes #6456
2014-10-03 10:07:28 +01:00
Paul Wilde 279c01d005 Introduce filters to get_price_html_from_text() and get_price_html_from_to(). 2014-10-02 20:11:34 +01:00
Mike Jolley 2b55643460 Notices from earlier cache helper change 2014-10-02 17:18:04 +01: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
Mike Jolley 973112d132 When user tries to download a file and isn't logged in, send them to the account page with a notice.
Closes #6397
2014-10-02 15:21:39 +01:00
Mike Jolley 67e47ab682 Updated prevent_caching() method to work if a cart/checkout page isn't set.
Closes #6396
2014-10-02 14:52:09 +01:00
Mike Jolley 819436f0a3 Merge pull request #6388 from quadshot/action-buttons
Allow adding custom 'action buttons' in order item metabox
2014-10-02 14:06:11 +01:00
Mike Jolley 0512a114ec Merge pull request #6386 from justinstern/master
Adds a woocommerce_add_to_cart_sold_individually_quantity filter
2014-10-02 14:05:41 +01:00
Mike Jolley e5ebeff99c Merge pull request #6383 from BFTrick/iss-6358
Refactoring Email Classes to Use One Send Method
2014-10-02 14:00:18 +01:00
Mike Jolley 5f407f9830 Merge pull request #6401 from SiR-DanieL/patch-1
woocommerce_found_customer_details filter improvement
2014-10-02 13:58:10 +01:00
Mike Jolley 3964d3fc3c Merge pull request #6417 from corvannoorloos/attachment-thumbnail-url
category and product (-column) image(s) should be inserted as a thumbnail
2014-10-02 13:52:12 +01:00
Mike Jolley 3e20b113d6 Add hook to refund html
Closes #6406
2014-10-02 13:40:34 +01:00
Mike Jolley b519eb09d4 Merge pull request #6426 from ChuckMac/Checkbox_Tooltip
Enable tooltip for woocommerce_wp_checkbox in metabox
2014-10-02 13:32:36 +01:00
Mike Jolley a8d5ca561d Merge pull request #6405 from tamarazuk/master
[#6337] Return variation meta if it exists
2014-10-02 12:42:45 +01:00
Mike Jolley 61cb9814e6 Merge pull request #6446 from ragulka/unescape-redirect
Do not escape redirect url in form handler
2014-10-02 10:34:48 +01:00
Mike Jolley c9bb3cab87 Merge pull request #6423 from mgiulio/wc-gateway-paypal
[2.2] Use 'no' to disable the gateway
2014-10-02 10:11:16 +01:00
Mike Jolley 4f8735a86f Merge pull request #6443 from franticpsyx/master-filter-get_children
Port 'woocommerce_get_children' filter from 2.2-bleeding
2014-10-02 10:10:11 +01:00
Mike Jolley f652a17d6d Merge pull request #6448 from bekarice/textarea-maxlength
Add maxlength attribute to textarea fields
2014-10-02 10:09:12 +01:00
Chuck Mac ec83e932ed Adding refunds to Sales by Date report
Create a new axis for "in refunds" on the sales by date report.  Include
the refunds in the included time period.  Refunds do not reduce the sales
total in the report.
2014-10-01 23:35:34 -04:00
Beka Rice fa686eb9a7 Add maxlength attribute to textarea fields 2014-10-01 16:35:03 -04:00
Illimar Tambek 97ccd7c50f Do not escape redirect url in form handler 2014-10-01 21:26:35 +03:00
Manos Psychogyiopoulos 0966519adc woocommerce_get_children filter from 2.2 2014-10-01 19:42:20 +03:00