Commit Graph

151 Commits

Author SHA1 Message Date
Mike Jolley 069325862a remove instanceof 2012-11-21 18:39:51 +00:00
Mike Jolley 75ca794bba Separate classes per product type, with new get_product function and hooks to change the classes which get loaded. #1497 2012-11-21 18:07:45 +00:00
Mike Jolley 4720628a71 Hooks galore for integers vs floats. Closes #1113. 2012-11-19 14:05:06 +00:00
Mike Jolley d54bdb6609 Auto apply. #1641. 2012-11-15 15:12:42 +00:00
Mike Jolley 98ddb3bbc5 Display + storage 2012-11-12 17:15:54 +00:00
Mike Jolley f4a931f7cc Tweak panel layout and simplify get_items 2012-11-12 16:08:05 +00:00
Mike Jolley 6ecef0139c Calc totals for fees. 2012-11-12 14:34:10 +00:00
Mike Jolley 8e74d043c1 template 2012-11-09 21:17:48 +00:00
Mike Jolley 2c26f06e55 Fees api started, and playing with line items 2012-11-09 21:15:15 +00:00
Mike Jolley 764b34a938 Case insensitive coupons. Closes #1633. 2012-11-08 16:57:59 +00:00
Coen Jacobs 3baaf6029a Removed all deprecated classes and functions except for 1.6.x template files and functions 2012-11-08 16:27:47 +01:00
Mike Jolley 92d61e5627 Fix grouped product issues. Closes #1693. 2012-11-08 11:15:52 +00:00
Coen Jacobs 9769b8851f [3.2.4] Sanitization #1575 2012-10-18 12:33:52 +02:00
Max Rice 7d445a9822 update woocommerce_product_discount_after_tax_* hook 2012-10-17 11:50:36 -03:00
Mike Jolley 8c3ad31c07 Localisation spacing. 2012-10-16 10:45:33 +01:00
Mike Jolley 34f230a0d0 Tax display tweaks. 2012-10-12 12:57:08 +01:00
Coen Jacobs d3618ff86a Prevent undefined $return variable. Closes #1588 2012-10-12 11:06:32 +02:00
Mike Jolley c588c761e0 Local Pickup option needs associated state sales tax. Closes #1491. 2012-10-01 10:45:07 +01:00
Brent Shepherd f2150e7c7c Filter WC_Cart->needs_payment() value 2012-09-24 12:54:41 +10:00
Mike Jolley 5fcfe948d7 Handle add to cart differently, Closes #1517 and tweak messages Closes #1498. 2012-09-21 21:11:57 +01:00
Coen Jacobs cf938137fa Cart: Sessions to transients 2012-09-07 19:48:30 +02:00
Mike Jolley fdd34e5c0e session -> transient WIP 2012-09-07 18:26:13 +01:00
Justin Stern 9217ca09e0 Support for Multiple Downloads
Support for multiple downloadable files per product: both simple and
variable.  This includes all admin, frontend, and database modification
code required for allowing multiple files, while maintaining backwards
compatibility for existing single-file download URLs and templates.
2012-08-28 11:21:54 -04:00
Coen Jacobs 82b37effc3 Check for proper decimals setting before round()
@mikejolley can you check if this is not conflicting our recent
tax/rounding changes in any way? Defaulting to 0 now, ran into an edge
case where the value was not set, causing an error with the rounding
function.
2012-08-28 10:07:43 +02:00
Mike Jolley ca5fca4455 Wipe line tax when an order is tax exempt 2012-08-24 18:14:49 +01:00
Mike Jolley 03f64acf58 DP for #1383 2012-08-21 19:01:56 +01:00
Mike Jolley 647df60328 Republic of Ireland 2012-08-17 15:44:35 +01:00
Mike Jolley 5d152f2181 Class docs 2012-08-15 19:15:10 +01:00
Mike Jolley 91430543bd More docs 2012-08-14 23:43:54 +01:00
Mike Jolley 07b6b6d59a More class docs 2012-08-14 23:43:54 +01:00
Mike Jolley cedcca7fe7 is_purchasable. Closes #1331. 2012-08-07 00:33:52 +01:00
Mike Jolley 5eee013dd6 hook space 2012-08-06 13:24:59 +01:00
Mike Jolley 62a5039d76 Merge pull request #1339 from maxrice/master
added hooks to support analytics plugins
2012-08-06 05:24:13 -07:00
Manos Psychogyiopoulos 8dff33efa5 Added get_cart_contents_count() cart function. 2012-08-06 15:13:32 +03:00
Max Rice e9a75830c8 added hooks to support analytics plugins
successful ajax add to cart : woocommerce_ajax_added_to_cart,
$product_id

