Commit Graph

12630 Commits

Author SHA1 Message Date
Brent Shepherd 694929b0bf Simplify: Update change failling payment method
For Subscriptions v2.0.

 * Use new 'woocommerce_subscription_failing_payment_method_updated_' hook
 * Use new wcs_is_subscription() method to run process_subscription() when the
   transaction is for a subscription object.
 * Save the card and customer IDs on the 'shop_subscription' post from the renewal
   order rather than saving it on the order which purchased the subscription.
2015-07-24 18:17:57 -07:00
Brent Shepherd e6ccf437e9 Simplify: Update order_contains_subscription()
To use Subscriptions 2.0 methods to avoid deprecated notices and move
use of old methods to WC_Addons_Gateway_Simplify_Commerce_Deprecated
2015-07-24 18:17:57 -07:00
Brent Shepherd 73999c5daf Simplify: Remove meta from resubscribe orders
In Subscriptoins v2.0. Also deprecate the removal of it in 1.n, where
resubscribe orders were called "parent renewal orders".
2015-07-24 18:17:57 -07:00
Brent Shepherd 089485b3bf Simplify: Update renewal payments for Subs v2.0
* Add new save_subscription_meta() method to allow us to save customer ID both
  in Subscriptions 1.n on the original order and in 2.0 on the subscription/s
  created for the order)
* Use the new 'woocommerce_scheduled_subscription_payment_simplify' hook and
  deprecate use of the old 'scheduled_subscription_payment_simplify' hook by
  moving it to the WC_Addons_Gateway_Simplify_Commerce_Deprecated class
* Use core WC methods on the renewal order passed to scheduled_subscription_payment()
  to process the payment rather than having to call special Subscriptions API methods
  like WC_Subscriptions_Manager::process_subscription_payments_on_order() and
  WC_Subscriptions_Manager::process_subscription_payment_failure_on_order()
* Use the original order's total to determine the amount to charge up-front to
  save having to call WC_Subscriptions_Order::get_total_initial_payment()
* Use a description for recurring payments that is consistent with standard orders,
  i.e. "{Site Name} - Order {order_id}" instead of a description that does not include
  the renewal order's ID. This helps link payments to orders (which can then be traced
  to subscription/s).
