Mike Jolley
fcae260b43
Missing placeholder
2017-02-07 17:07:11 +00:00
Mike Jolley
09f2c6b89a
Add locale independent wc_get_permalink_structure function
2017-02-07 16:16:45 +00:00
Mike Jolley
b08449e502
Payment method display
...
Fixes #12830
2017-02-07 14:51:21 +00:00
Mike Jolley
4dea9d7b81
Merge pull request #13100 from divadmts/fix-external
...
External product add_to_cart_text function's hook used
2017-02-07 13:43:54 +01:00
Mike Jolley
a4f87293ca
Inherit shipping class id from parent
2017-02-07 12:35:24 +00:00
Mike Jolley
b14d1ecbc9
Merge pull request #13101 from woocommerce/fix-13051
...
Exit after redirect to prevent incorrect headers being set by wp_die
2017-02-06 19:12:17 +01:00
Mike Jolley
c61b4bf35c
wc_add_to_cart_message_html filter which passes in full array of products and qty
...
Closes #12824
2017-02-06 18:11:54 +00:00
Claudiu Lodromanean
e45adc14ed
Bring up-to-date with master
2017-02-06 10:10:41 -08:00
Mike Jolley
23cc478bc9
Exit after redirect to prevent incorrect headers being set by wp_die
2017-02-06 17:59:31 +00:00
Mike Jolley
b19be41994
Added since to WC_Data docblocks
...
Closes #13056
2017-02-06 17:06:20 +00:00
divadmts
8df243fdbf
use woocommerce_product_add_to_cart_text hook
2017-02-07 01:04:34 +08:00
Mike Jolley
c44fffe35b
If woocommerce_adjust_non_base_location_prices is false, remove modded tax, not base tax
2017-02-06 16:56:14 +00:00
Mike Jolley
32d5e3d6f0
Merge pull request #13076 from woocommerce/fix/shipping-total-when-no-shipping-methods
...
Fix empty string case for `WC_Order::get_total_shipping`
2017-02-06 16:29:20 +01:00
Boro Sitnikovski
5a0b70f291
Fix empty string case for `WC_Order::get_total_shipping`
2017-02-06 14:41:19 +01:00
Mike Jolley
1ef593ff16
Merge pull request #13046 from thenbrent/merge_extra_data
...
Merge WC_Data::$extra_data in WC_Data::__construct()
2017-02-06 13:08:53 +01:00
Mike Jolley
1f89d2f22e
Merge pull request #13063 from thenbrent/remove_unused_param
...
Remove 'edit' param from calls to WC_Product_Variable::get_visible_children()
2017-02-06 12:55:53 +01:00
Mike Jolley
09f7b0493e
Merge pull request #13042 from woocommerce/legacy-order-date-format
...
Fix legacy order dates format
2017-02-06 12:51:41 +01:00
Mike Jolley
908439c972
Merge pull request #13036 from chrislam/fix/ambiguous-column-names
...
Added table alias so that the column names in the `ORDER BY` and `GROUP BY` clauses are not ambiguous
2017-02-06 12:51:24 +01:00
Mike Jolley
58118997a9
Merge pull request #13069 from jaydeeprami/Fix-Issue-13067
...
Fixed issue ref #13067
2017-02-06 12:36:53 +01:00
Jaydeep
91cd899989
Fixed issue ref #13067
2017-02-06 14:35:55 +05:30
Brent Shepherd
8431b2ac86
Remove 'edit' param on get_visible_children()
...
The WC_Product_Variable::get_visible_children() method accepts no parameters.
2017-02-03 14:53:03 -08:00
Mike Jolley
497b4d986c
Merge pull request #13047 from thenbrent/backward_compat_for_email_order_items
...
Reinstate old show/hide logic for download links and purchase notes in email order item table
2017-02-03 11:02:17 +01:00
Mike Jolley
244b42eae8
Merge pull request #13048 from woocommerce/fix/cart-discount-call
...
Fix call to non-existent method for cart_discount.
2017-02-03 11:00:54 +01:00
Brent Shepherd
4147935990
Fix undefined index notice in WC_Webhook
2017-02-02 12:52:00 -08:00
Brent Shepherd
fe7e280ea0
Reinstate woocommerce_email_order_items_args hook
2017-02-02 12:26:59 -08:00
Claudio Sanches
5eb08aeda6
[REST API] Cast int for batch delete
2017-02-02 19:09:45 +01:00
Mike Jolley
2ec4b8cf7f
Revert "Get rating count should use is_array"
...
This reverts commit 0625a2b759
.
2017-02-02 18:43:43 +01:00
Mike Jolley
0625a2b759
Get rating count should use is_array
2017-02-02 18:35:30 +01:00
Boro Sitnikovski
5f05b2e3d8
Fix call to non-existant method for cart_discount.
2017-02-02 09:45:09 +01:00
Brent Shepherd
75bcbbf959
Maintain old show/hide email order item logic
...
When SHA: 7b3a9b introduced wc_get_email_order_items(), it slightly
changed the logic applied to determine whether to display:
* download links; and
* purchase notes.
In WC 2.6.13 and older, WC_Abstract_Order::email_order_items_table()
would only display download links and purchase note in emails *not*
sent to the admin. This patch preserves that behaviour.
2017-02-01 18:12:21 -08:00
Brent Shepherd
010a208e88
Merge WC_Data::$extra_data in WC_Data::__construct
...
Rather than requiring child classes to merge it as well as define it.
If it's not defined in a child class, then the merge call will have no
effect as it will be an the empty array set in WC_Data, if they do define
it, WC_Data will now take care of it automatically rather than requiring
manually merging it in the child class's constructor before it has any
effect on that objects data.
This helps reduce duplicate code by removing this from child classes, and
in some cases, being able to remove the child constructor definitions
entirely. It also avoids a gotcha for developers setting their own
$extra_data values only to find they aren't being set on the $data
property.
2017-02-01 12:48:27 -08:00
Mike Jolley
e46b256c67
Use cron to send emails to avoid long page load times on checkout
2017-02-01 20:08:18 +01:00
Mike Jolley
ed51c8ac13
Pass order object to emails
2017-02-01 17:54:47 +01:00
Mike Jolley
3529d7cafd
Cache items
2017-02-01 14:54:18 +01:00
Mike Jolley
31308403d4
Use variables to save values in item crud.
2017-02-01 10:53:53 +01:00
Claudiu Lodromanean
9fadeacfdc
Tweak shipping zones button styling to handle RTL better
2017-02-01 10:25:42 +01:00
Claudio Sanches
54e35648e2
Fixed legacy date format
2017-02-01 10:11:19 +01:00
Claudio Sanches
247c9aff50
Merge pull request #13032 from woocommerce/fix/order-date-direct-access
...
Fix direct access to order_date property
2017-02-01 10:00:06 +01:00
Claudio Sanches
79256504a1
[REST API] Products endpoint fixes, closes #13031
2017-02-01 09:58:04 +01:00
Mike Jolley
3a3588c92c
Check product once
2017-02-01 02:11:56 +01:00
Mike Jolley
5a2b07763d
Update metadata directly
2017-02-01 02:03:18 +01:00
Mike Jolley
5e2f1de36b
get id once
2017-02-01 01:44:16 +01:00
Mike Jolley
2d013eb5be
Handle wp prefix in php
2017-02-01 01:43:52 +01:00
Brent Shepherd
7a7c0fbce6
Add WC_Abstract_Order::get_valid_statuses()
...
So that classes which extend WC_Abstract_Order can define custom statuses
specifically for their order type and have those used for validation in
WC_Abstract_Order::set_status() instead of only the order statuses defined
by wc_get_order_statuses().
For example, the subscription order type has a number of custom order statuses,
like 'wc-active' and 'wc-expired', which do not apply to orders but are valid
statuses for WC_Subscription objects, which extend WC_Abstract_Order.
2017-01-31 15:00:03 -08:00
Chris Lam
502fa930ba
Fixes #13035 - Added table alias so that the column names in the `ORDER BY` and `GROUP BY` clauses are not ambiguous
2017-02-01 11:58:54 +13:00
Boro Sitnikovski
58d7e6d940
Fix direct access of order_date property
2017-01-31 17:29:09 +01:00
Mike Jolley
5b221b4ed0
Edit context
...
#12936
2017-01-31 17:26:49 +01:00
Mike Jolley
efcbdc3031
Tweaks for #12805
...
Closes #12805
2017-01-31 17:25:57 +01:00
Claudiu Lodromanean
da22e021f9
Tweak admin tabs CSS to look good in LTR and RTL modes.
2017-01-31 10:09:56 +01:00
Mike Jolley
724f832b40
Fix get_template_loader_files
...
Fixes #12958
2017-01-31 09:56:27 +01:00
Mike Jolley
22260bfb96
Merge pull request #13021 from Chouby/ajax_wp_die
...
Use wp_die instead of die in ajax responses
2017-01-31 09:45:46 +01:00
Mike Jolley
a4b3244d7b
Merge pull request #13028 from woocommerce/fix-13027
...
Allow password resets when account page isn’t set
2017-01-31 09:45:16 +01:00
Mike Jolley
429b7534bb
Merge pull request #13029 from woocommerce/fix-13025
...
Fix wording on deprecation messages
2017-01-31 09:39:57 +01:00
Mike Jolley
dee73d4056
Use edit context on load
...
Closes #12936
2017-01-31 09:39:19 +01:00
Caleb Burks
df7f3533bc
Fix wording on deprecation messages
2017-01-30 23:40:21 -06:00
Caleb Burks
9b22886a0d
Allow password resets when account page isn’t set
2017-01-30 22:59:32 -06:00
Mike Jolley
55c9554ace
Use MDL
...
Closes #13016
2017-01-30 10:35:47 +01:00
Frédéric Demarle
4075024bb9
Use wp_die intead of die in ajax responses
2017-01-29 21:43:25 +01:00
Frédéric Demarle
e03000126e
Check SHOP_IS_ON_FRONT existence before defining it
2017-01-29 21:32:26 +01:00
Mike Jolley
abe87d9bfa
Merge pull request #12967 from woocommerce/fix/variation-get-name
...
Clean up variation names.
2017-01-27 17:01:34 +00:00
Claudio Sanches
346e1ea1e0
Merge pull request #12996 from woocommerce/rest-api-missing-types-args
...
REST API Types
2017-01-27 14:49:35 -02:00
Mike Jolley
6a997ec6b2
Merge pull request #13001 from thenbrent/honour_default_checkout_get_value
...
Honour default checkout_get_value
2017-01-27 16:42:32 +00:00
Mike Jolley
365b456fa5
Make sure product is set.
2017-01-27 16:39:53 +00:00
Claudio Sanches
24a5fe7592
Make WC_REST_Exception extend WC_Data_Exception
2017-01-27 13:52:21 -02:00
Mike Jolley
4abe2b8025
Disable smooth height for #12868
2017-01-27 15:37:35 +00:00
Mike Jolley
46367710ee
Default themes get theme support
2017-01-27 15:35:06 +00:00
Claudio Sanches
8c84836423
Merge pull request #12998 from todeveni/patch-3
...
Cast position as integer
2017-01-27 13:20:52 -02:00
Claudio Sanches
80bc7128be
Merge pull request #13002 from thenbrent/fix_undefined_variable_function
...
Fix "Undefined variable: function" notice
2017-01-27 13:19:07 -02:00
Mike Jolley
bf24ba395d
Use get_theme_support for gallery features
2017-01-27 14:13:54 +00:00
Brent Shepherd
0e393da2cd
Fix woocommerce_order_add_product deprecation msg
2017-01-26 16:58:47 -08:00
Brent Shepherd
5e77311384
Fix deprecated action messages
...
Don't end sentence with double .. and instead of "Replace with Use CRUD"
just say "Replace with CRUD"
2017-01-26 16:44:28 -08:00
Brent Shepherd
7a77c70d2a
Fix "Undefined variable: function" notice
...
Triggered whenever wc_deprecated_argument() is called in an Ajax request.
Related to #12889
2017-01-26 16:31:11 -08:00
Brent Shepherd
50da0ebd4a
Fix default WC_Checkout::get_value() behaviour
...
Prior to SHA: 43d362d1
, WC_Checkout::get_value() would set the default value
for an $input whenever the value after was null after being passed through
filters. This logic changed with SHA: 43d362d1
to *always* return the filtered
value, even if the value was not changed by filters and was still null.
This means if any code filters just one checkout value, like order_comments,
then all other checkout values will default to null, because the has_filter()
check will pass, but the default null value won't be modified by that callback.
2017-01-26 14:47:43 -08:00
Toni Viemerö
2d92bdece6
Cast position as integer
...
Even though I'm sending `position` as integer in my REST request, it comes through as string value.
```
array (
'id' => '186',
'position' => '0',
)
```
2017-01-26 23:08:12 +02:00
Mike Jolley
e930ccd16e
object types to fix unit tests
2017-01-26 20:58:55 +00:00
Toni Viemerö
2b00615fa2
Remove tilde from i
2017-01-26 22:55:23 +02:00
Brent Shepherd
e7e434da4b
WC_Product_Variable::sort_variation_prices()
...
To keep variation sorting logic inside the variable product, and separate
from the database storage logic in WC_Product_Variable_Data_Store_CPT
2017-01-26 12:47:46 -08:00
Mike Jolley
82d7fe6e73
Added more missing args and types
2017-01-26 20:33:39 +00:00
Mike Jolley
b727c61da7
Missing arg and setting types
2017-01-26 20:06:18 +00:00
Mike Jolley
2d23705431
ID arg definitions
2017-01-26 19:22:57 +00:00
Mike Jolley
def35a5aa2
Cast request ids to int
2017-01-26 18:34:11 +00:00
Jaydeep Rami
615ba59ebb
Fixed issue #12986
2017-01-26 23:21:34 +05:30
Justin Shreve
0b1685c76b
Remove variation get_name, it will get it from parent.
2017-01-26 07:48:04 -08:00
Justin Shreve
7b1adfb98f
Bake out of get_title deprecation changes
2017-01-26 07:46:59 -08:00
Mike Jolley
40e9eabf9f
Merge pull request #12983 from woocommerce/get_tax_classes
...
WC_Tax::get_tax_class_slugs()
2017-01-26 14:10:04 +00:00
Mike Jolley
9eaffcde42
Merge pull request #12980 from woocommerce/fix/payment-token-update-props
...
When updating payment tokens, only update the props that have changed & fire off a hook of the changed props.
2017-01-26 14:06:44 +00:00
Justin Shreve
e176f008b8
Add some comments for the return value of get_tax_classes and get_tax_class_slugs
2017-01-25 13:48:29 -08:00
Justin Shreve
474a307420
Introduce get_tax_class_slugs.
2017-01-25 13:38:13 -08:00
Justin Shreve
e8237eab3d
Merge pull request #12965 from woocommerce/update/duplicate-product
...
Update WC_Admin_Duplicate_Product to use CRUD.
2017-01-25 12:18:49 -08:00
Justin Shreve
bcae0166fd
Fix spacing error, return objects on our new hook, and force sku to be unique when duplicating.
2017-01-25 11:44:27 -08:00
Justin Shreve
32651f638c
When updating payment tokens, only update the props that have changed + fire off a hook of the changed props.
2017-01-25 11:05:54 -08:00
Justin Shreve
318046789c
Comment clarifying translation wrapper.
2017-01-25 10:40:14 -08:00
Justin Shreve
9889efec75
Catch Product # titles and remove error logs
2017-01-25 10:37:48 -08:00
Justin Shreve
f344143b63
Catch variation text and update
2017-01-25 10:27:28 -08:00
Mike Jolley
aadc1094e0
Merge pull request #12939 from maximus80/carousel-filter
...
add animationLoop to woocommerce_single_product_carousel_options filter
2017-01-25 00:47:34 +00:00
Mike Jolley
0df50c59a3
Merge pull request #12972 from woocommerce/log-handler-interface
...
Add log handler interface
2017-01-25 00:42:50 +00:00
Mike Jolley
e9b0fba63c
Merge pull request #12953 from pierrebuet/master
...
Updating the way select2 v4 loads translated strings
2017-01-25 00:22:47 +00:00
Mike Jolley
3a104df5bd
Merge pull request #12966 from thenbrent/dry_get_data
...
Remove redundant WC_Product::get_data() method
2017-01-25 00:12:16 +00:00
Mike Jolley
5746c87580
Merge pull request #12968 from woocommerce/updated-props-action
...
Fire actions for updated props
2017-01-25 00:10:48 +00:00
Mike Jolley
3afb00da06
Fixed Typo
2017-01-25 00:09:57 +00:00