Commit Graph

90 Commits

Author SHA1 Message Date
Mike Jolley 532ddfa6b0 Merge conflicts 2017-05-31 12:23:52 +01:00
Mike Jolley c3c966b5fd Add handles so drag and drop does not break edit on mobile
Fixes #15118
2017-05-18 15:22:12 +01:00
Mike Jolley d67fb8fb83 New style import controller
Closes #15107
2017-05-17 14:16:38 +01:00
Mike Jolley 523d9d27cd Styling 2017-05-12 20:40:54 +01:00
Mike Jolley fd3bf05017 Working prototype exporter for products 2017-05-10 17:22:08 +01:00
Claudio Sanches af7f271de1 Fixed sanitization of order items meta data
Closes #14067
2017-04-06 17:58:24 -03:00
Mike Jolley bbf8e750ce Tidy up includes 2017-02-16 11:46:01 +00:00
Mike Jolley cf59524dd7 Fix order total race condition in CRUD 2016-09-07 09:28:11 +01:00
Aristeides Stathopoulos ec8a0b288b PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast 2016-08-27 05:08:49 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Mike Jolley 627b08ba37 Test coverage 2016-08-25 17:42:47 +01:00
Mike Jolley 885231baba yoda 2016-08-25 17:10:59 +01:00
Mike Jolley 7f87800d8d Fix save order item function 2016-08-25 13:50:37 +01:00
Mike Jolley 25883f8687 Set_props helper to load data from DB and handle errors 2016-08-25 13:05:27 +01:00
Mike Jolley 26c4b3ce13 Delete if qty = 0 2016-08-24 16:09:39 +01:00
Mike Jolley 938361535f Exception handling 2016-08-24 16:02:19 +01:00
Mike Jolley 2cea613566 Fix shipping meta save
#11601
2016-08-22 18:07:52 +01:00
Mike Jolley c88984eb0e Replace add methods 2016-08-22 16:48:19 +01:00
Mike Jolley 21ad196297 Use CRUD in wc_save_order_items 2016-08-19 13:43:33 +01:00
Mike Jolley 5eaee825f1 Ensure page_object is valid
Closes #11641
2016-08-08 12:14:41 +01:00
Mike Jolley 66c61eebc8 Define full path for includes
Closes #11087
2016-07-27 11:58:43 +01:00
Jeff Stieler 3de28d2356 Take in options data to be saved as an optional argument, defaulting to $_POST.
This allows for reuse of the options field saving mechanism.
2016-07-26 10:24:15 -07:00
Slobodan Manic 3194c24c84 Introduce woocommerce_before_save_order_items hook 2016-06-07 08:13:35 +02:00
Mike Jolley c9196a6377 Move help tip to core functions 2016-03-31 15:30:42 +01:00
Mike Jolley d821b87f8a Move shipping classes to custom UI in shipping section 2016-01-13 16:52:28 +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
Fredrik Forsmo c7ab50ec7e Add missing param tags to various wc admin docblocks 2016-01-05 16:49:41 +01:00
Mike Jolley 56f274b68b non-functional Mockup for the shipping zones interface 2015-12-08 12:45:18 +00:00
roykho e5ca21f1e3 Change to WP convenience function 2015-11-12 13:19:57 -08:00
roykho 5cd3150c94 Fix order item name escaping apostrophe closes #9583 2015-11-12 08:04:21 -08:00
Shiva Poudel 33ad23f371 Improve help tip docblock and remove space 2015-11-10 07:13:53 +05:45
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 e91e0a9f5e Changed <i> to <span> in wc_help_tip()
<span> is more semantically correct
2015-10-23 13:17:35 -02:00
Claudio Sanches b85ae9056c Rename wc_add_help_tip() function to wc_help_tip() 2015-10-23 13:09:08 -02:00
Claudio Sanches 2e95a68357 Use new "question" mark icon font
Created wc_add_help_tip() function to generate the icons
Replaced all .help_tip elements and [?]

We'll keep the old image and styles in order to maintain backwards
compatibility

Closes #9381
2015-10-23 01:40:52 -02:00
Claudio Sanches f6e828e359 [2.3] unslash shipping label, closes #9160 2015-09-18 12:28:13 -03:00
Mike Jolley 13b85f89a6 Tweak wc_create_page to work with trashed pages...
… and to check post IDs are valid pages with correct post statuses.
Fixes #9061

Closes #9062
Closes #9063
2015-09-07 14:17:22 +01:00
Claudio Sanches 1876227c9a Removed dead variable and fixed coding standards on wc_create_page() 2015-06-16 13:08:30 -03:00
davidlenehan 2fb7e0b52b Allow trashed pages to be republished
Expanding on @mehulkaklotar’s fix above. One issue is that is a deleted
store page has had its short code removed then it won’t be republished
and that page is still missing.

This fix catches pages that are in the trash but have no short code.
Those pages are now left in the trash and new page with the correct
short code is added in its place.

Fixes #8269
2015-06-16 12:31:15 +01:00
davidlenehan 925b46967a Removing the use of mb_strlen as it is always installed as standard. 2015-06-15 17:06:02 +01:00
davidlenehan 791317cfcf Fixes issue with adding empty order item meta
The changes just check to make sure that either a meta key or meta
value has been entered before it saves. Otherwise it deletes the order
item meta row that has been added. The user must add something to the
order item meta row now or it won’t get saved.

Not sure if this is the cleanest way to fix this issue. I was expecting
to see the function wc_update_order_item_meta() but it is not used in
this case.
2015-06-15 16:22:53 +01: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 2006c7217e Add reports menu item if user can access reports but not the main WC section.
Closes #7528
2015-02-24 12:29:03 +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
Lucas Karpiuk fc11849054 Fixes issue #7440 2015-02-15 15:36:18 -05:00
Claudio Sanches 03193b867b Creted new webhooks edit interface 2015-01-08 16:34:30 -02:00
Claudio Sanches 9f83541d9f Added webhook meta box js 2014-12-16 19:07:48 -02:00
Mike Jolley eba8206540 Merge branch 'tax-coupon-handling' Closes #6830
Conflicts:
	assets/js/admin/meta-boxes-order.min.js
	includes/api/class-wc-api-coupons.php
	includes/class-wc-cart.php
	templates/checkout/review-order.php
2014-12-03 12:33:15 +00:00
claudiosmweb 3ce620e4f3 Removed eXtremeGoHorse practices from WC_AJAX::calc_line_taxes() and wc_save_order_items()
cc @barrykooij
2014-12-01 21:55:48 -02:00