2015-07-24 18:17:36 -07:00
Brent Shepherd 4c8e3788b3 Simplify: Support admin payment method changes
A new feature of Subscriptions v2.0.
2015-07-24 18:17:28 -07:00
Brent Shepherd e689fe8f15 Add WC_Addons_Gateway_Simplify_Commerce_Deprecated
To manage compatibility with Subscriptions 1.n
2015-07-24 18:06:35 -07:00
Claudio Sanches f8dfc64db7 Fixed postcode/zip reset in address i18n script, closes #8646 2015-07-24 18:24:33 -03:00
Claudio Sanches 72dd72beb9 Merge pull request #8656 from tamarazuk/wc-doing-ajax-constant
Define new `WC_DOING_AJAX` constant
2015-07-24 16:55:27 -03:00
Tamara Zuk 1bd4cf8fad Define new `WC_DOING_AJAX` constant
This constant will allow extensions to selectively load files etc.
during a WC AJAX request.
2015-07-24 15:50:50 -04:00
Claudio Sanches c840fef3af Merge pull request #8652 from thenbrent/dry
[WC 2.4] Remove duplicate code in WC_Ajax::save_variations()
2015-07-24 14:46:33 -03:00
Brent Shepherd c8405d3d29 Remove deprecated comments and commented out code
Because WC_Meta_Box_Product_Data::save_variations() doesn't need to be
deprecated.
2015-07-23 22:24:07 -07:00
Brent Shepherd ffdc13fb4b Remove duplication in WC_Ajax::save_variations()
And use the original WC_Meta_Box_Product_Data::save_variations() method instead.
2015-07-23 22:15:44 -07:00
Brent Shepherd 4100204344 Match the two save_variations()
Specifically, match WC_Meta_Box_Product_Data::save_variations() to the newer,
almost identical, WC_Ajax::save_variations(), added in SHA: ae18af8c (so that
we can eventually replace the newer WC_Ajax::save_variations().
2015-07-23 22:12:31 -07:00
Claudio Sanches 948c5c9cfc Fixed the sanitization for text-based default attributes 2015-07-22 21:40:06 -03:00
Claudio Sanches aa263ddc1e [API] Updated variable product attributes update for the new standard of WC 2.4 2015-07-22 21:07:05 -03:00
Claudio Sanches f3ac5657a4 Fixed link all variations when use text-based attributes 2015-07-22 18:57:50 -03:00
Claudio Sanches 1614696996 Fixed duplicated docblock 2015-07-22 12:05:25 -03:00
Claudio Sanches 6cac5e0f47 PayPal - Remove decimals when order currency is HUF, JPY or TWD, closes #8590 2015-07-22 11:43:12 -03:00
Claudio Sanches 77e8c19330 Minify files for #8631 2015-07-21 20:36:46 -03:00
Claudio Sanches 3213fc4558 Merge pull request #8631 from thenbrent/add_variation_action_ajax_data
[2.4] Trigger do_variation_action + '_ajax_data'
2015-07-21 20:36:50 -03:00
Claudio Sanches aec1e28549 [API] Check if REDIRECT_URL exists, closes #8632 2015-07-21 20:08:19 -03:00
Claudio Sanches 7b6680f4ef Just ignore round more if have a old version of PHP, closes #8629 2015-07-21 19:57:52 -03:00
Claudio Sanches 050d073678 Removed double ;; #8629 2015-07-21 19:49:05 -03:00
Claudio Sanches 70efb53934 Introduces the wc_cart_round_discount() function #8629 2015-07-21 19:45:13 -03:00
Brent Shepherd 23418214d0 Trigger do_variation_action + '_ajax_data'
To allow extensions which add their own variation bulk actions to pass
data back to WooCommerce core's handler so that only one ajax call
is necessary for updating the data.

Previously, a duplicate ajax call would be required as trigger() does
not capture the callbacks return value.
2015-07-21 15:41:13 -07:00
Claudio Sanches e1858d299b Changed WC_Download_Handler::count_download() from private to public, closes #8623 2015-07-21 19:03:40 -03:00
Claudio Sanches c95988bc8a Improve password sanitization in WC_Settings_API, closes #8627
@mikejolley
2015-07-21 18:37:12 -03:00
Claudio Sanches d36970aad8 Merge pull request #8624 from shoheitanaka/patch-2
Update JA.php for Alphabet
2015-07-21 14:00:43 -03:00
Claudio Sanches f7bc1a44f0 Merge pull request #8626 from macbookandrew/fix-case
fix case to match other titles on my-account.php; fixes #8625
2015-07-21 13:17:27 -03:00
Andrew Minion 4155c34794 fix case to match other titles on my-account.php 2015-07-21 10:56:18 -04:00
Shohei Tanaka 2a06a6ac2e Update JA.php for Alphabet
Change two Prefecture's alphabet.

https://en.wikipedia.org/wiki/Hyogo_Prefecture
https://en.wikipedia.org/wiki/Kyoto_Prefecture
2015-07-21 15:11:15 +09:00
Claudio Sanches 7787673d33 Fix excluded posts ID in json_search_products() 2015-07-20 18:46:37 -03:00
Claudio Sanches ab61c8fa88 Merge pull request #8621 from BFTrick/remove-blank-line
Removing Blank Line in wc-template-functions.php
2015-07-20 17:18:10 -03:00
Patrick Rauland c7cbe3e681 removing blank line. 2015-07-20 13:56:08 -06:00
Claudio Sanches f0b3d2fd9b Code tweaks for #8620 2015-07-20 14:36:12 -03:00
Claudio Sanches 9f7e1f3054 Merge pull request #8620 from JodiWarren/master
Moves the loop product title into a function and creates a new action for it.
2015-07-20 14:27:31 -03:00
Claudio Sanches 6f45872646 Disabled DFW feature pointer for products, closes #8595 2015-07-20 14:15:51 -03:00
Jodi Warren 2d63d4fc94 fix version number 2015-07-20 18:12:41 +01:00
Jodi Warren 2fb5f5bf78 Change product title to a hooked function. Fixes #8601 2015-07-20 18:10:56 +01:00
Claudio Sanches 0eac4914df [2.3] Fix check for relative downloadable product path, closes #8612 2015-07-20 13:56:28 -03:00
Claudio Sanches 6781f37fed Merge branch 'master' of github.com:woothemes/woocommerce 2015-07-20 13:41:26 -03:00
Claudio Sanches 791c20ae51 Added param for exclude posts from wc-product-search, closes #8613 2015-07-20 13:41:14 -03:00
Claudio Sanches 4ff87d26f7 Merge pull request #8615 from franticpsyx/additional-shipping-methods-filter
[2.4] Filter to enable deprecated addon rates
2015-07-20 12:56:18 -03:00
Claudio Sanches d48a5c9c54 Merge pull request #8616 from shivapoudel/unit-test-integration
Unit Test class instance of Integrations
2015-07-20 12:55:27 -03:00
Claudio Sanches 3a0d2f7c89 [API] Fixed edit coupon description, closes #8614 2015-07-20 12:49:21 -03:00
Shiva Poudel f543430476 Unit Test class instance of Integrations 2015-07-20 16:55:58 +05:45
Manos Psychogyiopoulos 79516ad2b4 typo 2015-07-20 12:13:29 +03:00
Manos Psychogyiopoulos 504f646310 enable deprecated addon rates 2015-07-20 12:08:39 +03:00
Claudio Sanches 095162df15 Merge branch 'master' of github.com:woothemes/woocommerce 2015-07-17 16:29:31 -03:00
Claudio Sanches d976cd8340 Disabled states for AX, closes #8594 2015-07-17 16:29:21 -03:00