added valid coupon: woocommerce_applied_coupon, $coupon_code

reorded : woocommerce_ordered_again, $order->id

tracked order : woocommerce_track_order, $order->id

calculated shipping on cart : woocommerce_calculated_shipping
2012-08-05 12:42:25 -04:00
Mike Jolley d68ef09e06 Round the discount. Closes #1297.
With cart percent discounts, before tax, we do it per item to account
for varying tax rates.

We need to round these values so the totals match. This may result in a
1p more or less overall, but per item it is correct.
2012-07-27 15:11:09 +01:00
Gerhard 96e078b99a Ability to hide meta fields on cart 2012-07-24 11:18:03 +02:00
Mike Jolley 35f74206f2 If address is required check for state OR postcode to see if an address has been entered yet. Some countries don't have states. 2012-06-27 15:18:10 +01:00
Mike Jolley 023ee52246 Zero tax check in totals.php 2012-06-20 19:53:35 +01:00
Mike Jolley 967da77d88 Check coupons are valid before cart/checkout 2012-06-13 19:58:06 +01:00
Mike Jolley ec4a59432a Better errors. Closes #1018. 2012-06-10 19:07:19 +01:00
Mike Jolley 4d7d184698 newlines and styling tweak. Closes #1112. 2012-06-10 18:45:43 +01:00
Mike Jolley 7036acf989 Cart widget respects cart tax settings, Exempt from VAT shows price ex VAT. Closes #1128. 2012-06-10 15:48:52 +01:00
Mike Jolley 06398f4a5b Variations maintain selections after adding to cart. Closes #926. 2012-06-10 13:53:26 +01:00
Mike Jolley f2ead358e6 Key added to woocommerce_get_cart_item_from_session filter 2012-06-06 12:27:19 +01:00
Mike Jolley 405a1eb147 out of state rounding tweaks 2012-06-05 12:21:52 +01:00
Brent Shepherd a08ed36f23 Adding cart_contents_total filter. 2012-05-24 15:58:19 +10:00
Brent Shepherd 95fd76d896 Adding cart total filters. 2012-05-23 21:30:26 +10:00
Brent Shepherd 808a482fed Centralising use of woocommerce_price() for cart taxes with new WC_Cart::get_formatted_taxes() function and adding new woocommerce_cart_formatted_taxes filter. 2012-05-23 15:24:04 +10:00
Brent Shepherd 100c4c7c49 Adding cart discount filters to WC_Cart::get_discounts_before_tax(), WC_Cart::get_discounts_after_tax() and WC_Cart::get_total_discount(). 2012-05-23 12:15:04 +10:00
Brent Shepherd 4d9f8db10b Adding cart_product_subtotal filter to WC_Cart::get_product_subtotal(). 2012-05-23 12:05:55 +10:00
Brent Shepherd 53136b7c9f Adding cart subtotal filter. 2012-05-23 12:03:41 +10:00
Mike Jolley c292060045 % discount rounding 2012-05-13 19:17:39 +01:00
Mike Jolley aa2bf617ab variations solid individually handling 2012-05-11 12:47:23 +01:00
Mike Jolley 6c3bf05433 Tweak - After getting a shipping quote, use the shipping address for taxes on the cart page 2012-05-09 18:29:29 +01:00
Mike Jolley 4adc961597 compound tax is show after cart discounts and thus needs to have them removed. Closes #1006. 2012-05-08 18:47:35 +01:00
Mike Jolley c380861778 coupons in packages to prevent cached methods 2012-05-01 20:24:22 +01:00
Coen Jacobs e0cfb04962 Added woocommerce_before_cart_item_quantity_zero action 2012-04-23 14:28:47 +02:00
Mike Jolley 392571aab0 exists function 2012-04-20 11:17:40 +01:00
Mike Jolley 897737e425 Only show cart errors in cart-errors.php Closes #924. 2012-04-16 15:39:40 +01:00
Mike Jolley b846131f82 "Package" support for shipping calculations - allows third parties to split the cart up to calc shipping. Also caches packages meaning the cart shipping only needs to be calculated once (until totals or customer location changes) 2012-04-13 12:16:24 +01:00
Mike Jolley 67956705a4 filter to avoid empty arrays 2012-04-12 19:18:55 +01:00
Mike Jolley c6a6949c5c filter tweaks 2012-04-12 16:11:12 +01:00
Mike Jolley b9bec0be75 show_shipping. Closes #901. 2012-04-11 13:08:04 +01:00
Mike Jolley 6f62606365 generate cart id match add_to_cart arguments 2012-04-10 17:56:44 +01:00
Mike Jolley 9f65e7e1cb Hook change 2012-04-10 12:18:41 +01:00
Mike Jolley 586a49b59e filter tweaks 2012-04-03 15:46:28 +01:00
Mike Jolley b18c7e5ec3 woocommerce_add_to_cart filter 2012-04-03 15:37:04 +01:00
Mike Jolley cfa383eaf4 Improved stock check. Closes #778. 2012-03-28 18:42:35 +01:00
Mike Jolley bd04e2eb26 fix after tax product cat coupons 2012-03-23 20:46:17 +00:00
Mike Jolley f0742cdddf View cart link in 'you already have this in your cart' message 2012-03-23 19:15:31 +00:00
Mike Jolley 823c2921c6 load order tweaks 2012-03-20 19:22:10 +00:00
Mike Jolley 18e712ac62 Merge pull request #856 from GeertDD/fix_i18n_init
Fixed the initialisation of the language files
2012-03-20 11:52:28 -07:00
Mike Jolley aea9f5f55e fix coupon check 2012-03-20 18:36:25 +00:00
Geert De Deckere 9c5a8d7d81 Merge branch 'master' into fix_i18n_init
Conflicts:
	classes/class-wc-cart.php
	woocommerce.php
