Mike Jolley
e9c3ebebdc
Merge branch 'master' into feature/discounts-class
...
# Conflicts:
# includes/abstracts/abstract-wc-data.php
# woocommerce.php
2017-08-08 15:49:59 +01:00
Mike Jolley
6dc67ee133
phpcs
2017-08-08 10:51:35 +01:00
Mike Jolley
6af275da6e
Only return tax classes if product is taxable.
...
Fixes #16241
2017-08-03 08:44:02 +02:00
claudiulodro
43cbcd04ef
Remove extra calcs and populate item totals
2017-07-31 11:48:34 -07:00
Claudiu Lodromanean
95ffa441e0
Merge pull request #16290 from woocommerce/feature/15500-1
...
Soft deprecated WC_Cart->coupon_applied_count
2017-07-31 09:16:33 -07:00
Claudio Sanches
77855f9d07
Soft deprecated WC_Cart->coupon_applied_count
2017-07-28 18:12:56 -03:00
Claudio Sanches
b8305f150e
Use WC_Cart_Totals to calculate totals
2017-07-28 17:41:46 -03:00
Mike Jolley
51fbb1aec3
set_items_from_cart
2017-07-28 13:02:39 +01:00
Mike Jolley
4c4f26ff41
Changes to allow shipping to be calculated from totals class
...
Moved some items from
https://github.com/woocommerce/woocommerce/pull/11889/files to support
this.
2017-07-25 15:11:32 +01:00
Mike Jolley
d24faebea8
Split fixed cart from other discounts in class.
2017-07-18 20:42:47 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
Caleb Burks
03d71cd8ee
Add filter for cart cross-sells
2017-07-11 13:33:51 -05:00
Caleb Burks
5af560e32a
Add `cart_subtotal` to the shipping package
2017-07-04 03:05:39 -05:00
Mike Jolley
748c39d966
Add note about #15904
2017-07-03 10:26:26 +01:00
claudiulodro
4e7d3333cf
Use type check in coupon constructor
2017-06-27 13:53:56 -07:00
Mike Jolley
66c7c20844
Should work in reverse
2017-06-14 12:57:26 +01:00
Mike Jolley
985f7e043f
Update totals if local pickup is selected
2017-06-14 12:46:59 +01:00
Mike Jolley
6eacecfeb6
Append blog ID on persistent cart user meta
2017-06-08 13:47:23 +01:00
Beka Rice
494fa0974c
Filter quantity being added to the cart
2017-06-02 00:07:06 -04:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Mike Jolley
0d89250b3f
Merge pull request #14748 from woocommerce/fix/stock-in-cart-notice
...
Correct the stock display notice when a variable product manages stock for it's children
2017-04-27 17:38:59 +01:00
Mike Jolley
aacb01d1e7
Merge branch 'pr/13503'
...
# Conflicts:
# assets/css/twenty-seventeen.css
# assets/css/woocommerce-layout.css
# assets/css/woocommerce-layout.scss
# assets/css/woocommerce.css
2017-04-27 12:46:05 +01:00
Mike Jolley
60a5ecf775
Merge pull request #13761 from franticpsyx/sold-individually-found-in-cart
...
[3.1] Add woocommerce_add_to_cart_sold_individually_found_in_cart hook
2017-04-27 11:32:33 +01:00
Mike Jolley
dac36505c2
Correct the stock display notice when a variable product manages stock for it's children
2017-04-27 11:03:56 +01:00
Mike Jolley
f9dd3310b2
Unfiltered context rather than true
2017-04-13 12:38:54 +01:00
Claudiu Lodromanean
715656921d
wc_is_attribute_in_product_name
2017-04-10 14:35:16 -07:00
Mike Jolley
95397188d5
Make get_cross_sells unique.
...
Fixes #14158
2017-04-10 15:20:41 +01:00
Manos Psychogyiopoulos
24a2ff1960
Add woocommerce_add_to_cart_sold_individually_found_in_cart hook
...
Makes it easy for 3p code to change the condition that identifies whether a "sold individually" product is in the cart. For example, 3p code may use this hook to identify whether a product with the same ID already exists in the cart (instead of relying on finding the same hash/key).
2017-03-24 10:41:27 +02:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
JeroenSormani
91ce342e7c
Type cast ->get_weight() on WC_Cart::get_cart_contents_weight calculation
2017-03-11 19:01:58 +01:00
Claudiu Lodromanean
28f8380ab6
Sprinkle some periods
2017-03-07 15:00:14 -08:00
Claudiu Lodromanean
d0f47a7980
Revert to original behavior
2017-03-07 13:17:36 -08:00
Aristeides Stathopoulos
10ffc92a73
Inline control structures are not allowed
2017-03-07 22:24:24 +02:00
Claudiu Lodromanean
955a75bf30
Fix changes and more tests
2017-03-07 11:58:02 -08:00
Claudiu Lodromanean
2436541fff
Fix individual use coupon handling
2017-03-07 11:31:20 -08:00
Mike Jolley
790dd57933
Apologise -> american english
...
Closes #13370
2017-02-27 17:39:08 +00:00
Claudio Sanches
2dc3033c1e
Better fees description
2017-02-24 15:38:14 -03:00
Claudio Sanches
1fdcacc565
Stop remove negative fees
2017-02-24 15:31:51 -03:00
Claudio Sanches
e42e2a3335
Replace woocommerce_coupon_code filter by wc_format_coupon_code()
2017-02-22 14:40:24 -03:00
Mike Jolley
1098d49526
Check if product is taxable.
2017-02-22 10:41:39 +00:00
Mike Jolley
73c651f4d0
Check the nicename, not the sanitized name
2017-02-20 18:04:45 +00:00
Mike Jolley
3a6b4ffb38
Doing it wrong notice when setting a negative fee in cart.
...
#13224
2017-02-17 12:28:18 +00:00
Jez McKean
b65e41206f
needs_shipping(): minor efficiency improvement
...
No need to check other products for whether they need shipping if we've already found one.
2017-02-13 12:28:50 +00:00
Mike Jolley
11015c4b06
Pass products around and change how wc_format_stock_for_display gets called so $product is available.
2017-01-11 12:17:18 +00:00
Kathy Darling
8d4844a31c
space after parens
2017-01-06 14:39:02 -05:00
Kathy Darling
ff0926aa2d
use wc_format_stock_quantity_for_display() to wrap stock quantity numbers for front end display. closes #12753 .
2017-01-04 12:25:28 -05:00
Mike Jolley
1795a0f9c3
Remove virtual products from shipping packages
...
Closes #12628
2016-12-19 16:17:50 +00:00
Mike Jolley
861f9e7a20
update_object_term_cache for cart items
2016-12-09 13:16:15 +00:00
Matty
ff1442e9aa
Allow cross sells to be sold as variations
2016-11-25 13:17:09 +00:00
Mike Jolley
9087a45f29
Remove attribute_ prefix rather than add so that get_attributes has better return values, and don't show duplicate data in cart.
2016-11-24 14:20:48 +00:00