Commit Graph

2762 Commits

Author SHA1 Message Date
claudiosmweb b08a0cf1f3 stopped deprecated warnings about like_escape() function since WP 4.0 2014-08-21 14:00:39 -03:00
Mike Jolley d87688f857 Simplfy typo 2014-08-21 17:03:16 +01:00
Bryce 04234a4968 Added Lao Kip Currency 2014-08-21 11:42:46 +07:00
Shiva Poudel 547b96f54d Tab index fix for PYG Currency and Symbol. 2014-08-21 10:13:39 +05:45
Shiva Poudel ee7755fd0e Added Nepali Currency and Symbol. 2014-08-21 10:10:51 +05:45
Mike Jolley c829788ebc Set simplify user agent 2014-08-20 16:47:01 +01:00
claudiosmweb aeaa1577e3 fixed wc_get_customer_available_downloads() query, closes #6057 2014-08-19 14:50:27 -03:00
Mike Jolley 474cba9b87 Merge pull request #6052 from barrykooij/refactor/get_product
Renamed get_product to wc_get_product
2014-08-19 11:51:20 +01:00
Barry Kooij fde10a967b Soft deprecated get_product function 2014-08-19 12:19:26 +02:00
Barry Kooij 94365791af Changed all use of get_product to wc_get_product 2014-08-19 12:09:29 +02:00
Barry Kooij 7cd2e8c10a Renamed get_product to wc_get_product 2014-08-19 12:05:02 +02:00
Mike Jolley 16754a7d01 Add file to downloads array Closes #6044 2014-08-19 11:01:55 +01:00
Mike Jolley c6fe731337 Fix password reset
Fixes #6049
2014-08-19 10:43:51 +01:00
Mike Jolley ca1cefd112 Merge pull request #6040 from woothemes/feature-order-refunds-api
Initial order refunds API
2014-08-18 15:13:57 +01:00
claudiosmweb 4acb90def2 changed api_refund for true 2014-08-18 10:47:56 -03:00
claudiosmweb 288732a4be added refund amount validation 2014-08-18 10:47:24 -03:00
claudiosmweb 924e0f92c5 updated woocommerce_api_order_refunds_response filter params 2014-08-18 10:42:37 -03:00
Mike Jolley 421de8f668 Merge pull request #6038 from barrykooij/refactor/wc_get_order-args
Passed $args to dynamic class that inherits WC_Abstract_Order is never used
2014-08-18 13:30:13 +01:00
Mike Jolley 0333cf9d0d Merge pull request #6039 from thenbrent/i18n_product_type_alert
Tweak language used for i18n_product_type_alert
2014-08-18 13:29:52 +01:00
Mikel Martin 1ed0a9e9db Payment unavailable if max_amount greater than 0 and order totar greater than max_amount 2014-08-17 22:10:35 +02:00
claudiosmweb 6081f3b61f fixed some missing and wrong textdomains 2014-08-15 16:08:43 -03:00
claudiosmweb 2bbcea9de2 orders API for refunds now accepts the api_refund param 2014-08-15 15:58:55 -03:00
claudiosmweb 1294696fcf created API method for delete order refunds 2014-08-15 15:38:39 -03:00
claudiosmweb 6d4ea6e54e created initial API method for edit order refunds 2014-08-15 15:28:43 -03:00
thenbrent 320156aca0 Tweak language used for i18n_product_type_alert 2014-08-15 11:16:30 -07:00
claudiosmweb d02a803e83 added API method for create an order refund 2014-08-15 14:54:19 -03:00
claudiosmweb b972494ac8 created method API to get individual order refunds 2014-08-15 14:40:34 -03:00
claudiosmweb f9250fecf2 created API for get order refunds 2014-08-15 14:09:33 -03:00
claudiosmweb eb679fad14 changed the simplify keys order 2014-08-15 11:43:10 -03:00
claudiosmweb 3ad0e63be0 improved the simplify scripts 2014-08-15 11:40:19 -03:00
Mike Jolley c51fac23e0 Availability with backorders not requiring notification. 2014-08-15 15:29:14 +01:00
Mike Jolley 575ba5974e Variation level backorder 'parent' option makes no sense now parent backorder select is hidden
#6035
2014-08-15 15:29:14 +01:00
claudiosmweb d4fb1df412 fixed simplify ssl notification url 2014-08-15 11:20:18 -03:00
Barry Kooij 9d5ce49805 Passed $args to dynamic class that inherits WC_Abstract_Order is never used.
Therefor the $args in the function and method in factory class seems unnecessary.
2014-08-15 14:56:43 +02:00
Mike Jolley 89d7d2869f Revert "Merge pull request #6023 from krautnerds/master"
This reverts commit 9deee73b72, reversing
changes made to 1965c2b786.
2014-08-15 13:47:37 +01:00
Mike Jolley 9deee73b72 Merge pull request #6023 from krautnerds/master
Re-add all filters of widget on change of category
2014-08-15 13:45:39 +01:00
Barry Kooij 6655188f0b Changed use of get_order with wc_get_order 2014-08-15 14:29:21 +02:00
Barry Kooij e97d06a0f0 Renamed function get_order to wc_get_order 2014-08-15 14:26:26 +02:00
Mike Jolley da483198f8 Simplify icons 2014-08-15 11:50:53 +01:00
Mike Jolley 7a267d2e31 Simplify Commerce by Mastercard gateway 2014-08-15 11:50:53 +01:00
Mike Jolley 6bd38b5ce0 Tweak display order text 2014-08-15 11:50:53 +01:00
Mike Jolley 1c3b4fdc5c Deprecate Mijireh - .org repo requested
Closes #6027
2014-08-15 11:50:53 +01:00
Florian Ludwig c2042319db Bugfix: swapped lines select and option 2014-08-14 17:00:37 +02:00
James Collins 1288a45eeb Add Australian checkout locale
Town / City -> Suburb
State / Country -> State
Postcode / Zip -> Postcode
2014-08-14 12:07:41 +08:00
Florian Ludwig 26d40f2336 Class instead of id for product categories widget
Also rewrote plain old JS to jQuery
2014-08-13 22:16:18 +02:00
Florian Ludwig ec41270587 Re-add all filters of widget on change of category
At the moment all filters that were applied via the layered nav filter
widget are gone on changing the category with the product category
filter
2014-08-13 17:13:58 +02:00
Mike Jolley 3f53512c7f Fix up visibility of stock options, drop downs, and get_availability() when parent is managing stock for a variation.
Fixes #6017
2014-08-13 15:03:30 +01:00
Mike Jolley dfe30bfe84 Tweak max spend text for #5992 2014-08-13 11:43:28 +01:00
Mike Jolley dc60cea213 Merge pull request #5992 from adamawesomeface/master
maximum ammount for coupon functionality added
2014-08-13 11:41:33 +01:00
Mike Jolley 9084ae222f Remove unused/uncoded options from dev branch
Fixes #6004
2014-08-13 11:38:49 +01:00
Mike Jolley b1c76adb56 Send product object to woocommerce_stock_html filter. Closes #6016 2014-08-13 11:30:47 +01:00
Mike Jolley 97724c8a95 woocommerce_create_page_id filter Closes #6013 2014-08-13 10:59:40 +01:00
Mike Jolley 51985df0df Merge pull request #6019 from krautnerds/master
Rewrote widget layered nav to use class instead of id
2014-08-13 10:04:12 +01:00
claudiosmweb 9da4f13805 fixed the orders api order status query 2014-08-12 15:08:11 -03:00
Florian Ludwig f2f56ebb4a Removed lines, were already deleted in upstream 2014-08-12 19:04:11 +02:00
Florian Ludwig b8c2912138 More general approach for widget dropdown_layered_nav 2014-08-12 18:56:37 +02:00
claudiosmweb bbca8dd437 fixed customer report queries with order_types 2014-08-12 12:17:46 -03:00
claudiosmweb 532d06b560 fixed the wc_cancel_unpaid_orders() post_type query 2014-08-12 12:14:38 -03:00
claudiosmweb 6e21079d76 moved exclude order notes from wp_count_comments to class-wc-comments.php 2014-08-12 12:13:29 -03:00
claudiosmweb eb8d99f4ea fixed some coding standards in includes/class-wc-comments.php 2014-08-12 12:07:23 -03:00
claudiosmweb 507a2038e8 fixed comments query 2014-08-12 12:05:09 -03:00
Mike Jolley 5bc293a69c Initial display of add order item buttons Fixes #5991
Also Closes #5994
2014-08-12 12:54:44 +01:00
Mike Jolley e4d0a6daef Merge pull request #5989 from woothemes/lost-password-email-username
Lost password, lookup on username first before email.
2014-08-12 12:41:35 +01:00
Mike Jolley fea2cc55f7 Merge pull request #5987 from afurculita/patch-1
Update wc-deprecated-functions.php
2014-08-12 12:39:02 +01:00
Mike Jolley 177d617b73 Merge pull request #6008 from woothemes/fix-force-https
Changed WC_HTTPS::force_https_url filter priority
2014-08-12 12:38:04 +01:00
Mike Jolley bd9ab8f5b3 Merge pull request #5988 from woothemes/feature-process-refund-reason
Add $reason param in WC_Payment_Gateway::process_refund()
2014-08-12 12:36:12 +01:00
Mike Jolley 6714d0088c Merge pull request #5986 from SiR-DanieL/patch-5
Added parenthesis
2014-08-12 12:33:55 +01:00
Mike Jolley 7f825a98ce Tweak get_children to look for empty transient 2014-08-12 12:06:18 +01:00
claudiosmweb acb0699e94 updated the reason default value 2014-08-11 10:07:09 -03:00
claudiosmweb 9ce8250fcb changed WC_HTTPS::force_https_url filter priority 2014-08-11 10:03:27 -03:00
adamawesomeface 0e22412a7d maximum ammount for coupon functionality added 2014-08-08 07:38:58 -04:00
Mike Jolley fe12b330c0 Fix sorting indicator and add help text to parent. Fixes #5977 2014-08-08 10:24:42 +01:00
Gerhard 4f011ae6a9 Lost password, lookup username first before email.
Customer use emails as usernames so need to lookup based on username first for instances where this apply.
2014-08-08 08:07:11 +02:00
claudiosmweb 066ba904cb added $reason param in WC_Payment_Gateway::process_refund() 2014-08-07 15:57:29 -03:00
Alexandru Furculita 9d129a39b4 Update wc-deprecated-functions.php
Help IDE-s find and highlight the deprecated stuff. Good for WooCommerce plugin and theme developers
2014-08-07 21:26:05 +03:00
Nicola Mustone e49fe4c713 Added parenthesis
WP coding standard says to add always parenthesis
2014-08-07 18:26:48 +02:00
claudiosmweb c378768aae added backwards compatibility function for new shop order status 2014-08-07 12:15:57 -03:00
Mike Jolley 5046256cea Prevent 404's caused by attachment link workaround.
Fixes #5975
2014-08-06 11:50:09 +01:00
Mike Jolley 7475778d05 Workaround for #5962 2014-08-05 21:12:52 +01:00
Mike Jolley 80ca1c3808 Cast array instead Closes #5890 2014-08-05 11:28:27 +01:00
Mike Jolley c4b813262c Revert "Check for array"
This reverts commit 61df5d5534.
2014-08-05 11:27:25 +01:00
Mike Jolley a186e1e52f Merge pull request #5951 from grey-rsi/master
class-wc-widget-price-filter.php - add filter
2014-08-05 11:08:02 +01:00
Mike Jolley 49b597665e Merge pull request #5967 from SiR-DanieL/master
Fixed issue #5895
2014-08-05 10:49:40 +01:00
claudiosmweb 0617d53353 fixed undefined offset when added products in cart 2014-08-04 16:37:42 -03:00
claudiosmweb ae66ba4553 fixed variation tax_class and backorders
@mikejolley
2014-08-04 16:05:15 -03:00
claudiosmweb b67a1e6b0e stopped endless loop when saving variable product that manages stock
@mikejolley
2014-08-04 15:31:40 -03:00
claudiosmweb bce502f455 improved handling of stock options to save changes to a variable product 2014-08-04 14:53:29 -03:00
Nicola Mustone 7c7f6b30e5 following wc coding standards 2014-08-04 17:49:14 +02:00
Nicola Mustone 69694e6242 following wc coding standards 2014-08-04 17:45:35 +02:00
Nicola Mustone a4103f7bfe following wc coding standards 2014-08-04 17:42:16 +02:00
Nicola Mustone c5f9f2157f Fixed issue #5895 2014-08-04 17:28:20 +02:00
Mike Jolley 3f58d8801a Merge pull request #5950 from afurculita/master
Autoloading widget classes
2014-08-04 14:21:18 +01:00
Mike Jolley f84cd332dc Merge pull request #5960 from bordoni/issue/5958
User that refunded now been shown at the Order edit page
2014-08-04 14:18:32 +01:00
Mike Jolley 658089a46b Merge pull request #5963 from SiR-DanieL/master
Child & Parent Themes in System Report
2014-08-04 14:06:25 +01:00
Gustavo Bordoni 34a47c3682 Removing a `var_dump`, My bad 2014-08-04 08:14:00 -03:00
Mike Jolley 760cd6861c Small refactor of is_visible
Also returns false for non-published products and fixes #5955
2014-08-04 11:19:58 +01:00
Mike Jolley e02d94d305 Fix stock logic in 2.2 for variations with parents which manage stock
Closes #5957 @claudiosmweb can you review this change?
2014-08-04 10:51:54 +01:00
Nicola Mustone 91177e43da woocommerce support line outside the child theme conditional 2014-08-03 14:05:49 +02:00
Nicola Mustone 359d910090 Merge branch 'master' of https://github.com/woothemes/woocommerce 2014-08-03 13:59:17 +02:00
Gustavo Bordoni 6b3f228a55 Adding the information about who did the refund on the backend 2014-08-02 21:57:14 -03:00
Gustavo Bordoni fbf4ffd39b Include a isset before using a variable that might not be there 2014-08-02 21:32:18 -03:00
GreY 9dd743158e Add filter to convert amount on based currency rate 2014-08-01 15:09:25 +03:00
Alexandru Furculita 8eb710ec5d Update class-wc-widget-cart.php 2014-08-01 13:47:07 +03:00
Alexandru Furculita 37e12a99b1 Update class-wc-widget-top-rated-products.php 2014-08-01 13:46:43 +03:00
Alexandru Furculita 8303d82172 Update class-wc-widget-top-rated-products.php 2014-08-01 13:46:33 +03:00
Alexandru Furculita e03905f935 Update class-wc-widget-recently-viewed.php 2014-08-01 13:46:20 +03:00
Alexandru Furculita 8d214e665d Update class-wc-widget-recent-reviews.php 2014-08-01 13:46:07 +03:00
Alexandru Furculita df7f5aa6ba Update class-wc-widget-products.php 2014-08-01 13:45:47 +03:00
Alexandru Furculita b326ea6612 Update class-wc-widget-product-tag-cloud.php 2014-08-01 13:45:36 +03:00
Alexandru Furculita d1de854c8f Update class-wc-widget-product-search.php 2014-08-01 13:45:18 +03:00
Alexandru Furculita 981bd515ed Update class-wc-widget-product-categories.php 2014-08-01 13:44:43 +03:00
Alexandru Furculita 332fbd2f93 Update class-wc-widget-price-filter.php 2014-08-01 13:44:29 +03:00
Alexandru Furculita 130521a7ab Update class-wc-widget-layered-nav.php 2014-08-01 13:44:15 +03:00
Alexandru Furculita 53f061f0a0 Update class-wc-widget-layered-nav-filters.php 2014-08-01 13:44:00 +03:00
Max Rice 3c566e3419 Fix webhook delivery log deletion
Use wp_delete_comment() instead of SQL so comment meta is deleted as
well.
2014-07-31 11:52:16 -04:00
claudiosmweb 1a9d346e1f sync with master 2014-07-31 09:39:24 -03:00
Mike Jolley 6e540c3bda Pass is_ajax through from the ajax handler
Fixes #5910
2014-07-31 10:00:16 +01:00
Mike Jolley 727e49c097 Welcome page Closes #5920
@jameskoster can your review?
2014-07-31 09:48:17 +01:00
Mike Jolley 3f906b1ffa Change shutdown hook priority
Fixes #5860
2014-07-31 07:26:49 +01:00
Mike Jolley 63d0283ea3 More efficient #4632 2014-07-31 07:10:07 +01:00
Mike Jolley 54e7ce602f Merge pull request #4632 from AdvancedStyle/master
Multiple categories in the product_category shortcode
2014-07-31 07:05:37 +01:00
Mike Jolley 0b6d8914a3 Merge pull request #5941 from maxrice/feature-issue-5564-rest-api-webhooks
Webhooks Implementation
2014-07-31 07:03:02 +01:00
Mike Jolley e13b54be15 Send order as a whole to paypal with negative line items
Closes #5862
2014-07-31 06:57:17 +01:00
Max Rice a7538da23b Add shop_webhook capabilities on install/upgrade
Part of #5564
2014-07-30 16:24:14 -04:00
Max Rice 0fd7e3376d Hide webhook comments
Part of #5564
2014-07-30 16:23:41 -04:00
Max Rice 572becdcde Introduce WC_Webhook class
Part of #5564
2014-07-30 16:23:22 -04:00
Max Rice 9536d98ade Add webhooks REST API endpoint
Part of #5564
2014-07-30 16:22:58 -04:00
Max Rice 81297cf94d Add shop_webhook custom post type
Part of #5564
2014-07-30 16:22:40 -04:00
Max Rice 64ddf83184 Add coupon description to REST API coupon response 2014-07-30 16:19:35 -04:00
thenbrent 2d47d6b43b Improve display of multiword product attributes
Instead of displaying a variation's custom product attributes like this:

