Commit Graph

15887 Commits

Author SHA1 Message Date
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
Mike Jolley 57ec0246d5 $ unit test 2016-05-16 11:38:22 +01:00
Mike Jolley dce5c312e5 Hide simplify notice outside of US 2016-05-16 11:30:20 +01:00
Mike Jolley 87e9ccd343 Fixed wc_price unit test 2016-05-16 11:14:31 +01:00
Mike Jolley 094afb4745 Allow failed orders to be edited 2016-05-16 11:12:12 +01:00
Mike Jolley 36021ab1ac Improve no longer editable text
Closes #10916
2016-05-16 11:12:04 +01:00
Mike Jolley cf06f69b6b Merge remote-tracking branch 'origin/master' 2016-05-16 10:17:55 +01:00
Mike Jolley ca815f9fdc Merge branch 'pr/10914' 2016-05-16 10:17:51 +01:00
Mike Jolley ba2bfdc685 Fix invalid closing tag 2016-05-16 10:17:44 +01:00
Mike Jolley cdf2e44889 Merge pull request #10919 from WPprodigy/duplicate-filter-fix
Remove an unnecessary filter
2016-05-16 10:16:04 +01:00
Mike Jolley 557bd9e8b7 Merge pull request #10917 from kreamweb/master
Add check of $raw_countries before the foreach in WC_Countries
2016-05-16 10:12:45 +01:00
Mike Jolley 9fe8a1bcdb Merge pull request #10915 from woothemes/variation-no-parent-fix
Prevent variations being created/returned without parents
2016-05-16 10:12:14 +01:00
Mike Jolley fb0358ee07 Wrap currency symbol in span 2016-05-16 10:11:05 +01:00
Caleb Burks e707adedd4 Remove a duplicate filter 2016-05-15 00:41:52 -05:00
kreamweb 0a2c0af5ff Add check of $raw_countries before the foreach in WC_Countries 2016-05-14 11:02:05 +02:00
Mike Jolley d42d7c13b6 Prevent variations being created/returned without parents
Nasty bug discovered by @RiaanKnoetze where it would get a variation
without parent, and due to the return, it wouldn’t be ‘seen’ as a
variation, therefore creating fatal errors when props are called.

To prevent this, lets allow product constructors to throw exceptions.
If they do, the factory class will catch them and return false instead
of an invalid product object.

@claudiosmweb Thoughts on this one before merge?
2016-05-13 19:06:16 +01:00
Claudio Sanches 1f2cda5a49 Version 2.6.0-beta-2 2016-05-13 14:40:21 -03:00
Claudio Sanches f7fa2c64c3 Added missing textdomain 2016-05-13 14:39:55 -03:00
Mike Jolley 6e94df6ee5 must be > 0 to exist 2016-05-13 17:57:50 +01:00
corsonr becc4ef841 use wc_help_tip() 2016-05-13 18:49:58 +02:00
corsonr ca040a3d1f Add a refund reason help bubble 2016-05-13 18:15:35 +02:00
Mike Jolley 141dd2e7ef link to schema doc 2016-05-13 17:07:33 +01:00