Commit Graph

3424 Commits

Author SHA1 Message Date
Mike Jolley 626d7f4256 Moved email methods to emails class 2014-11-26 00:03:00 +00:00
Mike Jolley 0d4d6fdcaf WC class cleanup 2014-11-26 00:03:00 +00:00
Mike Jolley 1993509e07 Removed unused variables from emails class, including content_type 2014-11-26 00:03:00 +00:00
Mike Jolley 206496b584 Split up WC_Product_Factory methods 2014-11-26 00:03:00 +00:00
Illimar Tambek 2752e0c61d Correct hook name: `woocommerce_email_settings_before` 2014-11-26 00:28:23 +02:00
Mike Jolley ce1d59c7ba Merge pull request #6838 from khag7/master
Corrected the docblock descriptions for two "send email" classes
2014-11-25 17:09:54 +00:00
Mike Jolley dbcc8430e9 Installer tweaks + unit tests closes #6356 2014-11-25 17:09:24 +00:00
khag7 bf15b5e351 Corrected the docblock description for the order cancellation email class
This email is sent when an order is cancelled, not when a new order is paid for.
2014-11-25 11:23:00 -05:00
khag7 067d62541e Corrected the docblock description
This is an email sent to the customer, not the admin.
2014-11-25 11:15:53 -05:00
Illimar Tambek 88c4c2394f Introduce email settings action hooks 2014-11-25 16:59:29 +02:00
claudiosmweb ce721fc86f [API] Fixed the coupons expiry_date format with POST and PUT, closes #6829 2014-11-25 12:44:33 -02:00
claudiosmweb c73bcb614e API - deletes the product when fails to create, closes #6801 2014-11-25 12:10:12 -02:00
Mike Jolley 3c82331a8b Store discount 'tax' to show discounts on prices including tax more accuratly
Also deprecated some functions named after having 2 levels of discounts.
2014-11-25 13:05:03 +00:00
Mike Jolley 4a8c541fbf Remove 'order' discounts from classes 2014-11-25 11:05:14 +00:00
Mike Jolley 1f3adbd0c2 esc_html for the term name 2014-11-25 10:38:54 +00:00
Mike Jolley 549d7ab2c0 Removed 'apply before tax' options for coupons - this should be the default core behaviour 2014-11-24 17:24:25 +00:00
Mike Jolley f90c146d01 Give product gallery low priority
Closes #5976
2014-11-24 15:29:37 +00:00
Mike Jolley 3a927d62dd Add tip to reports
Closes #5729
2014-11-24 15:18:41 +00:00
Mike Jolley fe6d52b705 Final tax class unit tests
Closes #6357
2014-11-24 14:57:11 +00:00
Bryce 3fd7997413 Move locale to new method in BACS gateway 2014-11-24 21:26:33 +07:00
Mike Jolley 802e807319 Limit length of password when creating web hook 2014-11-24 13:52:13 +00:00
claudiosmweb 2c48a87086 Fixed WC API Coupons params, closes #6828 2014-11-24 10:37:38 -02:00
Barry Kooij 4ed7de31ca Merge pull request #6820 from ryanr14/typo-fix
Spelling correction - insursion to insertion
2014-11-21 22:48:24 +01:00
Ryan Ray cc5be422cc Spelling correction - insursion to insertion 2014-11-21 16:46:33 -05:00
Barry Kooij 4dd60d42c7 Docblock fixes 2014-11-21 22:40:42 +01:00
Barry Kooij 47cc448028 Added correct docblock. 2014-11-21 22:34:30 +01:00
Barry Kooij 4b539e7a9a Merge branch 'master' of github.com:woothemes/woocommerce 2014-11-21 22:31:17 +01:00
Barry Kooij 6ebadd572a Added correct docblock. 2014-11-21 22:31:09 +01:00
Michael Tieso 70d5fc834a Spelling correction - calculdate to calculate 2014-11-21 13:26:32 -08:00
Barry Kooij f8a161c406 Documentation improvement. 2014-11-21 22:16:15 +01:00
Barry Kooij ae1ed2b7f6 Added missing param docblock. 2014-11-21 22:14:13 +01:00
Barry Kooij b131f250b6 Added missing docblock return statement. 2014-11-21 22:12:37 +01:00
Barry Kooij 64227fe9d8 Added missing docblock 2014-11-21 22:12:03 +01:00
Barry Kooij 33b53c30b5 Updated docblock and added return statement. 2014-11-21 22:09:46 +01:00
Mike Jolley f1f92e120d Merge pull request #6799 from bryceadams/patch-4459
#4459 - Add filters for product_list_widget before / after
2014-11-21 17:29:01 +00:00
Bryce e93c32565c merge changes 2014-11-22 00:09:11 +07:00
Mike Jolley 40e0fe7a4e Merge pull request #6811 from bryceadams/patch-5537
#5537 - Fix bulk edit overlap, bulkedit improvements
2014-11-21 16:40:28 +00:00
Mike Jolley d55b57dc8a Merge pull request #6812 from woothemes/remove-order-items-query-speed
Change remove_order_items subqueries to inner joins.
2014-11-21 16:40:06 +00:00
Mike Jolley b2f91a4a14 Merge pull request #6794 from franticpsyx/issue-5661-amendments
woocommerce_variation_is_visible/is_active filter args
2014-11-21 16:35:48 +00:00
Mike Jolley 8b4332a037 Refactors to shipping tax rate methods 2014-11-21 13:06:33 +00:00
Mike Jolley b440a6a165 Split find_rates method 2014-11-21 13:06:33 +00:00
Bryce 7abd1358fc Fix whitespace 2014-11-21 16:13:03 +07:00
Bryce 6dad8fdc59 #6026 - Introduction of Sort Code 'locale' for BACS
In the admin, it will use the store’s base country to determine the
term for ‘Sort Code’.

