Commit Graph

1404 Commits

Author SHA1 Message Date
Mike Jolley e557ff5aec Use woocommerce_notify_no_stock_amount not 0, Closes #5035 2014-03-04 14:46:17 +00:00
Mike Jolley 5c75f8a20e Recoded set_stock to only make a variable product out of stock if all variations are stock managed, to to resync prices after stock changes #5035 2014-03-04 14:45:27 +00:00
Mike Jolley decfca94a4 Updated sync logic to exclude hidden and out of stock variations from the price display #5035 2014-03-04 14:44:24 +00:00
Mike Jolley 56c1ce4bd9 Merge pull request #5031 from BFTrick/uk-counties
Returning False Instead of Empty Array for Countries Without States
2014-03-04 11:49:34 +00:00
Mike Jolley e0b11c8c2e Corrected the "Show Siblings and Children Only" queries Closes #5028 2014-03-04 11:47:17 +00:00
Patrick Rauland f78482dd6e returning false instead of array for countries without states 2014-03-03 16:04:00 -08:00
Mike Jolley 48ebfae145 Made woocommerce_update_cart_action_cart_updated a filter which can return true or false to recalc totals Closes #4905 2014-03-03 15:15:32 +00:00
Mike Jolley 31ee45cf5c Add context to strings #4986 2014-03-03 14:47:19 +00:00
Mike Jolley d9c10aae62 Later hook for template redirect and the_post Closes #4984 2014-03-03 13:37:45 +00:00
Mike Jolley 30eee00c1b Change the save order so email data is correct for manual orders Closes #4995 2014-03-03 13:27:20 +00:00
Mike Jolley 1c0e55c685 Correctly recompile scripts on update. Frontend css option no longer exists Closes #5014 2014-03-03 12:19:29 +00:00
Mike Jolley 47d1782b7e Resolve conflicts 2014-03-03 11:59:47 +00:00
Mike Jolley 74e7829e02 wc_get_endpoint_url - added support for permalinks containing a query string Closes #5016 2014-03-03 11:54:53 +00:00
Mike Jolley c6e63c663b Merge pull request #4998 from BFTrick/plain-text-flag
Add Plain Text Flag Gateways
2014-03-03 10:53:53 +00:00
Mike Jolley f2daf7aeec Merge pull request #4997 from BFTrick/wp-bacs-formatting
Use WordPress Brace Code Style in BACS Gateway Class
2014-03-03 10:53:04 +00:00
Mike Jolley ab3ebfd818 Merge pull request #5003 from splashingpixels/coupon
wc_get_product_ids_on_sale should never return post id of 0 fixes #5002
2014-03-03 10:52:28 +00:00
splashingpixels d357154d2f shop order - fixes non object error on comments when order is in the trash 2014-02-28 22:08:42 -08:00
splashingpixels 5cfa0306f4 wc_get_product_ids_on_sale should never return post id of 0 fixes #5002 2014-02-28 20:37:58 -08:00
claudiosmweb 5c540930c9 improved the bacs email instructions 2014-02-28 20:35:40 -03:00
claudiosmweb 08ae8d5416 forced end of line in bank_details method to fix the #4999 2014-02-28 20:31:53 -03:00
Patrick Rauland a76714c0e9 adding plain text email flag to cheque 2014-02-28 16:13:13 -06:00
Patrick Rauland 694c6bb5ef adding plain text email flag to bacs 2014-02-28 16:11:57 -06:00
Patrick Rauland b274171f8c adding wordpress php formatting" 2014-02-28 16:05:43 -06:00
Mike Jolley 6fcdccd73b Ensure attributes exist 2014-02-28 15:42:16 +00:00
Mike Jolley 3398941f3f Fix category widget ordering Closes #4971 2014-02-28 15:27:20 +00:00
Mike Jolley 6a0dc3142f Fix reports by using strings - int's have a max. Closes #4904 2014-02-28 14:51:37 +00:00
Mike Jolley 3492be6df0 Only show the relevant updates in the notices Closes #4977 2014-02-28 13:42:48 +00:00
Mike Jolley e0b042a8d4 Fix strict standards Closes #4980 2014-02-28 10:54:34 +00:00
Mike Jolley 2e8c2e7396 Fix after tax coupon amounts 2014-02-27 14:14:17 +00:00
Mike Jolley 439b982b48 Merge pull request #4954 from kloon/tweak_rest_api_index_pretty_permalinks
Add permalinks_enabled data to API index
2014-02-27 12:03:19 +00:00
Mike Jolley 5ae6dd056b Hide shipping class if variation is virtual Closes #4972 2014-02-27 11:53:46 +00:00
Coen Jacobs a891fb82d4 Fixing the typo fix :) 2014-02-27 12:33:00 +01:00
tamarazuk 510e46963a Add Canadian address format
.. as per Canada Post's addressing guidelines: http://www.canadapost.ca/tools/pg/manual/PGaddress-e.asp#1413985
2014-02-26 15:50:58 -05:00
JustinSainton 9b0ddb2bd3 Copypasta fix in docs. 2014-02-26 10:42:35 -08:00
Mike Jolley d8f504849f round mijireh shipping amount 2014-02-26 15:53:32 +00:00
Mike Jolley 41183d1663 wc_delete_shop_order_transients functions and trigger when order status updates. Closes #4875 2014-02-26 15:43:19 +00:00
Mike Jolley 215011aa1f Prevent short codes running with no cart class loaded. Closes #4962 2014-02-26 15:27:26 +00:00
Mike Jolley b06e0bb19e Tweak where message is added during reset to avoid needing a session Closes #4908 2014-02-26 13:13:53 +00:00
Mike Jolley 1f3d2632ed Filters to restrict granting/revoking access to files Closes #4952 2014-02-26 12:35:11 +00:00
Mike Jolley 4c5f1952c7 If the cart is updated only, trigger action and recalc totals Closes #4905 2014-02-26 12:14:50 +00:00
Mike Jolley a0635c270b Changed braces and moved filter #4933 2014-02-26 12:02:14 +00:00
Mike Jolley 173e3accd8 Merge pull request #4933 from growdev/master
Allow empty categories to show
2014-02-26 12:00:26 +00:00
Mike Jolley 94992cea38 Merge pull request #4961 from kloon/tweak_download_handler_coding_stardards
download_handler Coding standards, mostly braces
2014-02-26 11:57:06 +00:00
Gerhard ab5d86097b Coding standards, mostly braces 2014-02-26 13:54:16 +02:00
Mike Jolley f79c7bed23 Merge pull request #4960 from kloon/tweak_guest_checkout_pay_link
Disable order owner check for payment link if guest checkout enabled
2014-02-26 11:48:42 +00:00
Gerhard 55a656715d Drop guest checkout test and only check if order is for guest 2014-02-26 13:46:02 +02:00
Mike Jolley 5620020f6c Fix products_will_display logic 2014-02-26 11:43:38 +00:00
Gerhard 5475192dad Should check for yes if guest checkout is enabled 2014-02-26 13:30:08 +02:00
Gerhard f64bc075a7 Move guest check to wc_customer_has_capability 2014-02-26 13:25:32 +02:00
Mike Jolley d8afa1476e Merge pull request #4953 from splashingpixels/master
get related products added DISTINCT to prevent querying duplicates
2014-02-26 11:13:49 +00:00
Gerhard 76c8727340 Update error message, making it clear to log in and try again. 2014-02-26 12:03:36 +02:00
Gerhard 4d1a115330 Disable order owner check for payment if guest checkout is enabled as per #4957 2014-02-26 11:57:28 +02:00
lekiend 41962f044f Update html-admin-page-status-report.php
Status report shows update also if update version is lower than current version.
It should show updates only for version number greather than current version
2014-02-26 10:55:27 +01:00
Gerhard dc65c525d0 Add permalinks_enabled data to API index 2014-02-26 07:50:51 +02:00
splashingpixels f66be96f88 get related products added DISTINCT to prevent querying duplicates 2014-02-25 15:17:50 -08:00
Mike Jolley 6ff4ae1a7d Merge pull request #4903 from splashingpixels/master
Ran through jshint and fixed coding standards
2014-02-25 15:51:50 +00:00
Mike Jolley b2abcc3c89 Merge pull request #4944 from kloon/tweak_my_account_downloads_titles
Add filenames to Downloads section in My Account
2014-02-25 15:45:49 +00:00
Mike Jolley 2ae5400e37 Merge pull request #4945 from ChromeOrange/master
Compound tax rate calculation is wildly off.
2014-02-25 15:45:01 +00:00
Mike Jolley 6d7e7370c6 Merge pull request #4947 from BFTrick/shipping-php-standards
Use WordPress Brace Code Style in Flat Rate Shipping Class #2
2014-02-25 14:49:25 +00:00
Mike Jolley e73aa65440 Ensure product exists before getting title. Closes #4916 2014-02-25 14:48:55 +00:00
Patrick Rauland 61a175173e merging upstream changes 2014-02-25 08:07:39 -06:00
Mike Jolley 9a52c5dd43 Combine two meta queries into one #4901 2014-02-25 13:33:55 +00:00
Andrew Benbow 310cd61cc5 Update class-wc-tax.php
Compound tax rate calculation is wildly off.