2012-03-20 15:32:29 +01:00
Geert De Deckere 2e27ea3108 Call WC_Cart->init() method directly from within the init hook 2012-03-20 14:50:19 +01:00
Mike Jolley 928543c35e cart and main cleanup 2012-03-20 13:22:35 +00:00
lucasstark 183deee029 add_to_cart signature change 2012-03-15 09:09:03 -03:00
Mike Jolley 81de864a13 Vietnam locale and support for hiding fields 2012-03-14 20:35:42 +00:00
Mike Jolley cc7fc5117a Stock checker works with items on multiple rows. Closes #778. 2012-03-14 15:34:45 +00:00
Mike Jolley da113b7589 customer coupons. Ability to refresh the totals through code. 2012-03-14 11:41:32 +00:00
Mike Jolley 3ccff6346b Merge pull request #788 from GeertDD/enable_coupons_option
Added option to globally enable/disable the use of coupons
2012-03-12 08:31:54 -07:00
Mike Jolley 01e7a2d539 Product id rules for coupons apply to a products parent (useful for grouped products) 2012-03-12 13:11:08 +00:00
Geert De Deckere dfdb5bc215 Don't load already applied coupons if coupons got disabled globally. 2012-03-12 11:00:38 +01:00
Mike Jolley 6c64be6cbc base re-calc on subtotal 2012-03-12 09:26:43 +00:00
Geert De Deckere 0401e79ed4 Added option to globally enable/disable the use of coupons for clients 2012-03-12 10:25:06 +01:00
Mike Jolley b5f9d33264 reset unsets session too 2012-03-11 12:49:57 +00:00
Mike Jolley 261015fbad minimum amount for coupons 2012-03-07 21:38:34 +00:00
Mike Jolley 7a0167d494 store less crap in the sessions 2012-03-07 20:12:14 +00:00
Mike Jolley 513160ff56 prevent division by zero 2012-03-06 17:58:21 +00:00
Mike Jolley 9d821d7f52 Category inclusion/exclusion for coupons 2012-03-06 17:28:09 +00:00
Mike Jolley fa84b87425 Persistent cart 2012-03-04 12:37:41 +00:00
Mike Jolley 7d63d896fc display value for addons 2012-03-03 11:44:47 +00:00
Mike Jolley f0c312213f cookie 2012-03-01 00:48:32 +00:00
Mike Jolley a2714544a4 cart limit item. Closes #646. 2012-02-27 18:22:54 +00:00
Mike Jolley 15ecb857bd cookie when cart has content 2012-02-24 21:05:15 +00:00
Mike Jolley c7acf9ff29 hook for total 2012-02-22 10:01:47 +00:00
Mike Jolley 2db4f40751 Don't reset shipping method on cart during every update. Closes #664. 2012-02-17 20:47:17 +00:00
George Mamadashvili c594ef5436 Make needs_shipping() filterable 2012-02-14 13:11:19 +04:00
Mike Jolley ce84132713 Minor fixes and comments 2012-01-30 19:24:52 +00:00