Mike Jolley
588be3a780
merge master
2018-06-11 13:46:04 +01:00
Caleb Stauffer
d4d771437c
fix bug with cart coupon text (without introducing new filter)
2018-06-01 22:44:03 -04:00
Mike Jolley
f9c178b0dd
Pass formatted destination to template file
2018-06-01 21:29:23 +01:00
Caleb Stauffer
6fc7a2d7cc
add filter to toggle between coupon's discount amount and free shipping text
2018-05-31 20:44:49 -04:00
urosmil
19efe63fe8
Improved wc_add_to_cart_message filter ( #19817 )
...
* Improved wc_add_to_cart_message filter
Added product quantity parameter to filter, as it is relevant for construction of message and passed through function call.
* Removed param from deprecated function
Param has been removed from deprecated function as suggested
2018-05-30 14:53:15 +01:00
Frédéric Demarle
fa4b1a741e
Add $product as 2nd param in filter woocommerce_cart_item_data_to_validate
2018-04-30 17:48:22 +02:00
Claudio Sanches
53cde6f317
Fixed conflicts in cart functions and fixed PHPCS violations on core funcitons
2018-03-09 12:46:20 -03:00
Claudio Sanches
bea2ec7fba
Fixed includes/wc-cart-functions.php PHPCS violations
2018-03-07 12:12:27 -03:00
Chunkford
732416ff34
Update wc-cart-functions.php
2018-03-07 13:21:23 +00:00
Mike Jolley
07e17aafd5
typo
2018-03-07 11:47:42 +00:00
Mike Jolley
46862deb17
wc_get_cart_item_data_hash function
2018-03-05 19:57:57 +00:00
Boro Sitnikovski
328dad7659
Improve UI on Coupon amount in cart
2018-02-28 09:47:59 +01:00
Mike Jolley
b93f719b36
Merge pull request #18624 from Chunkford/patch-4
...
Display zero value when using shipping classes
2018-02-22 12:22:58 +00:00
Mike Jolley
0df57524a7
Added woocommerce_persistent_cart_enabled filter
2018-02-19 16:36:26 +00:00
Chunkford
af01745787
Update wc-cart-functions.php
2018-01-31 17:11:21 +00:00
Chunkford
afb21dda06
Update wc-cart-functions.php
2018-01-31 12:02:59 +00:00
Chunkford
4af291c38c
Update wc-cart-functions.php
...
Alteration to the proposed changes to take into account free shipping so the price isn't displayed
2018-01-31 11:58:37 +00:00
Chunkford
e831406d9f
Display zero value when using shipping classes
...
When offering free shipping on certain products via a shipping class, the price (albeit zero value) isn't shown to the end user.
https://www.screencast.com/t/8oT7maIftTZo
It makes for a better user experience to actually show the 0.00 price to ensure there isn't any doubt.
https://www.screencast.com/t/mkrKWNItrI5r
2018-01-27 13:25:24 +00:00
Mike Jolley
01871fd2c8
Add getter for tax_display_cart variable, with filter
2017-12-15 13:39:35 +00:00
hardipparmar
db14a2595f
Changed.
2017-12-11 12:15:44 +05:30
Mike Jolley
d49590d0a3
Fixes to 5.2 rounding function and additional tests
2017-12-05 12:10:23 +00:00
Mike Jolley
55af8a2ec8
wc_cart_round_discount
2017-12-04 22:10:47 +00:00
Claudio Sanches
1008ad1203
Fixed method returning value in write content warning in legacy PHP
2017-10-27 16:01:33 -02:00
Mike Jolley
6a7af9897a
Standards
2017-10-27 15:21:03 +01:00
Chris Schrijver
dee7a8c8d4
If no tax rate is defined for a specific country it still shows "incl. VAT" at the checkout / cart when tax display is set to "As single total". This will solved that
2017-10-11 17:58:43 +02:00
Mike Jolley
f1f3a6fbc0
Add legacy shipping conditon
...
Closes #16853
2017-09-20 14:11:47 +01:00
Mike Jolley
9e1bd3c54d
phpcs
2017-09-20 14:03:06 +01:00
Mike Jolley
804feb9333
Store fee amount and prevent totals going negative
2017-08-23 12:15:06 +01:00
Mike Jolley
aefb9c4705
Moved magic method to legacy
2017-08-18 11:37:22 +01:00
Mike Jolley
aa82a54f47
Prevent notices
2017-08-09 19:27:19 +01:00
Mike Jolley
73350e5418
Fake round half down in PHP 5,2
...
Fixes unit tests.
2017-08-09 11:59:50 +01:00
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
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
Jaydeep Rami
46d3638089
Fix missing return statement ( #16148 )
...
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
2017-07-20 18:01:14 +01:00
Chase Wiseman
f8a040ad04
Only output the shipping calculator markup on the cart page
2017-06-27 11:37:55 -07:00
Mike Jolley
6eacecfeb6
Append blog ID on persistent cart user meta
2017-06-08 13:47:23 +01:00
Rasmus Bengtsson
4f00d7e5e3
PHPDoc: Add missing return statement
2017-05-15 13:37:59 +02:00
Mike Jolley
e143a51cc7
Merge pull request #14463 from woocommerce/add/show-shipping-calculator-variable
...
Add variable so shipping calculator is shown on first row
2017-04-27 17:41:48 +01:00
Mike Jolley
8869cb3c2a
First to false at loop end
2017-04-27 17:41:25 +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
cffe326e0e
Add variable so shipping calculator is shown on first row
...
Ref: #14461
2017-04-17 16:35:33 +01:00
Mike Jolley
f0f1efcffd
Ensure object exists
...
fixes #14239
2017-04-11 19:29:20 +01:00
Claudio Sanches
fdbd442e05
Define default $discount_amount_html in wc_cart_totals_coupon_html()
...
Closes #13807
2017-03-28 15:10:05 -03:00
Mike Jolley
15bbac6b5c
Allow `data-coupon` though kses
...
Fixes #13700
2017-03-22 10:53:18 +00:00
Mike Jolley
18c22a885d
Cleanup of wc_cart_totals_coupon_html
...
#13674
2017-03-21 13:04:29 +00:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Aristeides Stathopoulos
10ffc92a73
Inline control structures are not allowed
2017-03-07 22:24:24 +02: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
Claudio Sanches
366011ab20
Defined context for shipping packages names
2017-01-15 01:46:02 -02:00
Manos Psychogyiopoulos
62ed6ee9d8
index package item names by cart item id
2016-12-19 12:52:02 +02:00