`name-with-dashes: attribute-with-dashes`

Display it like this:

`Name With Dashes: Attribute With Dashes`
2014-07-30 12:41:14 -07:00
claudiosmweb a0bd72b9f3 Hide variation stock when manage stock is unchecked
closes #5935

@mikejolley
2014-07-30 15:32:06 -03:00
claudiosmweb 519de5be59 added alert about changing the product type that has variations
closes #5864

@mikejolley
2014-07-30 15:04:04 -03:00
Mike Jolley b72d33f563 Move orderby logic out of template file
cc @jameskoster @claudiosmweb
2014-07-30 17:23:28 +01:00
Mike Jolley cab8f8c9dd Only show default ordering option when relevant
Closes #5893
2014-07-30 17:23:28 +01:00
Mike Jolley 0130caec2b indentation 2014-07-30 17:07:35 +01:00
Mike Jolley a5967ce4f9 Merge pull request #5869 from wilgert/patch-1
Update class-wc-coupon.php
2014-07-30 17:06:36 +01:00
Mike Jolley 61df5d5534 Check for array
Closes #5890
2014-07-30 17:05:31 +01:00
Mike Jolley dab9a9be1f Merge pull request #5788 from kilbot/patch-1
Add woocommerce_product_visibility_options filter
2014-07-30 17:03:13 +01:00
Mike Jolley 75a6be58b9 Merge pull request #5755 from doublesharp/patch-1
Corrected duplicated settings_page() content
2014-07-30 17:01:19 +01:00
Mike Jolley 80a33b83d7 Merge pull request #5838 from danielvonmitschke/master
adding default product visibility filter hook
2014-07-30 12:58:50 +01:00
Mike Jolley ab5af6f930 Merge pull request #5827 from grey-rsi/master
class-wc-ajax.php
2014-07-30 12:20:42 +01:00
Mike Jolley d41cf9552f Merge pull request #5846 from corsonr/attributes_do_action
Add attributes do_action in products settings
2014-07-30 12:20:29 +01:00
Mike Jolley 4203ed77e3 Merge pull request #5842 from BFTrick/get-a-job
Adding an Employment Easter Egg
2014-07-30 12:19:11 +01:00
Mike Jolley 688b31395f Merge pull request #5933 from barrykooij/bugfix/wc_processing_order_count
Use correct variable and correct property when counting processing order...
2014-07-30 12:16:41 +01:00
Mike Jolley e7e9de4cbd Merge pull request #5934 from barrykooij/bugfix/fix-order-metabox-notices
Fix notices, added isset() checks around $legacy_order
2014-07-30 12:16:28 +01:00
Mike Jolley 305c187015 Fix queries on shop page 2014-07-30 12:11:42 +01:00
Mike Jolley 368e6b9412 Round shipping quote totals to store DP setting
Fixes #5888
2014-07-30 11:04:01 +01:00
Mike Jolley 2cb66fe4b9 Prevent empty attributes in permalinks
Closes #5714
2014-07-30 10:22:15 +01:00
Barry Kooij e49237c692 Added isset() checks around $legacy_order, var is only set if 'woocommerce_calc_taxes' option is 'yes'. 2014-07-30 11:13:09 +02:00
Barry Kooij a9e3c3bbe4 Use correct variable and correct property when counting processing orders. 2014-07-30 10:39:37 +02:00
claudiosmweb 70541f85e7 fixed the woocommerce_order_item_needs_processing filter 2014-07-29 15:08:08 -03:00
claudiosmweb 1cce388e1e added copy for support button, closes #5865 2014-07-29 12:06:58 -03:00
Mike Jolley 1b41eef5f6 Ensure add-to-cart is not present when redirecting after a deletion.
Fixes #5645
2014-07-29 15:25:43 +01:00
Mike Jolley dd61317395 Merge pull request #5904 from maxrice/rest-api-remove-xml
Remove XML response from v2 REST API
2014-07-29 13:20:05 +01:00
Mike Jolley 98030c2cfc Merge pull request #5907 from claudiosmweb/improve-db-queries-product-post-class
Replace wp_get_post_terms() for get_the_terms() in wc_product_post_class()
2014-07-29 13:19:54 +01:00
Mike Jolley ae6dceeace Merge pull request #5908 from maxrice/fix-issue-5423
Add item meta to REST API orders response
2014-07-29 13:19:38 +01:00
Mike Jolley 6a092ddd37 Merge pull request #5913 from maxrice/feature-issue-5806
Add product categories endpoint to REST API
2014-07-29 13:16:45 +01:00
Mike Jolley be757abf61 Merge pull request #5916 from maxrice/feature-rest-api-order-notes
Improve order notes endpoint
2014-07-29 13:16:38 +01:00
Mike Jolley 2201a93981 Merge pull request #5914 from maxrice/feature-issue-5720
Add orderby filtering to REST API resource endpoints
2014-07-29 13:15:53 +01:00
Mike Jolley c465c7235d Merge branch 'credit-notes'
Conflicts:
	includes/abstracts/abstract-wc-order.php
	includes/class-wc-order-factory.php
	includes/class-wc-post-types.php
	includes/wc-formatting-functions.php
	includes/wc-order-functions.php
