Commit Graph

16162 Commits

Author SHA1 Message Date
Claudio Sanches f5ddaf7930 Merge branch 'master' of github.com:woothemes/woocommerce 2016-05-20 17:51:08 -03:00
Claudio Sanches 11cea999c1 Added custom titles for products tags items, closes #10958 2016-05-20 17:50:56 -03:00
Nico Hauser 62dbb131ac Bumped version 2016-05-20 17:00:19 +02:00
Nico Hauser d75d784e48 Add 'woocommerce_mail_content' to preview
Added the 'woocommerce_mail_content' filter which is used before sending the email in /includes/emails/class-wc-email.php#L465 to the preview
2016-05-20 16:47:18 +02:00
Diego Zanella 60bb76d558 Added action before the rendering of a zone's methods
* The new action will allow to add elements to the page without having to override the view.
2016-05-20 13:27:25 +01:00
Mark 089ce32577 Add action hooks to myaccount/navigation.php
Added a before and an after action hook, so that users can add their own stuff.
2016-05-20 14:00:42 +02:00
Mike Jolley 33d325cd88 Only cache valid coupon codes
Fixes #10950
2016-05-20 10:36:36 +01:00
Mike Jolley c6dfe47ffa Merge pull request #10951 from jamesgol/item_to_undo_url
Pass $cart_item_key to 'woocommerce_get_undo_url' filter
2016-05-20 10:25:52 +01:00
Claudio Sanches 36b5df4a2b Merge pull request #10949 from kravco/fix-cli-product
[API] Fixed product create not honoring --porcelain argument
2016-05-20 02:08:43 -03:00
James Golovich 96583d99c0 Pass $cart_item_key to 'woocommerce_get_undo_url' filter
I don't want users to automatically get an item re-added to their cart, I want to change the URL to send them back to the product page so they can re-add the item (if it is still available)
2016-05-19 13:46:22 -07:00
Matej Kravjar a2c85987e0 [API] Fixed product create not honoring --porcelain argument 2016-05-19 19:34:37 +02:00
Mike Jolley 54231c2946 Allow shipping classes interface to be extended. 2016-05-19 12:38:28 +01:00
Mike Jolley ed08e51ddb Status updates via API are manual
Closes #10943
2016-05-19 11:50:19 +01:00
Mike Jolley c22d9a3c14 Use empty instead of null
Closes #10944
2016-05-19 11:47:08 +01:00
Mike Jolley d3a519f6e4 Merge pull request #10945 from JeroenSormani/chosen-method-filter-arg
Add extra '$chosen_method' argument to the 'wc_shipping_chosen_method' hook
2016-05-19 11:45:43 +01:00
Mike Jolley d6b74900cd Merge pull request #10947 from woothemes/issues/10946/add-classes-for-payment-method-row
Added row class for each payment method and extra one for default one.
2016-05-19 11:45:06 +01:00
Mike Jolley 843e540ed5 Add classes to variation button wrapper 2016-05-19 11:17:34 +01:00
Akeda Bagus 6e97b17a2b Added row class for each payment method and extra one for default one.
Fixes #10946.
2016-05-19 16:09:13 +07:00
JeroenSormani 17878e3ffd Add extra 'chosen_method' argument to the 'wc_shipping_chosen_method' hook 2016-05-19 10:28:54 +02:00
Mike Jolley 130933badf Merge pull request #10937 from thenbrent/cart_hash_tweak
Use print_r() to stringify cart session
2016-05-18 11:30:08 +01:00
Mike Jolley cd2f8284b0 Merge pull request #10933 from bekarice/2-6-beta-tweaks
A couple small WC 2.6 fixes...
2016-05-18 11:12:11 +01:00
Mike Jolley ead4742d02 Merge pull request #10938 from shivapoudel/docblock
Fix - Docblock for is_request() method
2016-05-18 10:51:41 +01:00
Shiva Poudel 2b5f26eab1 Fix - Docblock for is_request() method 2016-05-18 15:27:48 +05:45
Brent Shepherd 671ae32e58 Use print_r() to stringify cart session
Instead of json_encode(), because json_encode() takes types into
account, meaning numbers may end up being represented in the
encoded JSON as a string, e.g. "1" instead of 1, which can lead
to the md5() being different between requests.

