Justin Shreve
3eacb992bc
Address issues from Mike's Feedback:
...
* Rename individual use, free shipping, and exclude sale items to match their meta names closer.
* Sanitize emails when using set_email_restrictions
* Remove some unnecessary explict true checks
* Move ID into _data with the rest of the fields
* Fixed some spacing issues
2016-03-17 09:19:27 -07:00
Justin Shreve
d738dec05d
Coupon CRUD (WIP).
2016-03-17 09:19:27 -07:00
Mike Jolley
726728071b
[2.5] Hide shipping row when calculator is disabled, and shipping costs are hidden
...
Fixes #10519
2016-03-10 12:26:52 +00:00
Mike Jolley
3dba3378c2
Merge pull request #10315 from woothemes/layered-nav-wp-query
...
Layered Nav Improvements
2016-02-12 11:59:40 +00:00
Mike Jolley
8fd336cb0e
Prime cache to reduce queries per cart item
2016-02-09 23:36:15 +00:00
Mike Jolley
854bc5d744
Don't auto load options for cart - reduce queries
2016-02-09 23:14:38 +00:00
Mike Jolley
352184cc06
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# i18n/languages/woocommerce.pot
# includes/abstracts/abstract-wc-payment-gateway.php
# includes/abstracts/abstract-wc-shipping-method.php
# includes/admin/settings/class-wc-settings-shipping.php
# includes/wc-core-functions.php
# uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley
e0c10e9be3
Allow has_coupon to detect any coupon applied
...
Closes #10251
2016-02-05 11:39:31 +00:00
Mike Jolley
1076854608
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# includes/abstracts/abstract-wc-shipping-method.php
# includes/class-wc-shipping.php
# includes/shipping/flat-rate/class-wc-shipping-flat-rate.php
# includes/shipping/flat-rate/includes/class-wc-eval-math.php
# includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
#
includes/shipping/legacy-international-delivery/class-wc-shipping-legacy
-international-delivery.php
#
includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-d
elivery.php
2016-01-11 11:48:18 +00:00
Mike Jolley
d13fb8f482
Let check_cart_item_validity remove multiple items during check
...
Fixes #10050
2016-01-11 10:32:46 +00:00
Fredrik Forsmo
560dd06b1f
Improve docblock comments in WC_Cart class
...
* Added comments to properties that don’t have any.
* Added comments to `remove_taxes` and `get_fees`
* Renamed boolean to bool
* Renamed integer to int
2016-01-06 15:47:16 +01:00
Mike Jolley
97d47fb576
Move zones to main settings
2016-01-05 11:23:15 +00:00
Mike Jolley
03ba8539f6
Stop coupon logic when 0 is hit so coupons can apply to other lines
...
Fixes #9870
2015-12-29 13:16:43 +00:00
Mike Jolley
fd9dac0f20
Revised get_cart_contents_weight and get_cart_contents_count
...
Closes #9656
2015-11-30 13:12:12 +00:00
Nicola Mustone
c9da4f928a
check if ABSPATH is defined
2015-11-06 10:22:19 +01:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Claudio Sanches
0ff88deb98
Improved wc_coupons_enabled() name and description
2015-10-29 17:23:10 -02:00
Claudio Sanches
f64ea948f1
Replaced WC()->cart->ship_to_billing_address_only() to wc_ship_to_billing_address_only()
2015-10-28 16:03:24 -02:00
Claudio Sanches
29229ada45
Added deprecated description to WC_Cart methods
2015-10-28 16:01:03 -02:00
Claudio Sanches
1caaea7b33
Moved methods from WC_Cart to single functions
...
Changes:
- WC_Cart::coupons_enabled() to wc_is_coupons_enabled()
- WC_Cart::get_cart_url() to wc_get_cart_url()
- WC_Cart::get_checkout_url() to wc_get_checkout_url()
This methods can be used in any place, but WC_Cart() is present only on
the frontend.
2015-10-28 15:43:31 -02:00
Mike Jolley
b27635409c
New Session Handler
...
This merges and adapts
https://github.com/kloon/woocommerce-large-sessions for core. Closes
#6846 .
Differences:
- Rather than delete each cache key individually, this invalidates all
at once (idea from https://core.trac.wordpress.org/ticket/4476 )
- Removes ‘replace’ which increments session_id keys unnecessarily.
- Fixes remove/restore cart sessions from making it dirty each page load
Kudos to @kloon for the bulk of the work and testing on Woo.com.
cc @claudiosmweb
2015-10-07 14:47:29 +01:00
Mike Jolley
1defb3fb4f
Explain the fees method in more detail.
...
Closes #9231 Closes #9193
2015-10-01 10:05:16 +02:00
Mike Jolley
3e55364e3a
Merge pull request #8940 from woothemes/issues/8482
...
Tidy up how we're dealing with coupon postmeta around `_used_by` which can get big.
2015-09-15 16:42:51 +01:00
Mike Jolley
0830543c4f
Add disclaimer to woocommerce_adjust_non_base_location_prices
2015-09-15 16:01:11 +01:00
Mike Jolley
4959937689
Merge branch 'universal-pricing-test'
2015-09-15 15:57:04 +01:00
Mike Jolley
1c68137cf9
Only run maybe_set_cart_cookies if cart was loaded
2015-09-07 11:38:24 +01:00
Mike Jolley
e08f8d8902
Apply woocommerce_adjust_non_base_location_prices to all prices
2015-09-04 10:48:50 +01:00
Mike Jolley
31ed6c2531
woocommerce_adjust_non_base_location_prices test (false for now, should be true for current behavior)
2015-09-04 10:33:51 +01:00
Mike Jolley
91ac7fc974
To prevent discounts being applied in 'random' order (based on order added to cart), sort cart items based on subtotal during calculate_totals.
...
Closes #8987
@claudiosmweb @georgestephanis does this change look sane to you folks?
2015-09-01 13:16:55 +01:00
George Stephanis
a17addae0a
Migrate the actual querying of the underlying data structure.
...
Move it into the relative class for tidiness, and have it be called via
an access function.
2015-08-24 14:30:13 -04:00
Mike Jolley
7d27707043
Tax inclusive prices rounding issue
...
Remove rounding on cart_contents_total so total is calculated correctly.
Prevents issues with half rounded taxes and half rounded items.
Fixes #8776
2015-08-11 14:17:52 +01:00
Mike Jolley
257010695e
Readme, versions, develop blog links
2015-08-10 10:39:08 +01:00
Claudio Sanches
050d073678
Removed double ;; #8629
2015-07-21 19:49:05 -03:00
Claudio Sanches
409dd81ab9
Fixed unit tests for WC_Cart::get_remove_url()
2015-07-14 12:02:32 -03:00
Vignesh
0588c9fe1c
get_permalink to wc_get_page_permalink
...
changed get_permalink to wc_get_page_permalink on class-wc-cart.php
2015-07-14 17:49:29 +05:30
Mike Jolley
53916e38bb
Just return the URL
2015-07-13 11:00:10 +01:00
Vignesh
e063d068d7
get_permalink to wc_get_page_permalink
...
Changed get_permalink to wc_get_page_permalink.
2015-07-13 15:01:52 +05:30
Mike Jolley
45d89438c7
Ensure cart item key is set
2015-07-04 15:25:08 +01:00
Mike Jolley
049c95e724
Filter all item data
...
Closes #8361
2015-06-30 13:40:32 +01:00
Mike Jolley
1e5d508675
woocommerce_removed_coupon
...
since the other action is ‘woocommerce_applied_coupon’ Closes #8404
2015-06-19 13:50:59 +01:00
Mike Jolley
71673684fb
[2.3] get_discounted_price needs to check if taxes are enabled
...
Closes #8267
2015-06-05 11:24:59 +01:00
Mike Jolley
5920b88d5d
Add classes to tax and shipping labels/notices
...
Closes #8189
2015-05-27 16:17:36 +01:00
Nikki DelRosso
536d3096f2
Replaced missing end parenthesis
2015-05-14 14:37:17 -07:00
Nikki DelRosso
940c2369b0
Added method to check if cart is empty
2015-05-14 14:18:53 -07:00
Mike Jolley
02c346eb87
Filter before and after unsetting cart items
...
Closes #8110
2015-05-08 10:26:04 -07:00
Mike Jolley
8bb7a8c934
[2.3] Move action to prevent infinite recursion on login/restoring saved cart
...
Thanks @roykho. Follow up to #7852
2015-05-01 15:33:24 +01:00
Mike Jolley
5b1ea0dea1
Remove comments
2015-04-10 10:44:13 +01:00
Mike Jolley
68194bf0ed
Round discount totals
2015-04-10 10:28:46 +01:00
Mike Jolley
1f3365f206
Prevent infinite recursion by calling get_cart_from_session once
...
Closes #7852
A check was aded to prevent get_cart() usage before wp_loaded so all WC
components have a chance to load prior to the cart.
This should solve the edge-case recursion bug by first checking if the
woocommerce_cart_loaded_from_session action has already run. This is
triggered when loading the cart for the first time.
2015-04-09 12:49:20 +01:00