2014-07-29 12:09:52 +01:00
Max Rice 76be03010c Improve order notes endpoint
This commit improves the order notes endpoint with full read/write
capabilities:

* GET /orders/#{order_id}/notes - get all notes for an order
* GET /orders/#{order_id}/notes/#{id} - get single order note
* POST /orders/#{order_id}/notes - create an order note
* PUT /orders/#{order_id}/notes/#{id} - edit an order note
* DELETE /orders/#{order_id}/notes/#{id} - delete an order note
2014-07-28 23:39:07 -04:00
Max Rice 47ccd78b21 Allow using meta_value_num with resource orderby
Part of #5720
2014-07-28 19:49:56 -04:00
Max Rice bb651761d0 Add orderby filtering to REST API resource endpoints
Adds orderby filtering to all endpoints using default WP orderby
parameters.

Closes #5720
2014-07-28 19:40:28 -04:00
Max Rice 323bcbf848 Add order (desc/asc) to REST API customers endpoint
Part of #5720
2014-07-28 19:38:21 -04:00
Max Rice 7f3b67272a Adhere to WP code standards 2014-07-28 19:34:41 -04:00
Max Rice 80368dc105 Add product categories endpoint to REST API
This commit adds two new endpoints:
* GET /products/categories - returns a list product categories
* GET /products/category/#{id} - returns the product category for #{id}