Current tax settings : http://cld.wthms.co/Qeb6

Cart before proposed change : http://cld.wthms.co/ILXk

Cart after proposed change : http://cld.wthms.co/fjWO
2014-02-25 11:54:58 +00:00
Mike Jolley 3d4f16a7a4 Username from email hook Closes #4941 2014-02-25 11:40:54 +00:00
Gerhard 123d60912b Add filenames to Downloads section in My Account 2014-02-25 12:48:36 +02:00
Mike Jolley b16f83804f Merge pull request #4932 from BFTrick/flat-rate-costs-regex
Comment RegEx in Flat Rate Shipping
2014-02-25 10:47:29 +00:00
Mike Jolley 979e12aaf1 Merge pull request #4935 from BFTrick/refactor-flat-rate-percentage-calc
Adding Method to Calculate Percentage Rate Adjustment for Flat Rate Shipping
2014-02-25 10:46:53 +00:00
Max Rice 7b67161d2f Return request relative link headers, fixes #4925
When WordPress is running inside of a sub-directory,
get_woocommerce_api_url() returns the domain along with the
sub-directory path, which results in a duplicate path when the API
request string is added. This commit fixes this by fetching only the
home host and adding the request path to it. set_url_scheme() is used
to set the scheme to either http or https based on the request itself
instead of basing it on whether force_ssl_checkout is enabled or not.
2014-02-25 10:24:36 +01:00
Patrick Rauland cf81e63b3c adding new method to calculate percentage rate adjustment for flat rate shipping 2014-02-24 12:54:56 -06:00
Daniel Espinoza 3a37bec683 removing unnecessary action 2014-02-24 11:59:54 -06:00
Daniel Espinoza bf8a825f2d Allow showing of empty categories using 'hide_empty' param of get_categories() 2014-02-24 11:57:06 -06:00
Patrick Rauland 0fd11ad509 commenting regex in flat rate shipping 2014-02-24 11:40:26 -06:00
Daniel Espinoza cfc30fe432 Merge branch 'master' of github.com:woothemes/woocommerce 2014-02-24 11:30:14 -06:00
Patrick Rauland 3888af3559 using wordpress brace code style in flat rate shipping 2014-02-24 11:17:33 -06:00
Mike Jolley 4789223f32 Fix variation level reporting Closes #4885 2014-02-24 17:10:08 +00:00
Mike Jolley 95ffe76841 Merge pull request #4919 from ChuckMac/Coupon_action
Passing post_id to the coupon save action
2014-02-24 15:48:23 +00:00
Mike Jolley dcf4a50ca0 Layered nag - remember orderby #4889 2014-02-24 15:45:43 +00:00
Mike Jolley 9a115dc1f4 Use parseHTML and enforce 1.8 jquery Closes #4899 2014-02-24 15:34:28 +00:00
Mike Jolley 373c35d7e8 Merge pull request #4912 from whatthefork/master
Update abstract-wc-product.php
2014-02-24 15:28:23 +00:00
Mike Jolley 36de82e428 Workaround relevanssi Closes #4873 2014-02-24 15:19:12 +00:00
Mike Jolley 38872b8536 For custom attributes, try to turn back to 'name' from saved slug in emails/view order templates Closes #4833 2014-02-24 15:14:32 +00:00
Mike Jolley 4280f5ab78 Limit item name lengths Closes #4922 2014-02-24 14:49:05 +00:00
Mike Jolley eb48eb437f Merge pull request #4924 from paulvandermeijs/develop-fix_exclude_protected_products
Prevent ambiguous column error
2014-02-24 12:35:48 +00:00
Paul van der Meijs 7daada95f9 Prevent ambiguous column error 2014-02-24 11:47:19 +01:00
Mike Jolley f09db7a537 cancel_order - take no action if already cancelled. 2014-02-24 10:39:43 +00:00
Chuck Mac ed952f4698 Passing post_id to the coupon save action
Pass post_id to the woocommerce_coupon_options_save action so we know what
coupon ID is being saved.
2014-02-23 10:27:27 -05:00
Mike Jolley 7b639d45c7 remove un-wanted hentry from products Closes #4880 2014-02-23 11:13:42 +00:00
splashingpixels 7d96eb70ee layer nav using list OR was not displaying any terms fixes #4911 2014-02-22 13:42:13 -08:00
Justin Hill eed9485e6c Update abstract-wc-product.php
Add filter to is_taxable() method so that plugins can better control what is and isn't taxable based on various conditions, such as customer's billing or shipping address, etc.
2014-02-22 13:15:41 -07:00
Mike Jolley 90b042573e Transifex links 2014-02-21 15:29:42 +00:00
Mike Jolley 3ab6acc495 wc_cart_totals_coupon_label function and filter to override coupon labels 2014-02-21 15:16:47 +00:00
Coen Jacobs 9f5ebda756 Merge pull request #4888 from JustinSainton/patch-1
capital_p_dangit()
2014-02-21 13:22:51 +01:00
Mike Jolley 78d48cc597 Use get_col for sku search - return multiple results. 2014-02-21 10:35:41 +00:00
JustinSainton d64fc3a764 capital_p_dangit() 2014-02-21 00:47:42 -08:00
Mike Jolley 5062de9767 Fix display of fee_taxes when spanning multiple tax classes Closes #4803 2014-02-20 16:39:57 +00:00
Mike Jolley f35c3708bb Rounding order_tax and order_shipping_tax restricts our ability to get an accurate tax_total after an order is made. Fixes some paypal rounding requests.
@coenjacobs
2014-02-20 15:41:08 +00:00
Mike Jolley c7a129c7fd Only show settings link if method has_settings 2014-02-20 15:16:53 +00:00
Mike Jolley fbccfca522 Correctly join post meta to fix order searches Closes #4855 2014-02-19 16:11:20 +00:00
Coen Jacobs 8fdf4d94cf Merge pull request #4853 from scottbasgaard/master
Use 'include' parameter to show siblings/children of current category. Fixes #891
2014-02-19 17:09:21 +01:00
Mike Jolley f1f7b84db9 Sanitize screen id. Closes #4788 2014-02-19 14:30:21 +00:00
Mike Jolley 3f8b314431 Run array_unique on results of order search Closes #4855 2014-02-19 14:27:09 +00:00
Mike Jolley 9303908d7b Use md5 hash for transient names so that the lengths are valid. Closes #4851 2014-02-19 14:05:36 +00:00
Coen Jacobs 1e410ebcdc Code standards for #4856 2014-02-18 12:27:05 +01:00
Coen Jacobs 911e151423 Merge pull request #4856 from kloon/fix_cod_hidden_shipping_methods_error
Fix COD warning when you have hide shipping methods until address entered
2014-02-18 12:25:12 +01:00
Gerhard 3a9604bf78 Fix COD warning when you have hide shipping methods until address entered selected 2014-02-18 11:58:52 +02:00
Coen Jacobs 5094d2174a Merge pull request #4847 from kloon/master
Add email lookup to customers endpoint, try at #4845
2014-02-18 10:47:50 +01:00
Scott Basgaard 39b83a3039 Code clean up. Various undefined variables / notices. 2014-02-17 22:09:58 +01:00
Scott Basgaard 563adcaa86 Use 'include' parameter to show siblings/children of current category. Fixes #891 2014-02-17 22:00:25 +01:00
Gerhard a614e79ad4 update @since to 2.2 2014-02-17 19:17:40 +02:00
Gerhard 4fe3dd28fb Move email lookup to own endpoint customers/email/<email> 2014-02-17 19:13:01 +02:00
Mike Jolley 3be6664f05 Handle get_rate_code when no matching rate is found. Prevents notices. 2014-02-17 15:11:50 +00:00
Mike Jolley 8c7996e5b1 Fix notice when left blank 2014-02-17 14:54:06 +00:00
Gerhard 5c18fab238 Add back absint to validate function for customers by id endpoint 2014-02-17 16:44:08 +02:00
Gerhard a7e659b6fa Review customer/<email> endpoint, move into own function 2014-02-17 16:39:56 +02:00
Mike Jolley f9251084d9 woocommerce_get_sections_{id} filters Closes #4817 2014-02-17 14:30:42 +00:00
Gerhard 88425e64cc Add email lookup to customers endpoint, try at 4845 2014-02-17 15:19:11 +02:00
Mike Jolley c0c21c8364 Unify textdomains Closes #4814 2014-02-17 13:14:45 +00:00
Coen Jacobs 00dfdb73e3 Merge pull request #4811 from claudiosmweb/fix_4281
Add the payment method title in order details
2014-02-17 13:27:38 +01:00
Mike Jolley 37573a93e2 wc_get_product_ids_on_sale should return array of integers, not strings Closes #4825 2014-02-17 12:20:10 +00:00
Mike Jolley c3f514fa0a Standards and some query tweaks for get_downloadable_products #4827 2014-02-17 11:58:14 +00:00
Mike Jolley 1e1490894e Code standards 2014-02-17 10:50:36 +00:00
Mike Jolley b22abbda90 Order status check needs to be inside wc_downloadable_product_permissions so permissions are granted after completion. Closes #4826 2014-02-17 10:50:00 +00:00
Coen Jacobs e2ebb387f7 Better workaround for esc_url stripping spaces #4842 2014-02-17 11:48:43 +01:00
Coen Jacobs a19266b955 esc_attr instead of esc_url to preserve spaces in img src #4842 2014-02-17 11:29:36 +01:00
Mike Jolley 7789d34baf Merge pull request #4831 from artprojectgroup/master
Prevent an error notice
2014-02-17 10:20:44 +00:00
Mike Jolley a67c91db7b Flip default status of price_trim_zeros
#4828 #4823 enabled with add_filter( 'woocommerce_price_trim_zeros',
'__return_true’ );
2014-02-17 10:19:12 +00:00
Mike Jolley ca782212de define cart_session_data in constructor Closes #4822 2014-02-17 10:16:06 +00:00
Mike Jolley 0ddff220d5 Make my-account/view-order use the template file 2014-02-17 09:44:45 +00:00
Art Project Group 4031c8b5d7 Update class-wc-shortcode-cart.php 2014-02-16 19:53:55 +01:00
Art Project Group 7d9a1e77a6 Prevent an error notice
It only shows when country has states and state was leave in blanc on
the form.
2014-02-16 15:44:24 +01:00
claudiosmweb bc98201d26 added the payment method title in order details, closes #4281 2014-02-15 03:14:04 -02:00
Mike Jolley 97dd163c5e Fix ampersands in plan text Closes #4799 2014-02-14 15:37:30 +00:00
Mike Jolley 84e754e298 Update docblocks 2014-02-14 14:29:39 +00:00
Mike Jolley 8b4c81da13 Merge pull request #4796 from kloon/master
REST API OAuth signature issue fix when using filter params
2014-02-14 11:48:57 +00:00
Mike Jolley e667d41497 woocommerce_get_username_from_email filter for login Closes #4791 2014-02-14 11:47:12 +00:00
Gerhard 30c1486aa7 REST API OAuth signature issue fix when using filter params 2014-02-14 13:26:31 +02:00
Mike Jolley 449c95029b Trash instead of force delete Closes #4785 2014-02-14 11:21:14 +00: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 94693ea81d Admin screen strings need to be sanitised to work with chinese chars Closes #4788 2014-02-14 10:57:48 +00:00
Mike Jolley 69748cd4e3 Force a valid base when saving permalinks 2014-02-14 10:43:15 +00:00
Coen Jacobs 7acc71d212 Merge pull request #4790 from tamarazuk/patch-1
Dashboard: Fixes # of "out of stock" products
2014-02-14 09:21:15 +01:00
Sean Cull e2fab93c7a Added currency support for United Arab Emirates Dirham 2014-02-14 02:17:22 -05:00
tamarazuk d16fa41f05 Dashboard: Fixes # of "out of stock" products
Use woocommerce_notify_no_stock_amount rather than woocommerce_notify_low_stock_amount to count out of stock products
2014-02-14 00:06:30 -05:00
Mike Jolley 3bfbc9dfc5 Fix paypal shipping via text 2014-02-13 16:06:48 +00:00
Mike Jolley 1a92bfeb39 If logged in, and no billing_email is set, set it. 2014-02-13 15:51:16 +00:00
Mike Jolley 551ca62c3d Fix saving of fee tax total Closes #4774 2014-02-13 15:42:17 +00:00
Mike Jolley 4179c342ce Fix term counts when terms span taxonomies Closes #4738 2014-02-13 14:51:46 +00:00
Mike Jolley 744732db7a Update schemas before DBDELTA to fix mysql errors on update 2014-02-13 13:29:55 +00:00
Mike Jolley fd88ea5201 Buttonsource should be bn
@coenjacobs doesn’t have to be in read me
2014-02-13 12:31:36 +00:00
Paolo Albera 394e743dbd Update class-wc-countries.php 2014-02-13 13:12:47 +01:00