Mike Jolley
700369c386
Refund report changes
...
1. Ensure refund order_total is negative and reflects the full amount,
not just line items
2. Ensure transients are cleared when doing refunds
3. sales-reports order types so we can exclude refunds from pure
‘sales’ reporting
4. Tweak placement of refunds in legend.
Closes #6411
2014-10-06 13:39:53 +01:00
Mike Jolley
e5ebeff99c
Merge pull request #6383 from BFTrick/iss-6358
...
Refactoring Email Classes to Use One Send Method
2014-10-02 14:00:18 +01:00
mgiulio
56c2e5838d
Fix get_cart_tax() comment
2014-09-29 17:11:34 +02:00
Patrick Rauland
1498198215
renaming and moving abstract-wc-email file
2014-09-23 10:12:43 -06:00
shivapoudel
303a5b28d0
Absolute path fix for abstract classes :)
2014-09-21 00:24:49 +05:45
Mike Jolley
493285f101
When updating order status, ensure its a valid WC order status.
...
Fixes #6285
2014-09-17 12:24:10 +01:00
Illimar Tambek
fb19f5b9c5
Improve naming & comments
2014-09-17 11:27:43 +03:00
Illimar Tambek
386011ffae
Allow getting rating count for a specific rating number
2014-09-17 11:03:10 +03:00
Mike Jolley
ce1236bd95
Merge branch 'master' of https://github.com/woothemes/woocommerce
...
Conflicts:
readme.txt
2014-09-16 10:48:46 +01:00
Mike Jolley
a3b522aff8
Prepare update queries.
2014-09-16 10:45:28 +01:00
Barry Kooij
9723ed8096
Added settings sub title styling
2014-09-15 17:47:01 +02:00
Barry Kooij
a93b107e55
removed unused default
2014-09-15 17:30:15 +02:00
claudiosmweb
066eb3c5b0
fixed wc_get_order_status_name() appear as wc 2.1 order status
2014-09-12 10:01:49 -03:00
claudiosmweb
591d3dc3be
added methods to dynamically get the address fields in WC_Checkout::create_order(), closes #6226
2014-09-11 17:12:17 -03:00
Mike Jolley
7ae41bb4ed
Fix - Ensure shipping address gets displayed - fixes needs_shipping_address() method.
2014-09-11 11:11:22 +01:00
Mike Jolley
3a4ba6e4c8
For regular products, ensure stock level saves on product creation.
2014-09-10 23:55:40 +01:00
Max Rice
55d3ba0d9d
Fix warnings with WC_Order::get_item_total()
...
When calling WC_Order::get_item_total() for a fee, $item[‘qty’] is not
set which causes a notice and warning.
2014-09-09 21:23:46 -04:00
claudiosmweb
2f1533ff94
created the wc_get_order_status_label() function
2014-09-09 14:14:10 -03:00
claudiosmweb
c85a71dcee
fixed the order status label
2014-09-09 14:00:37 -03:00
Mike Jolley
27a20dd80e
Docblock changes
2014-09-08 16:35:40 +01:00
Mike Jolley
c4ef86d44e
scrutinizer patches
2014-09-08 00:37:55 +01:00
Mike Jolley
1d13f767b3
Merge pull request #6157 from tamarazuk/coding-standards
...
Coding standards Part 1
2014-09-03 17:05:42 +01:00
Mike Jolley
349c85b639
Remove redundant wc_order_can_be_edited filter
...
#6154
2014-09-03 10:09:31 +01:00
Mike Jolley
cb76bd7fb8
Merge pull request #6154 from thenbrent/is_editable
...
Add `WC_Abstract_Order::is_editable()` method and `'wc_order_is_editable'` filter
2014-09-03 10:06:04 +01:00
claudiosmweb
78c7fefe3e
fixed some docblocks
2014-09-02 16:50:19 -03:00
thenbrent
3acfb14214
Store order's editable status in property
...
To save overhead of a function call
2014-09-02 12:27:26 -07:00
thenbrent
4dea71314f
Add 'wc_order_is_editable' filter
2014-09-02 11:49:05 -07:00
thenbrent
78d932e6d2
Add WC_Abstract_Order::is_editable()
...
To centralise logic used to determine if an order can be edited from
the Edit Order screen
2014-09-02 11:47:56 -07:00
Tamara Zuk
9c7826319c
Coding Standards: Abstract classes
...
* fixed indentation - swapped spaces for tabs at start of line, swapped
tabs for spaces min-line for alignment
* removed instances of `@return void` and `@access public`
* improved readability
@see http://make.wordpress.org/core/handbook/coding-standards/php/
2014-08-31 01:49:58 -04:00
justinstern
8417209d6c
Improve, fix, WC_Payment_Gateway::get_transaction_url()
...
* Make the new get_transaction_url() method a bit more
flexible/convenient by passing in the full order object rather than
transaction_id
* Fix bug with core PayPal gateway get_transaction_url() override
2014-08-27 21:51:03 -04:00
Barry Kooij
94365791af
Changed all use of get_product to wc_get_product
2014-08-19 12:09:29 +02:00
Mikel Martin
1ed0a9e9db
Payment unavailable if max_amount greater than 0 and order totar greater than max_amount
2014-08-17 22:10:35 +02:00
Mike Jolley
c51fac23e0
Availability with backorders not requiring notification.
2014-08-15 15:29:14 +01:00
Barry Kooij
6655188f0b
Changed use of get_order with wc_get_order
2014-08-15 14:29:21 +02:00
Mike Jolley
da483198f8
Simplify icons
2014-08-15 11:50:53 +01:00
Mike Jolley
3f53512c7f
Fix up visibility of stock options, drop downs, and get_availability() when parent is managing stock for a variation.
...
Fixes #6017
2014-08-13 15:03:30 +01:00
claudiosmweb
acb0699e94
updated the reason default value
2014-08-11 10:07:09 -03:00
claudiosmweb
066ba904cb
added $reason param in WC_Payment_Gateway::process_refund()
2014-08-07 15:57:29 -03:00
Mike Jolley
760cd6861c
Small refactor of is_visible
...
Also returns false for non-published products and fixes #5955
2014-08-04 11:19:58 +01:00
Mike Jolley
368e6b9412
Round shipping quote totals to store DP setting
...
Fixes #5888
2014-07-30 11:04:01 +01:00
claudiosmweb
70541f85e7
fixed the woocommerce_order_item_needs_processing filter
2014-07-29 15:08:08 -03:00
Mike Jolley
c465c7235d
Merge branch 'credit-notes'
...
Conflicts:
includes/abstracts/abstract-wc-order.php
includes/class-wc-order-factory.php
includes/class-wc-post-types.php
includes/wc-formatting-functions.php
includes/wc-order-functions.php
2014-07-29 12:09:52 +01:00
Mike Jolley
cdc0efed75
Merge pull request #5843 from maxrice/feature-orders-endpoint-issue-4160
...
Create/Edit/Delete orders via the REST API
2014-07-28 09:18:49 +01:00
Max Rice
f656d57282
Add WC_Order::get_order_subtotal()
...
Convenience method to return the order subtotal
Part of #4160
2014-07-27 23:31:26 -04:00
Max Rice
3cc9952fea
Include order item ID and rate ID in WC_Order::get_tax_totals()
...
Part of #4160
2014-07-27 23:31:02 -04:00
Max Rice
f4feefc100
Fix WC_Order::get_user()
2014-07-27 23:30:21 -04:00
Max Rice
e47ac33eb1
Add calculate_shipping() method to WC_Abstract_order
...
When the update_shipping() method is used, the order shipping amount is
not properly calculated unless the shipping costs are summed.
Part of #4160
2014-07-27 23:29:40 -04:00
Max Rice
1598d1b539
Add update methods to WC_Abstract_Order
...
These methods compliment the existing add_*() methods and provide a
consistent interface to add and update items for the order.
Part of #4160
2014-07-27 23:28:25 -04:00
Max Rice
cca54879fa
Fix misc docblocks
2014-07-27 23:23:59 -04:00
Mike Jolley
029bbbec39
Updated reports
2014-07-25 15:46:19 +01:00