Closes #5806
2014-07-28 19:01:50 -04:00
Max Rice 7d597a36d0 Add item meta to REST API orders response
Fixes #5423
2014-07-28 13:33:03 -04:00
Max Rice 28449cfab2 Add WC_Order_Item_Meta::get_formatted()
This commit adds a helper method for plugins (and core) to use for
getting formatted item meta in an array, rather than a flattened string.

Part of #5423
2014-07-28 13:32:38 -04:00
claudiosmweb cb1ca6e341 replaced wp_get_post_terms() for get_the_terms() in wc_product_post_class(), closes #5905 2014-07-28 14:05:36 -03:00
Max Rice 8ff7202c5c Remove XML response from v2 REST API 2014-07-28 12:16:34 -04:00
Max Rice 2ea771be1f Fix SQL error in v1 customers response 2014-07-28 12:16:04 -04:00
Mike Jolley 8a6831f33b Hide tax columns for legacy orders
@claudiosmweb
2014-07-28 17:08:11 +01:00
Bryce 1ffa2dd867 Updated to employ WordPress coding standards 2014-07-28 22:16:35 +07:00
Bryce 16fad7469b Admin Views HTML Headers, Stop Direct Access
Also a couple small formatting improvements
2014-07-28 21:50:11 +07:00
claudiosmweb 7c141fcd41 prevented some errors when the order has no taxes 2014-07-28 10:59:55 -03:00
claudiosmweb fda7a5565c removed extra td element in refunds 2014-07-28 10:40:08 -03:00
Mike Jolley 42ac0c0368 Fix refund table alignment 2014-07-28 11:45:16 +01:00
Mike Jolley bf86072cce Interface tweaks
#3164
2014-07-28 11:41:52 +01:00
Mike Jolley cdc0efed75 Merge pull request #5843 from maxrice/feature-orders-endpoint-issue-4160
Create/Edit/Delete orders via the REST API
2014-07-28 09:18:49 +01:00
Mike Jolley 708861421a Merge pull request #5839 from maxrice/api-versioning
Update REST API version to v2
2014-07-28 09:18:41 +01:00
Max Rice 698f6499f6 Add REST API create/edit order actions & filters
Part of #4160
2014-07-27 23:58:01 -04:00
Max Rice 5be324a543 Add edit order REST API method
Part of #4160
2014-07-27 23:36:32 -04:00
Max Rice 315787e3d6 Refactor create order method
* handle errors through WC_API_Exception
* abstract order item creation

