Claudio Sanches
4e653139b6
Merge pull request #13117 from woocommerce/fix-12973
...
Moved refund logic
2017-02-08 16:15:54 -02:00
Claudiu Lodromanean
4525f91223
Merge pull request #13112 from woocommerce/fix-13106
...
Don't round values in get_on_sale_products
2017-02-08 10:14:52 -08:00
Claudio Sanches
3f2f313161
Merge pull request #13118 from woocommerce/fix-12955
...
Fix type setting in API
2017-02-08 16:14:05 -02:00
Mike Jolley
edbee7db5a
Merge pull request #13115 from woocommerce/fix-12811
...
Define min and max price, not all variation prices, in schema
2017-02-08 18:09:48 +00:00
Mike Jolley
3cf772bcb5
Always use type arg
2017-02-08 18:08:13 +00:00
Mike Jolley
eb150724c4
Make sure calculations are redone after setting line items
...
Closes #13075
2017-02-08 17:23:40 +00:00
Claudiu Lodromanean
dce81b4d4e
Use store's decimal settings when figuring out what's a sale product
2017-02-08 09:04:13 -08:00
Mike Jolley
11ef37880b
Moved logic to wc_create_refund
2017-02-08 16:20:42 +00:00
Mike Jolley
52291e003c
wrong method name
2017-02-08 16:20:05 +00:00
Mike Jolley
b5572fc041
wc_create_refund should handle payment and stock
2017-02-08 16:19:47 +00:00
Mike Jolley
af6ee6d420
Fix; wrong method calls
2017-02-08 16:19:13 +00:00
Mike Jolley
c63cec32b9
Fix; prevent duplicate queries
2017-02-08 16:19:01 +00:00
Mike Jolley
b391e64453
Fix; Deprecated methods should return
2017-02-08 16:18:42 +00:00
akashsonic
cb42768164
Added exit after wp_safe_redirect.
...
Here not add exit after wp_safe_redirect.
2017-02-08 17:52:06 +05:30
Mike Jolley
dd70417758
Fix offset direction for schedule sales cron
...
Fixes #13105
2017-02-08 12:08:49 +00:00
Mike Jolley
66bceedbf8
Send min and max price, not all variation prices
...
Closes #12811
2017-02-08 11:40:04 +00:00
Mike Jolley
649f55b494
Load default country/state on edit
...
Closes #13061 Fixes #12899
2017-02-08 10:56:00 +00:00
Mike Jolley
3b06660edf
Merge pull request #12917 from woocommerce/12170-rtl
...
#12170 Set up RTL generation and enqueuing
2017-02-08 10:29:55 +00:00
Mike Jolley
718149f1d4
Merge pull request #12999 from thenbrent/add_sort_variation_prices
...
Move price sorting into WC_Product_Variable::sort_variation_prices()
2017-02-08 10:29:30 +00:00
Claudiu Lodromanean
06c17d6be4
Add whitespace between parens
2017-02-07 13:57:01 -08:00
Claudiu Lodromanean
8ce5356943
13106 Dont round values in get_on_sale_products
2017-02-07 13:46:00 -08:00
Claudiu Lodromanean
173c09dd04
Fix failing tests and array_merge error
2017-02-07 10:46:03 -08:00
Mike Jolley
5888ef5b93
Convert standard to '' in CRUD
...
Closes #12896
2017-02-07 17:22:04 +00:00
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