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
1d076cbec5
Trigger for emails
2017-02-01 20:08:51 +01: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
Claudiu Lodromanean
c220f38ba8
12170 Style tweaks for email "From" address input to improve RTL compatibility
2017-02-01 18:41:14 +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
Claudio Sanches
73603ac3cc
Merge pull request #13037 from thenbrent/add_wc_order_get_valid_statuses
...
Add WC_Abstract_Order::get_valid_statuses()
2017-02-01 09:53:36 +01:00
Claudio Sanches
ad4c2d73f4
Merge pull request #13041 from woocommerce/fix-13014
...
Update Zoom to 1.7.18
2017-02-01 09:48:15 +01:00
Caleb Burks
4e59f08918
Update Zoom to 1.7.18
2017-01-31 22:47:25 -06: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
Claudiu Lodromanean
a52ce6d21e
Tweak variations checkbox margins
2017-01-31 19:05:21 +01: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
Mike Jolley
1cee800b4e
Merge pull request #13020 from Chouby/shop_on_front
...
Check SHOP_IS_ON_FRONT existence before defining it
2017-01-30 09:27:14 +00: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
Mike Jolley
9c523d2bc1
Merge branch 'pr/12937'
...
# Conflicts:
# templates/single-product/product-image.php
2017-01-27 16:52:46 +00:00
Mike Jolley
9bc5eefc98
Use array for class filter
2017-01-27 16:52:23 +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
926384f20c
Make script load features conditonally
2017-01-27 15:35:29 +00:00
Mike Jolley
db77ad96e1
Add image links to template files
2017-01-27 15:35:20 +00:00
Mike Jolley
63454578d3
Readme
2017-01-27 15:35:10 +00:00
Mike Jolley
46367710ee
Default themes get theme support
2017-01-27 15:35:06 +00:00
Mike Jolley
24608370ab
Style thumbnails
2017-01-27 15:34:50 +00:00