Part of #4160
2014-07-27 23:35:50 -04:00
Max Rice d919ed9d64 Tweak REST API order response
* se WC_Order::get_order_currency() for currency
* use new WC_Order::get_subtotal() for subtotal
* add order item ID and rate ID to tax lines

Part of #4160
2014-07-27 23:33:35 -04:00
Max Rice f656d57282 Add WC_Order::get_order_subtotal()
Convenience method to return the order subtotal

Part of #4160
2014-07-27 23:31:26 -04:00
Max Rice 3cc9952fea Include order item ID and rate ID in WC_Order::get_tax_totals()
Part of #4160
2014-07-27 23:31:02 -04:00
Max Rice f4feefc100 Fix WC_Order::get_user() 2014-07-27 23:30:21 -04:00
Max Rice e47ac33eb1 Add calculate_shipping() method to WC_Abstract_order
When the update_shipping() method is used, the order shipping amount is
not properly calculated unless the shipping costs are summed.

Part of #4160
2014-07-27 23:29:40 -04:00
Max Rice 1598d1b539 Add update methods to WC_Abstract_Order
These methods compliment the existing add_*() methods and provide a
consistent interface to add and update items for the order.

Part of #4160
2014-07-27 23:28:25 -04:00
Max Rice cca54879fa Fix misc docblocks 2014-07-27 23:23:59 -04:00
Max Rice b192bd46f8 Add wc_update_order_item() function 2014-07-27 23:21:16 -04:00
Max Rice c9342d6344 Add WC_API_Exception class
Part of #4160
2014-07-27 23:20:48 -04:00
claudiosmweb acaee93236 fixed refunds cancel button action 2014-07-25 13:32:16 -03:00
Mike Jolley 5e663a7fa8 Show refunded line items inline 2014-07-25 16:48:19 +01:00
Mike Jolley f4e7211d3a Fix top seller on dashboard 2014-07-25 15:48:37 +01:00
Mike Jolley a9e30766d6 fix dashboard total 2014-07-25 15:47:51 +01:00
Mike Jolley 029bbbec39 Updated reports 2014-07-25 15:46:19 +01:00
Mike Jolley 710a570525 Coded in Restore stock option 2014-07-25 11:29:24 +01:00
Mike Jolley a7eaefc374 Change button label for calc taxes 2014-07-25 10:48:47 +01:00
claudiosmweb ca2dfdd7c1 synchronized the trash and delete actions between orders and refunds #3164 2014-07-24 18:39:59 -03:00
claudiosmweb e634efa958 fixed tax calc when exists tax columns 2014-07-24 18:09:13 -03:00
claudiosmweb 2d61126502 added add_shipping and add_fee ajax actions 2014-07-24 17:55:25 -03:00
claudiosmweb 93b464cb29 improved the add_order_tax ajax method 2014-07-24 17:37:02 -03:00
claudiosmweb 5b3f69de0a fixed the "calculate tax" action #3164 2014-07-24 17:33:26 -03:00
Mike Jolley 00af832203 Sales by product report 2014-07-24 17:11:25 +01:00
claudiosmweb 7328212c03 fixed the get refunds method 2014-07-24 12:09:03 -03:00
Mike Jolley a10204894d Clear transients after refunding 2014-07-24 16:03:52 +01:00
Mike Jolley 873f36ca5c Pass order_types to reporting query functions 2014-07-24 15:55:06 +01:00
Mike Jolley 19b6922044 Refund line items and taxes 2014-07-24 15:34:14 +01:00
Mike Jolley e38dcf79bb Show refund boxes on click 2014-07-24 10:56:32 +01:00
Mike Jolley 0b231f2e03 Calc refund amounts and total via javascript 2014-07-24 10:53:29 +01:00
Mike Jolley 1ecfc59dfe Remove refund qty column 2014-07-24 10:22:04 +01:00
Mike Jolley e9b3d67ab7 Coupon template not needed 2014-07-24 10:21:57 +01:00
Mike Jolley 13f4f889a4 woocommerce_admin_order_item_values + refund fields 2014-07-24 10:21:47 +01:00
claudiosmweb a46ef1fced improved the shipping order items 2014-07-23 19:30:55 -03:00
claudiosmweb a3d0d5903e removed a test 2014-07-23 19:28:57 -03:00
claudiosmweb 26e50b7caf fixed post_type in reports 2014-07-23 14:17:01 -03:00
claudiosmweb 23628ad430 fixed undefined offset in wc_create_refund() 2014-07-23 13:56:43 -03:00
Mike Jolley 11835826de A start on negative line items
@claudiosmweb
2014-07-23 17:41:35 +01:00
Mike Jolley 3aa9475e39 Coupon code display 2014-07-23 11:47:02 +01:00
Mike Jolley 134f31abb9 Taxes were stored backwards
cc @claudiosmweb
2014-07-23 11:37:02 +01:00
Mike Jolley 4a306beef5 Max 100 taxes displayed, but show text input 2014-07-23 11:30:06 +01:00
claudiosmweb ae1881de06 fixed the line item quantity calcule #3164 2014-07-22 18:08:24 -03:00
claudiosmweb 8edbd8fed5 fixed undefined variable $can_be_edited when add new line items via ajax 2014-07-22 17:33:49 -03:00
claudiosmweb b56b60f191 stopped order editing when the status is not equal to pending or on-hold #3164 2014-07-22 16:25:37 -03:00
Mike Jolley ab36ec12d5 Merge pull request #5822 from helgatheviking/fix/add-to-cart
add_to_cart() return $cart_item_key
2014-07-22 18:32:55 +01:00
Kathy Darling 7e0121a0d9 update docblock for add_to_cart() method 2014-07-22 12:25:12 -04:00
Mike Jolley 388e2eec49 removed display block 2014-07-22 16:46:28 +01:00
Mike Jolley 249f18f70d Merge branch 'credit-notes' of https://github.com/woothemes/woocommerce into credit-notes
Conflicts:
	assets/js/admin/meta-boxes-order.min.js
