Commit Graph

1385 Commits

Author SHA1 Message Date
Mike Jolley 7f417c0e8e Fix sale flash for out of stock sale items Closes #5119 2014-03-14 13:41:25 +00:00
Mike Jolley abfafa7ce3 Correct discount calculation in admin when fees are involved. Closes #5103 2014-03-14 13:20:59 +00:00
Mike Jolley ad5f510979 Item meta list classes Closes #5083 2014-03-14 12:40:55 +00:00
Mike Jolley cf50b4977d Filter the filename Closes #5074 2014-03-14 10:04:41 +00:00
Mike Jolley adc604e0e2 Move loop_end hook as it is generic and used in all WP loops 2014-03-13 13:07:47 +00:00
Mike Jolley c27a5a3f4d Merge pull request #5082 from crazyscience/patch-2
Fix for Issue #3367
2014-03-12 14:37:40 +00:00
Gerhard 37ed91cedf Remove opening bracket from AED currency symbol 2014-03-12 15:50:51 +02:00
Mike Jolley b160a00464 Pass args through for deprecated function Closes #5087 2014-03-12 14:38:03 +01:00
Mike Jolley 26b5ffa3d0 Only append generator tag on HTML pages Closes #5113 2014-03-12 14:38:03 +01:00
Coen Jacobs fa089f7c0d Merge pull request #5077 from woothemes/transient-expiration
set_transient calls should have expiration to prevent autoloading
2014-03-12 13:02:42 +01:00
Coen Jacobs 3617316357 Updated expiry times for transients 2014-03-12 12:58:41 +01:00
Mike Jolley 8523fe8f34 Merge pull request #5114 from thenbrent/woocommerce_cart_totals_fee_html_filter
Add 'woocommerce_cart_totals_fee_html' filter
2014-03-12 11:35:43 +00:00
Mike Jolley 71bcef64a1 Merge pull request #5104 from InoPlugs/patch-2
Update class-wc-checkout.php
2014-03-12 11:34:29 +00:00
thenbrent 18efa7341a Add 'woocommerce_cart_totals_fee_html' filter 2014-03-12 21:11:22 +10:00
InoPlugs Webdesign a284d7fe69 Update class-wc-checkout.php
We need this hook to mark the fees our plugin (additional fee based on gateway) adds to the the order. Otherwise we can't tell if a fee was added by the user (Add fee button), by another plugin or by our plugin.
2014-03-11 19:48:51 +01:00
justinstern 6dfce64e47 Don't trailingslash Order Cancel URLs with a Query String
With non-pretty permalinks enabled, this was producing a URI like
http://example.com/?page_id=7/  That final unnecessary trailing slash
messes up some redirect gateways that are passed the cancel URL
2014-03-11 00:04:49 -04:00
Andrew Benbow 2f5fb72a9c Update class-wc-gateway-paypal.php
modify currency error message to include both sent and returned currencies for comparison
2014-03-10 23:23:30 +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
crazyscience 9898aee867 Fix for Issue #3367
Fixed a bug where the application attempts to schedule an event using a function name rather than a hook name
2014-03-07 11:17:11 -08:00
Coen Jacobs 03163c54b0 set_transient calls should have expiration to prevent autoloading 2014-03-07 09:29:01 +01:00
Mike Jolley 90914cc3c8 Update LESS compiler and less files #5070 2014-03-06 16:23:43 +00:00
Mike Jolley 156098edb9 Fallback for add ons page loading 2014-03-06 15:25:05 +00:00
Mike Jolley 9068da2ece When getting downloadable files, check access_expires too Closes #5060 2014-03-06 14:35:25 +00:00
Mike Jolley 88c666968e Merge pull request #5043 from splashingpixels/related-products
get_related fixed tags OR query not excluding product ID
2014-03-06 13:26:26 +00:00
Mike Jolley a553fd4956 pedantic nonce checking 2014-03-06 13:11:20 +00:00
Mike Jolley 24e884a480 When dealing with fixed_product discounts, when doing it for the line, multiple by product qty Closes #5054 2014-03-06 12:29:25 +00:00
Mike Jolley ba466b3de9 Fix variation price display by checking if a variation is actually stock managed before comparing to stock amount Closes #5059 2014-03-06 12:07:28 +00:00
Mike Jolley 8971dc0d92 Set default for $plain_text variable. Closes #5051 2014-03-06 11:57:47 +00:00
Mike Jolley d42bb7a285 Check existence of nonce Closes #5050 2014-03-06 11:37:48 +00:00
Mike Jolley 624df4ea14 Suppress errors in download handler Closes #5042 2014-03-05 09:30:12 +00:00
splashingpixels b279487535 get_related fixed tags OR query not excluding product ID 2014-03-04 16:19:12 -08:00
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