Mike Jolley
30d2ab8af8
Avoid setting is_customer_note when 0
...
Closes #7995
2015-04-23 11:50:09 +01:00
Mike Jolley
9f57025a1e
Remove unnecessary stock notice
...
Closes #7990
2015-04-23 11:04:16 +01:00
Mike Jolley
9debd84a7f
Merge pull request #7978 from InoPlugs/patch-3
...
[2.3] Update abstract-wc-order.php
2015-04-20 11:12:25 +01:00
InoPlugs Webdesign
520282ff16
Update abstract-wc-order.php
...
Using a wrong key name -> 'cart_discount_tax' is calculated wrong a few lines below (= $cart_subtotal_tax)
2015-04-18 14:44:39 +02:00
Spreeuw
1e2d0775c4
tax text for negative shipping (refunds)
2015-04-17 12:45:32 +02:00
Spreeuw
3f0b589797
Make get_shipping_to_display compatible with refunds
2015-04-17 12:38:08 +02:00
Mike Jolley
467a269175
Only set author for user added notes so system notes can be distinguished
2015-04-17 11:23:09 +01:00
Mike Jolley
9f65d2a1fc
Added priorities for shipping methods to give more control over defaults.
...
Closes #7871
2015-04-13 15:32:57 +01:00
Mike Jolley
06f2ac2f09
[2.3] Remove rounding from shipping cost to greater precision with taxes
2015-03-31 13:59:17 +01:00
Mike Jolley
c410771de2
[2.3] Calculate taxes should save _line_tax_data
2015-03-31 13:21:10 +01:00
Mike Jolley
c6dae2b286
Merge pull request #7834 from SiR-DanieL/scrutinizer-issues
...
Small tweaks and style fixes
2015-03-30 10:33:27 +01:00
Nicola Mustone
95cdb0390f
fix related products error
2015-03-27 17:52:21 +01:00
Nicola Mustone
214a0b669f
splitted get_related for complexity
2015-03-27 17:28:26 +01:00
Nicola Mustone
d2af01df5b
scrutinizer suggested tweaks
2015-03-27 16:15:40 +01:00
Mike Jolley
23932dbfca
Default calculate_taxes to base
...
Closes #7765
2015-03-27 10:42:26 +00:00
Mike Jolley
ca934ba0d9
Add get methods for length, width, height and add filters
...
Closes #7617
2015-03-24 16:52:26 +00:00
Mike Jolley
70bf6fc842
[2.3] prices_include_tax boolean fix
...
Closes #7788
2015-03-23 13:35:40 +00:00
Mike Jolley
f04ebeb78e
has_enough_stock - use get_stock_quantity
...
Closes #7779
2015-03-20 10:40:53 +00:00
Mike Jolley
70d125ae96
[2.3] Fix - get_total_discount() function with certain tax setups.
...
Revised how discounts/discount taxes are stored for consistency. Always
store ex. tax to make data retrieval easier, and to ensure totals are
correct after settings changes. Backwards compatibility maintained
through use of order versioning.
#7728
2015-03-16 12:17:09 +00:00
Mike Jolley
d49b5eb182
pass args to order amount filters
...
Closes #7718
2015-03-13 10:03:08 +00:00
Mike Jolley
6447d4081f
Prevent notice
...
Closes #7705
Fixes #7704
2015-03-13 09:25:24 +00:00
Mike Jolley
c44100f9e7
wc_sanitize_tooltip
2015-03-13 09:14:28 +00:00
Mike Jolley
8554796c4b
Show calculate total when shipping is needed, but shipping is hidden.
...
Closes #7650
2015-03-10 16:57:43 +00:00
Barry Kooij
44d8bee22c
Use round instead of number_format
2015-03-09 18:10:49 +01:00
Barry Kooij
245a2cf4e7
Added the option to not round the line total.
2015-03-09 18:06:31 +01:00
Mike Jolley
3fc7a0ae65
Allow wc_attribute_label to support product-level attribute names.
...
Closes #7662
2015-03-09 13:40:07 +00:00
Mike Jolley
fa0be55b01
transient cache dashboard reports
...
Closes #7641
2015-03-09 11:07:49 +00:00
Tamara Zuk
d4b08daa64
Avoid 'division by zero' warnings
...
SHA 85befad283
does not avoid these
warnings if `$inc_tax` is `false`.
2015-03-06 17:46:31 -05:00
Mike Jolley
568a0fe4fa
Tweak international delivery
...
Fixes #7651
2015-03-06 14:45:04 +00:00
Barry Kooij
c45c4fd1a2
optimize PR#7605
2015-03-06 15:06:24 +01:00
Tamara Zuk
0e4cea8e85
Introduce `WC_Order::get_cancel_order_url_raw()` method
2015-03-03 02:01:17 -05:00
Claudio Sanches
f2fc3b151f
Merge pull request #7562 from tjuris/get-related-terms-filters
...
Apply filters to product/tag terms when querying related products
2015-03-02 10:39:31 -03:00
Tanel Jüris
fe60425eeb
Rename filter prefix from wc_ to woocommerce_
2015-03-02 12:09:24 +02:00
Mike Jolley
d98569327d
Check payment title exists before output.
2015-03-02 10:03:30 +00:00
Barry Kooij
ffc436957b
Removed double @property comment
2015-02-26 17:14:06 +01:00
Tanel Jüris
d9a568bbea
Apply filters to product/tag terms when querying related products
2015-02-25 16:02:31 +02:00
Mike Jolley
26487a5734
Fix - Settings API - allow multiselect fields to be emptied.
...
Closes #7542
2015-02-24 12:12:42 +00:00
Mike Jolley
d9455994c8
Use 30 days instead of year for transients to avoid bugs in memcache plugins.
...
Closes #7520
2015-02-24 12:02:56 +00:00
Mike Jolley
4c411a69e7
* Fix - Saving an order needs to save the discount amount ex. tax like
...
the cart.
* Tweak - Show discounts inc. tax when showing order totals inc. tax.
Closes #7532
@barrykooij @claudiosmweb How does this look? Looks like we were saving
order discounts inconsistent with the cart/checkout
2015-02-23 17:39:57 +00:00
Mike Jolley
6c9562112f
Fix Related post offset.
2015-02-20 16:17:45 +00:00
Mike Jolley
44cf2c2b70
Filter before max_related_posts
2015-02-16 16:48:11 +00:00
Mike Jolley
5c1a0d92e8
Related posts - replace ORDER BY RAND() with random offset.
...
Closes #7436
2015-02-16 13:16:18 +00:00
Mike Jolley
969e2d3b18
Stock status when updating out of stock product.
...
Fixes #7402
2015-02-16 12:14:10 +00:00
Paul Wilde
c913316f8b
Introduce wc_get_page_permalink.
2015-02-15 19:13:22 +00:00
Mike Jolley
30abed2f9e
Merge pull request #7375 from tamarazuk/rating-count-fix
...
Fix average product rating when ratings are not required
2015-02-12 00:04:26 +00:00
Tamara Zuk
7eaae2d561
Fix average product rating when ratings are not required
...
If ratings are not required, the total rating count was counting all
reviews which skewed the average rating. In other words, reviews with
no rating were counted as a “zero” rating in the average rating
calculation. This bug was introduced in
83a457b29c
which provided a fix for #6839 .
This change introduces a new product method `get_review_count()` which
can be used to accurately calculate the total number of reviews for a
product. Some instances of `get_rating_count()` were replaced with
`get_review_count()` where appropriate. Additionally, the
`single-product/rating.php` template was adjusted to display the
correct number of customer reviews and ratings in rich snippets. I’ve
also included the `bestRating` rich snippet detailed
[here](http://schema.org/AggregateRating ). The version number was
adjusted to 2.3.2 on that template as I think this is a larger change.
2015-02-11 17:55:16 -05:00
Mike Jolley
43c24feffd
Item meta removal query in order class.
2015-02-11 22:14:24 +00:00
Brent Shepherd
f1fa927f57
Fix WC_Order::payment_complete() on back-end
...
SHA: c038001eab
changed `WC_Abstract_Order::payment_complete()` to use
WC()->session->set( 'order_awaiting_payment' ) instead of
`WC()->session->order_awaiting_payment`, but `WC()->session` is only
set on front-end requests, meaning any extension that tries to complete
payment on an order from the back-end would cause a fatal error.
2015-02-10 16:55:47 -08:00
Claudio Sanches
22c4f02bbf
Used filtered comment for woocommerce_new_customer_note action, closes #7349
2015-02-10 14:44:28 -02:00
Claudio Sanches
0558c3c286
Added woocommerce_product_get_rating_html filter for WC_Product class, closes #7337
2015-02-10 13:01:04 -02:00