2014-07-22 16:44:23 +01:00
Mike Jolley 3e4506c376 Clean up total/subtotal display 2014-07-22 16:44:02 +01:00
claudiosmweb 7b5b1fc845 prevented that exist duplicate tax rate columns #3164 2014-07-22 12:42:17 -03:00
claudiosmweb 954a5ddc23 only show refund via button when gateway supports refunds #3164 2014-07-22 12:13:35 -03:00
Mike Jolley 01950bebdc Add confirmation before deleting tax column #3164 2014-07-22 15:26:18 +01:00
Mike Jolley 559ff43c42 Shipping should be displayed before fees 2014-07-22 14:42:12 +01:00
Mike Jolley 414bc4e314 Dashes when there is no tax 2014-07-22 14:42:04 +01:00
Mike Jolley b032c857ee Fix delete of shipping and fee line items. Remove checkbox for refunds. 2014-07-22 14:38:07 +01:00
Mike Jolley 93155c9e11 Do not use before init.
#3164
2014-07-22 14:30:42 +01:00
Mike Jolley 550db70d77 Line item icons 2014-07-22 14:27:47 +01:00
Mike Jolley 6e0a880699 Group line items by type 2014-07-22 14:18:11 +01:00
Mike Jolley c65cd44aef Fix input styling 2014-07-22 11:56:52 +01:00
Mike Jolley 0c5be5f054 Moved add tax button, and tidied up tax column display 2014-07-22 11:54:59 +01:00
Mike Jolley 2155b30065 Merge pull request #5872 from Ninos/master
Add filter: wc_get_template
2014-07-22 10:48:12 +01:00
Mike Jolley 0f7f3ee66a Merge pull request #5851 from BFTrick/abstract-settings-typos
Fixing Typos in Abstract Settings Class
2014-07-22 10:37:24 +01:00
Ninos Ego 7b24853afc Add filter: wc_get_template
Allow 3rd party plugin filter template file from their plugin
2014-07-22 03:05:25 +02:00
wilgert 0b032ab469 Update class-wc-coupon.php
add middle statement to ternary operator has ommitting this is only supported since PHP 5.3 and WooCommerce requires >5.2.4
2014-07-21 15:59:20 +02:00
wilgert 6ccd084e52 Update class-wc-coupon.php
If you loaded custom coupon data using the  `'woocommerce_get_shop_coupon_data'` filter. Only `$coupon->amount` was set. While the 'normal' coupons loaded from the database get both `$coupon->coupon_amount` and `$coupon->amount` set.

This change also adds `$coupon->coupon_amount` for in code generated coupons and allows functions using the `'woocommerce_get_shop_coupon_data'` filter to use either `amount` or `coupon_amount`.
2014-07-21 15:54:10 +02:00
claudiosmweb ef445aa1d7 removed a test ¬¬ 2014-07-21 00:00:18 -03:00
claudiosmweb 299c12bd57 fixed order get_total_refunded() method 2014-07-20 23:48:23 -03:00
claudiosmweb d2340a5cef fixed refund calcule 2014-07-20 23:26:40 -03:00
claudiosmweb 098919f469 removed some order totals old stuff 2014-07-20 22:59:42 -03:00