This issue surfaces when creating a cart hash in a different
request to the request to pay for the order, because after adding
line items to the cart, the items quantity will be encoded with
json_encode() as an int, but when encoding them in a different
request, where they are coming from the database, they will be
encoded as a string.
2016-05-17 16:38:08 -07:00
Claudio Sanches c4959f60af Merge pull request #10935 from WPprodigy/default-redirect-url-change
Redirect to shop page rather than homepage where appropriate
2016-05-17 19:29:53 -03:00
Caleb Burks 75dfae2bf2 Return to shop if session expires and escape url. 2016-05-17 17:00:09 -05:00
Caleb Burks 14edd5c1f8 Return to shop if download fails 2016-05-17 16:54:01 -05:00
Caleb Burks b8aea9aff0 Return to shop if session expires 2016-05-17 16:52:17 -05:00
Caleb Burks 3968b0488e Redirect to the shop page as a fallback 2016-05-17 16:50:46 -05:00
Claudio Sanches 96f5b85aed Fixed "Continue Shopping" url when added products from the single product page, closes #10930 2016-05-17 18:32:16 -03:00
Claudio Sanches a7b952838d Remove dead variable 2016-05-17 17:37:10 -03:00
Claudio Sanches 287fc29994 Merge pull request #10934 from rodrigoprimo/fix-credit-card-js
Fix credit card JS validation
2016-05-17 17:34:56 -03:00
Rodrigo Primo 1e78f6eb07 Remove unused variable from WC_Payment_Gateway_CC::form() 2016-05-17 16:49:10 -03:00
Beka Rice 17eae30bf9 [2.6] Add notice to My Account > Downloads..
…when no downloads are present; consistent with “Orders” empty notice
2016-05-17 15:44:56 -04:00
Beka Rice 8a715e0957 [2.6] Fix WooComm 101 video embeds...
…removes unused videos due to shipping zones changes; adjusts when
“shipping classes” video is shown
2016-05-17 15:43:57 -04:00
Rodrigo Primo 086628fba2 Enqueue 'wc-credit-card-form' before displaying credit card form
The commit c0b7429 failed to keep the line that enqueued 'wc-credit-card-form' script when the method WC_Payment_Gateway::credit_card_form() was renamed to WC_Payment_Gateway_CC::form().
2016-05-17 16:42:18 -03:00
Claudio Sanches d8614cd47e Fixed cc and echeck placeholders 2016-05-17 16:24:11 -03:00
Mike Jolley 2d3d401d67 API ignoring 'name' field.
Fixes #10929
2016-05-17 17:53:50 +01:00
Mike Jolley 19a4648a5a clean post cache after update 2016-05-17 14:46:08 +01:00
Mike Jolley dad0b81276 Merge branch 'pr/10921' 2016-05-17 14:08:29 +01:00
Mike Jolley 9d1c425952 combined logic 2016-05-17 14:08:23 +01:00
Mike Jolley 53a1538d1b Merge pull request #10922 from thenbrent/fix_shipping_tax_calculations
Fix shipping tax calculations in WC_Abstract_Order::calculate_taxes()
2016-05-17 12:05:46 +01:00
Brent Shepherd 8ae4b5ad24 Fix "Undefined variable: args" notice 2016-05-16 22:25:58 -07:00
Brent Shepherd 29692a22c5 Fix fatal error on order tax calculations
Fix "PHP Fatal error: Call to a member function get_total() on array"
by using the shipping line items cost index instead of attempting
to call a method on it which does not exist (because it's an array)
2016-05-16 22:22:53 -07:00
Brent Shepherd 94a9c649ba Remove empty lines 2016-05-16 22:22:38 -07:00
Caleb Burks e7635df4d0 Minify 2016-05-16 17:18:10 -05:00
Caleb Burks b2d33f00e8 Order change/keyup price function
on change then keyup for each item. OCD issues
2016-05-16 17:06:05 -05:00
Caleb Burks d37f191833 Add decimal error and fix for refund amount 2016-05-16 17:04:38 -05:00
Mike Jolley e6b74ad629 Allow filtering even when DB stored tokens are empty 2016-05-16 15:32:54 +01:00
Mike Jolley 83857de24d Fix tax label test 2016-05-16 12:00:03 +01:00