In the front-end, it will use the customer’s billing country to
determine the term for ‘Sort Code’.

In all cases, if a locale does not have a sortcode label set, it will
use ‘Sort Code’.

**Locales have been added for:**
* AU
* CA
* IE
* IN
* IT
* NZ
* SE
* US
* GB
* ZA

But may need adjusting based on user feedback.
2014-11-21 16:10:12 +07:00
Gerhard fa42c9d397 Change remove_order_items subqueries to inner joins.
Closes #6804
Hat tip Jason @ WPEngine
2014-11-21 09:18:31 +02:00
Bryce bad3b31a18 #5537 - Fix bulk edit overlap, bulkedit improvements 2014-11-21 13:37:14 +07:00
Bryce a6c88c9104 Only enqueue/localize on profile page 2014-11-21 12:42:32 +07:00
Mike Jolley 665d2aa8a3 combine city and postcode save logic 2014-11-20 21:02:10 +00:00
Mike Jolley dd53f8e730 Move widget registration to own function/file - avoid register_widget in class files 2014-11-20 20:56:24 +00:00
Mike Jolley f088f81dcf Optimise tax rate importer and use same code as tax settings class 2014-11-20 18:41:51 +00:00
Mike Jolley add83a75dc Tax rate importer parse error 2014-11-20 17:09:07 +00:00
Mike Jolley 1ec8dabf8a Added method for expanding postcode ranges 2014-11-20 17:08:17 +00:00
Mike Jolley 97d241c33c Moved delete tax rate rule 2014-11-20 15:46:07 +00:00
Mike Jolley 7472a722b2 Corrected format_ methods 2014-11-20 15:43:40 +00:00
Mike Jolley db13b2224f Fix refund class 2014-11-20 15:03:46 +00:00
Mike Jolley ce1a9b84c7 Redo construct and move settings/html to separate files 2014-11-20 15:03:45 +00:00
Mike Jolley 7df9f20e18 Merge pull request #6798 from bryceadams/patch-2906
#2906 - Set reviews count in tab to only count actual reviews
2014-11-20 12:16:02 +00:00
Mike Jolley 4fd8cd63cb Split up save_tax_rates() method 2014-11-20 11:11:08 +00:00
Bryce 333e4dd2fe Remove previously added filter, not necessary 2014-11-20 16:43:48 +07:00
Bryce 8b1cc5f902 #5850 - Add QR code to API credentials
This uses https://github.com/jeromeetienne/jquery-qrcode for generating
the QR code.

This is what it looks like:

![see screen shot](http://cld.wthms.co/11wpb+)

It’s small, **but**, it scans perfectly without any issues.
2014-11-20 15:46:46 +07:00
Bryce bd96565eeb #4459 - Add filters for product_list_widget before / after
2 new filters introduced:

* `woocommerce_before_widget_product_list`
* `woocommerce_after_widget_product_list`
2014-11-20 12:57:39 +07:00
Bryce 985df5bca4 #2906 - Set reviews count in tab to only count actual reviews
Nested comments shouldn’t be treated as reviews. This addresses that by
using `$product->get_rating_count()` to determine the correct number of
reviews, instead of get_comments_number.

It can be filtered using the new `woocommerce_product_reviews_count`
filter.
2014-11-20 12:39:07 +07:00
claudiosmweb b4e544e5dc Fixed coding styles and docblocks 2014-11-20 00:14:06 -02:00
claudiosmweb 6d4650dd7b Declared all Settings API variables 2014-11-19 23:11:08 -02:00
Mike Jolley c70c232e2c Optimised save tax rate logic 2014-11-20 00:51:06 +00:00
claudiosmweb 8eeb6fc204 Removed more some unused code 2014-11-19 22:43:09 -02:00
claudiosmweb 45ddc1d26e Merge branch 'master' of github.com:woothemes/woocommerce 2014-11-19 21:36:53 -02:00
claudiosmweb 74ba11c189 Removed some unused code 2014-11-19 21:36:47 -02:00
Mike Jolley 2b645ed293 Moved if statement in flat rate shipping 2014-11-19 23:28:23 +00:00
claudiosmweb d4c480a6ea Fixed process_refund() docblock 2014-11-19 21:14:28 -02:00
Mike Jolley e630e64cb7 Flat rate shipping tweaks + inline instructions 2014-11-19 22:22:35 +00:00
claudiosmweb 9b16425142 Fixed some coding style issues 2014-11-19 17:01:06 -02:00
claudiosmweb 59c8f9440e Merge branch 'master' of github.com:woothemes/woocommerce 2014-11-19 16:57:33 -02:00
claudiosmweb 744f80e0c6 Fixed password reset handler 2014-11-19 16:57:26 -02:00
Mike Jolley ef7693cb4b valid_response method 2014-11-19 18:26:29 +00:00
Mike Jolley 263134d395 ob_clean and header is unnecessary - default is 200 2014-11-19 18:26:29 +00:00
claudiosmweb e87aefc8e0 Fixed missing initial $query = array() 2014-11-19 16:26:10 -02:00
Mike Jolley 82f381df67 WC_Autoloader class 2014-11-19 18:08:38 +00:00
Mike Jolley d3dc8be3ec Undo commit which autoloaded widgets
Since they are loaded every time with core, it doesn’t make sense to
autoload them.
2014-11-19 18:08:38 +00:00
Manos Psychogyiopoulos 0b275de06a Issue 5661: filter params 2014-11-19 19:46:05 +02:00
Mike Jolley 1e217758fc Fix IPN response 2014-11-19 15:00:05 +00:00
Mike Jolley ca37524fe6 woocommerce_get_paypal_order filter
@thenbrent this should cover subscriptions needs
2014-11-19 15:00:05 +00:00
Mike Jolley 0ad1e05e23 Split PayPal class into separate classes for IPN and PDT and refund handling 2014-11-19 15:00:05 +00:00
Mike Jolley 2190405d61 Merge pull request #6791 from ragulka/dry-status-actions
DRY status actions, support custom status handling
2014-11-19 14:37:48 +00:00
Illimar Tambek e41368c99a DRY up order status bulk actions 2014-11-19 14:26:27 +02:00
Illimar Tambek d510372d64 DRY up mark_order_{$status} 2014-11-19 14:13:24 +02:00
claudiosmweb dbcf4de41f Fixed WC_Cart::get_cart_item() return type 2014-11-19 09:46:40 -02:00
Claudio Sanches c7dc0947c4 Merge pull request #6788 from SiR-DanieL/undo_cart
Undo cart removal
2014-11-19 09:31:09 -02:00
Nicola Mustone 37ea3faf0a Added missing get_cart_item 2014-11-18 20:48:45 +01:00
Mike Jolley 83cd831e1a can_refund_order/limit_string_length methods 2014-11-18 16:53:03 +00:00
claudiosmweb f34cead914 Removed old code in favor of wc_tax_enabled() and wc_prices_include_tax() 2014-11-18 14:45:29 -02:00
Mike Jolley b3782fa1a5 Removing Mijireh from core 2.3 2014-11-18 16:37:43 +00:00
Nicola Mustone 5d30109ab6 Handle cart item undo 2014-11-18 17:31:06 +01:00
Nicola Mustone 7eecb87d34 Added get_undo_url 2014-11-18 17:30:52 +01:00
Mike Jolley 003094c9c3 Ensure remaining hashes are translated Closes #6518 2014-11-18 16:29:21 +00:00
Mike Jolley ed1ff0f48c WooConf is over 2014-11-18 16:26:12 +00:00
Mike Jolley e7fc5520a8 Merge pull request #6776 from axisthemes/welcome
Welcome Page Cleanup
2014-11-18 16:25:44 +00:00
Mike Jolley e476a3f76b Merge pull request #6785 from SiR-DanieL/make_clickable
Automatically creates clickable links in item metas
2014-11-18 16:21:29 +00:00
Mike Jolley 4c5b7a3c06 Remove updates, 1.4, 1.5 2014-11-18 16:18:48 +00:00
Mike Jolley 387296a807 More PayPal line item tweaks 2014-11-18 16:13:41 +00:00
Mike Jolley 898c989753 wc_tax_enabled() and wc_prices_include_tax() methods 2014-11-18 16:13:41 +00:00
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
Mike Jolley a39353fc73 Split up line item methods in paypal 2014-11-18 13:46:55 +00:00
Mike Jolley e68353da63 Use one variable for endpoint in paypal 2014-11-18 13:46:55 +00:00
Mike Jolley 2e9f02932d Simplify get_icon() method 2014-11-18 13:46:55 +00:00
Mike Jolley 74b93b8c67 Moved paypal settings to file 2014-11-18 13:46:55 +00:00
Mike Jolley dc3aca2d06 Simplify logging and get_paypal_order(). Removes < 2 bw compat
@thenbrent this removes the old IPN handling legacy code. Is this
something that may affect subscriptions? I believe that IPN code was
for WC < 2.0 when we used to send back a string/integer in ‘custom’
2014-11-18 13:46:55 +00:00
claudiosmweb 6acfd3e2a7 Created WC_Customer::get_default_location() for avoid duplicate code 2014-11-18 11:32:44 -02:00
Nicola Mustone 913cc42c06 Fixes https://github.com/woothemes/woocommerce-product-addons/issues/24 2014-11-18 14:22:21 +01:00
Nicola Mustone 22a32ae9c8 Fixes #6555 2014-11-18 14:20:47 +01:00
claudiosmweb 6077a10e44 Removed some dead variables 2014-11-18 10:42:54 -02:00
shivapoudel 78f9759e1c Some modification for theme-support notice 2014-11-18 17:22:15 +05:45
shivapoudel 36e74b3b0d Some curley braces 2014-11-17 22:59:49 +05:45
Mike Jolley a0bf72f7b5 Bulk edit sales schedule on variations
Closes #6300
2014-11-17 16:50:25 +00:00
shivapoudel d688a37f54 Some mistake revoked 2014-11-17 22:34:27 +05:45
shivapoudel 4341174927 Merge remote-tracking branch 'upstream/master' into welcome 2014-11-17 22:30:52 +05:45
shivapoudel 3d4954a3e1 Some gap added intensionally ;) 2014-11-17 22:27:39 +05:45
Mike Jolley e6a5825f8c Some shipping class tidyup 2014-11-17 16:30:18 +00:00
shivapoudel 85440b5927 use of final class helper function 2014-11-17 22:03:15 +05:45
shivapoudel 61dfac7ccd Unused var if needed in future we can use WC_PLUGIN_BASENAME constant 2014-11-17 21:44:32 +05:45
shivapoudel 5b0be2f102 Cleanup for the WC_Admin_Welcome Class 2014-11-17 21:41:36 +05:45
Mike Jolley 82145be444 Merge pull request #6773 from axisthemes/menu-order
Simplify the condition for custom menu order
2014-11-17 14:31:37 +00:00
Mike Jolley c6362051eb Merge pull request #6765 from bryceadams/master
Add placeholder attribute for settings API #6764
2014-11-17 14:29:05 +00:00
shivapoudel 825d56f8ba Modified since current_user_can() returns boolean ;) 2014-11-17 20:00:01 +05:45
Mike Jolley 65ace6818b Merge pull request #6757 from tamarazuk/master
Introduce `woocommerce_product_is_on_sale` filter
2014-11-17 14:11:59 +00:00
shivapoudel 891d3a4573 Simplify the condition for custom menu order :) 2014-11-17 15:21:47 +05:45
Bryce 71909a7c72 Update default for 'Default Product Sorting' option 2014-11-17 15:37:02 +07:00
Bryce 295fed6467 Add placeholder attribute for settings API #6764 2014-11-16 14:49:43 +07:00
claudiosmweb 03c16229e0 Merge branch 'master' of github.com:woothemes/woocommerce 2014-11-14 23:15:16 -02:00
claudiosmweb 24e17e36d3 Preventing errors when adding a widget using the WP Customize
Fixed coding standards and used methods from WC_Widget for start and end the widget
2014-11-14 23:12:59 -02:00
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