Commit Graph

2272 Commits

Author SHA1 Message Date
claudiosmweb 28713a760c improved the product price in product API handler 2014-06-25 13:27:48 -03:00
Mike Jolley 5dcd19f5fa Better handling of serialised settings Closes #4584 2014-06-25 16:30:47 +01:00
Mike Jolley 021431f012 Merge branch 'philmeadows-patch-1' 2014-06-25 13:57:36 +01:00
Mike Jolley 6390e387e2 Additional check for product coupons and sale product exclusion. Fixes #5697 2014-06-25 13:46:47 +01:00
Mike Jolley 0f6f04e017 Added wc_stock_amount() core function and replaced intval
#4612
2014-06-25 11:25:28 +01:00
Mike Jolley 1389dd2e86 Merge pull request #5738 from SiR-DanieL/patch-3
Improved woocommerce_placeholder_img filter
2014-06-25 11:12:26 +01:00
Mike Jolley c1dd3f2024 Allow endpoint use on the front page.
Fixes #5609 cc @claudiosmweb
2014-06-25 11:10:05 +01:00
Mike Jolley f1a10c2e70 Fix incorrect variable check when editing address 2014-06-25 11:06:42 +01:00
Nicola Mustone 46df7ba249 Added $size and $dimensions parameters
Added $size and $dimensions parameters to palceholder image filter to have a better custom management of the placeholder image.
2014-06-25 11:46:50 +02:00
Manos Psychogyiopoulos 6ad8f0f718 fix conflicts 2014-06-25 10:36:11 +03:00
claudiosmweb 101169322c added method to save product attributes in products API 2014-06-24 18:32:37 -03:00
claudiosmweb ea9fb154a9 fixed/improved the PUT method in product API 2014-06-24 17:34:06 -03:00
claudiosmweb bec77c12d8 added PUT method in product API 2014-06-24 17:28:36 -03:00
claudiosmweb 78f461f835 fixed the save product method in API 2014-06-24 17:17:51 -03:00
claudiosmweb 49c80e6732 fixed the create producs method in products API 2014-06-24 17:16:36 -03:00
claudiosmweb 52a5ae9086 added delete method in products API 2014-06-24 17:16:08 -03:00
claudiosmweb 2fb2d8dfb6 removed order notes from wp_count_comments() function, closes #5732 2014-06-24 15:56:53 -03:00
claudiosmweb 0971b87f30 added @kloon's WC_API_Products::save_product_meta() method 2014-06-24 15:30:11 -03:00
claudiosmweb f583f94885 improved the save product images methods in product API 2014-06-24 15:23:21 -03:00
claudiosmweb d7e49ea801 created methods to save product images by API 2014-06-24 15:19:34 -03:00
claudiosmweb 770d81091d fixed a error when get the thumbnail by API
Fixed the error:

PHP Notice: Trying to get property of non-object in wp-includes/post-template.php on line 29
2014-06-24 14:56:33 -03:00
claudiosmweb 5ca7516139 initial create product API method 2014-06-24 14:42:10 -03:00
claudiosmweb 276ebd25e3 created the wc_get_product_types() function 2014-06-24 13:59:56 -03:00
Mike Jolley 0e623e2c50 PESO Closes #5493 2014-06-24 16:08:04 +01:00
Mike Jolley 391b6cc6ae Merge pull request #5728 from darkrain/master
bugfix in get_related() - return trash posts
2014-06-24 15:55:22 +01:00
Mike Jolley 0596204c22 Merge pull request #5680 from helgatheviking/variation_is_purchasable
add filter to is_purchasable() for variations
2014-06-24 15:51:54 +01:00
Mike Jolley 03de576bfb Data update 2014-06-24 15:21:39 +01:00
Mike Jolley fb592a1a79 Variation class modifications (see details)
- Made it load data on the fly, rather than loading it all at once
- Pull some data from variation, some from parent
- Updated stock methods to use variation or parent depending on
manage_stock
- Ensure parent stays in sync on stock status change event
2014-06-24 13:05:13 +01:00
Mike Jolley 21d37e86c2 Handle stock for self and children, as well as syncing status with the children 2014-06-24 13:03:25 +01:00
Mike Jolley d65cb855bc Static is required 2014-06-24 13:02:58 +01:00
Mike Jolley f69e5fc4ee Only use a value for changes - allows automatic changes to stock status to take over 2014-06-24 13:02:48 +01:00
Mike Jolley d631f4acdc Hide status box for variables and handle save event 2014-06-24 13:02:09 +01:00
Mike Jolley 0315e48187 Only call the method to update stock when it changes 2014-06-24 13:01:47 +01:00
Mike Jolley 3ca70b30f5 Add sanity check to stock status change 2014-06-24 13:01:34 +01:00
Shohei Tanaka 19b5d8073e Update class-wc-countries.php for Japanese State
I don't use the word of Province for the largest administrative divisions of Japan, like the state in USA.
Sometimes I use the word of State for 都道府県. But I search some site, It seems to say that "Prefecture"
 is formally. Perhaps Prefecture is best.

Please check following site.
1. One of Most Popular Japanese to English dictionary site:
http://ejje.weblio.jp/content/%E9%83%BD%E9%81%93%E5%BA%9C%E7%9C%8C

2. Official Japanese law Translation site(Please click 都道府県)
http://www.japaneselawtranslation.go.jp/dict/list?re=02&ft=1&dn=1&ky=%E9%83%BD%E9%81%93%E5%BA%9C%E7%9C%8C&x=63&y=8&co=1
2014-06-24 19:00:03 +09:00
darkrain 8f530a156c bugfix in get_related() - return trash posts 2014-06-24 13:11:10 +07:00
Mike Jolley b46507ca13 Merge pull request #5639 from tamarazuk/master
[product_category] shortcode: Remove ordering query args
2014-06-23 16:36:43 +01:00
Mike Jolley 34c614373e Merge pull request #5701 from afurculita/master
Deprecate WP_TEMPLATE_PATH
2014-06-23 16:18:29 +01:00
Kathy Darling 7b201aad58 change is_purchasable() args to match regular product 2014-06-23 10:04:03 -05:00
Mike Jolley 84163615d3 Merge pull request #5650 from bernattorras/patch-1
Update class-wc-query.php
2014-06-23 13:07:13 +01:00
Mike Jolley fb1b6af309 Merge pull request #5662 from franticpsyx/order_item_count
order item count is wrong
2014-06-23 13:05:30 +01:00
Mike Jolley 474c5aafcf Merge pull request #5702 from darkrain/master
add filter to method get_sku()
2014-06-23 12:59:52 +01:00
Mike Jolley 85befad283 Use max() to prevent division by zero Closes #5696 2014-06-23 12:56:11 +01:00
Mike Jolley feb3088dfc Merge pull request #5644 from franticpsyx/overrides_scan_table_format
table format in Status report, template overrides
2014-06-23 12:24:47 +01:00
Mike Jolley 707b0b66cd Merge pull request #5713 from coenjacobs/dont-assume-log-action
Status page log title should not assume action for title
2014-06-23 12:05:11 +01:00
Mike Jolley 02ccef615b Merge pull request #5708 from JDGrimes/docs-fixes
Update copy-pasted docs for class instance() methods
2014-06-23 12:02:59 +01:00
Coen Jacobs 71ae6f874a Status page log title should not assume action 2014-06-21 10:27:40 +02:00
Mike Jolley b86b4c91c6 Simplify get_children and use stock status rather than stock level 2014-06-20 10:50:31 +01:00
Mike Jolley 8834679d93 Don't validate empty fields 2014-06-20 10:28:04 +01:00
JDGrimes 0d472cead5 Update copy-pasted docs
Fixes #5707
2014-06-19 15:43:05 -04:00
Mike Jolley 37117409f8 Merge pull request #5704 from JDGrimes/wpdb-prefix-table
Don't assume the database prefix is wp_
2014-06-19 16:49:08 +01:00
Mike Jolley 19adbb9bba Product admin/saving 2014-06-19 16:47:04 +01:00
JDGrimes a4a7daf960 Don't assume the database prefix is wp_
Use `$wpdb->prefix` instead. It was inconsistent with the rest of the
query anyway.
2014-06-19 11:35:33 -04:00
JDGrimes 3ed17d1b05 Avoid a "method should not be called statically"
Declare `WC_Post_Data::transition_post_status()` as `static`. Avoids a
PHP notice.
2014-06-19 11:32:52 -04:00
darkrain ea476af2ca add filter to method get_sku() 2014-06-19 22:28:49 +07:00
Alexandru Furculita 494b55abac Update class-wc-template-loader.php 2014-06-19 15:45:09 +03:00
Mike Jolley c66f2b8232 Split out several transient clearing functions to be called only when needed. 2014-06-19 12:25:10 +01:00
Mike Jolley 3df6a71b96 Removed some transient clears where unnecessary 2014-06-19 12:25:10 +01:00
Mike Jolley 3e0f6e2511 Term counts only need to be deleted when terms are recounted 2014-06-19 12:25:10 +01:00
Mike Jolley af77d8f12c Only remove featured transient when featured changes 2014-06-19 12:25:10 +01:00
Mike Jolley bb787ff8cc Merge pull request #5687 from claudiosmweb/fix-undefined-function-wc_ship_to_billing_address_only-in-admin
Move the wc_ship_to_billing_address_only() function to wc-order-functions.php
2014-06-18 16:18:35 +01:00
Mike Jolley 4187a2465a Merge pull request #5690 from BFTrick/parenthesis
Adding Brackets Around if Statement
2014-06-18 16:14:41 +01:00
Mike Jolley cf3cca4c8e Merge branch 'feature-wc-create-order' 2014-06-18 16:07:29 +01:00
Mike Jolley f2ca5e76bd Use a transaction during checkout's order creation method to ensure all data gets set
Closes #5368
2014-06-18 16:03:46 +01:00
Patrick Rauland 8e3c3a61db adding brackets around if statement 2014-06-17 16:40:54 -05:00
claudiosmweb 7fd6e9f0a0 moved the wc_ship_to_billing_address_only() function to wc-order-functions.php 2014-06-17 17:39:02 -03:00
Mike Jolley 8c1b384f43 [2.1] Total tax should be +, not - 2014-06-17 10:19:40 +01:00
Kathy Darling 5f56366a0b add filter to is_purchasable() 2014-06-16 12:32:54 -05:00
Coen Jacobs e7b6c49c7c Added comment to indicate that WC_Order shouldn't be directly instantiated 2014-06-14 23:36:20 +02:00
Coen Jacobs 66006a18b0 WC_Order is default class for order factory 2014-06-14 23:26:01 +02:00
claudiosmweb 97fb619e23 fixed undefined variable $status, closes #5673 2014-06-13 12:18:00 -03:00
Mike Jolley 94549e1462 Notices 2014-06-13 16:11:15 +01:00
Mike Jolley f37d6e12b8 Cleaned up ajax tax calc function 2014-06-13 15:54:08 +01:00
Mike Jolley 93778e72b0 Tax class fixes + notices 2014-06-13 15:53:59 +01:00
Mike Jolley 0f22691767 Calculate tax and totals methods 2014-06-13 15:21:15 +01:00
Coen Jacobs aa60022297 Restore get_order call in WC_Order constructor 2014-06-13 15:38:24 +02:00
Coen Jacobs 476870d9f2 Created WC_Abstract_Order, extended by WC_Order 2014-06-13 15:37:20 +02:00
Coen Jacobs 89ea6c46ab Replace new WC_Order calls with get_order 2014-06-13 15:24:51 +02:00
Coen Jacobs 4ca9855bec get_order wrapper function for new factory 2014-06-13 15:21:10 +02:00
Coen Jacobs 9c68f71500 Basic order factory class 2014-06-13 15:20:14 +02:00
Mike Jolley 76d160c8fc Fire action when adding product 2014-06-13 10:20:38 +01:00
Mike Jolley a6da6e3353 Also use qty 2014-06-13 10:18:03 +01:00
Mike Jolley 5aa8b47c6b When setting totals, if not set get the data from the product 2014-06-13 10:14:18 +01:00
Mike Jolley 375a0e2652 static WC_Tax class - no need for a constructor in this 2014-06-12 16:47:43 +01:00
Manos Psychogyiopoulos c172a08551 filter class 2014-06-12 15:09:15 +03:00
Manos Psychogyiopoulos cb75dcf699 filter name change 2014-06-12 14:51:23 +03:00
Mike Jolley e0b6e78752 Merge pull request #5658 from phikai/master
Send Proper Status Codes on wp_die (Fixes #5656)
2014-06-12 12:01:30 +01:00
Mike Jolley 2f3c60d4cf Merge pull request #5655 from claudiosmweb/fix-order-item-fees-tax-names
Fix tax name in order item fees
2014-06-12 11:59:33 +01:00
Mike Jolley 9beaf30a73 Merge pull request #5657 from claudiosmweb/feature-transaction-id-display
Display Transaction ID in order data
2014-06-12 11:59:17 +01:00
Mike Jolley ff186a23cc Merge pull request #5659 from claudiosmweb/fix-hard-code-strings
Fix some hard code strings
2014-06-12 11:59:06 +01:00
Mike Jolley c7a74e92fa Merge pull request #5654 from claudiosmweb/5551-feature-order-items-attributes-nice-names
Improved order items attributes names
2014-06-12 11:58:45 +01:00
Mike Jolley e532ffa064 Update language updater notices 2014-06-12 11:57:49 +01:00
Manos Psychogyiopoulos 0004a20add filter output apart from count 2014-06-12 11:53:39 +03:00
Manos Psychogyiopoulos 6af23e09bf order item count wrong 2014-06-12 10:59:45 +03:00
Tamara Zuk ee5d294ed7 Introduce 'woocommerce_get_order_item_totals_excl_free_fees' filter
The new filter will allow plugins that add order item meta to choose to
display the free fee items on order details pages and emails.
2014-06-11 19:16:27 -04:00
Tamara Zuk 9d43781737 Merge remote-tracking branch 'upstream/master' 2014-06-11 19:01:43 -04:00
Kai Armstrong 1274ac3303 Reading the wp_die docs was apparently a giant mental challenge... fixed the fix for #5656 2014-06-11 15:24:27 -05:00
claudiosmweb 61c94f9e25 fixed some hard code strings 2014-06-11 17:12:23 -03:00
claudiosmweb c3ed04197b fixed hard coded Edit string 2014-06-11 17:05:09 -03:00
Kai Armstrong c7410a1630 send proper status codes on die 2014-06-11 14:57:26 -05:00
Kai Armstrong 4812248320 Sends proper HTTP Status Codes on die 2014-06-11 14:55:15 -05:00
claudiosmweb 9540fd9444 fixed some coding standards in includes/admin/meta-boxes/class-wc-meta-box-order-data.php 2014-06-11 16:50:15 -03:00
claudiosmweb 977751dd20 display the transaction id in the order data meta box 2014-06-11 16:37:00 -03:00
claudiosmweb 5e39d81acc fixed hard coded Edit string 2014-06-11 16:07:12 -03:00
claudiosmweb f1926834da fixed some coding standards in includes/admin/meta-boxes/views/html-order-fee.php 2014-06-11 16:06:31 -03:00
claudiosmweb 911b1699ee improved the tax name in order item fee 2014-06-11 16:03:07 -03:00
claudiosmweb eaf5a9e866 added some brackets 2014-06-11 15:47:33 -03:00
claudiosmweb b5ee32efd0 improved the test for get the term name 2014-06-11 15:46:41 -03:00
claudiosmweb 29305bd9ec fixed some coding standards in includes/admin/meta-boxes/views/html-order-item.php 2014-06-11 15:31:54 -03:00
claudiosmweb 7ee7d75ed4 improved the order items names when is attributes, closes #5551 2014-06-11 15:18:33 -03:00
claudiosmweb 2acf0a8c83 fixed two syntax error in paypal gateway class 2014-06-11 14:14:34 -03:00
Mike Jolley 80ba9aa9c9 woocommerce_order_add_fee 2014-06-11 16:53:49 +01:00
Mike Jolley c591a3fb54 Set correct post type 2014-06-11 16:11:28 +01:00
Coen Jacobs 6cae09335b Store PayPal transaction id through payment_complete method 2014-06-11 16:36:55 +02:00
Coen Jacobs 386751addf Support storing transaction id in payment_complete method 2014-06-11 16:36:32 +02:00
Mike Jolley ef3e728855 Setters + wc_create_order + wc_update_order for #4169 2014-06-11 15:10:03 +01:00
Bernat 4f61e1946f Update class-wc-query.php
Use 'term_id' instead of 'id' for the tax_query as described in WP codex: http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
2014-06-10 17:22:01 +02:00
Manos Psychogyiopoulos 27a7dd0255 status report overrides table format
New tr for every extension being checked for overrides.
2014-06-09 16:57:02 +03:00
Mike Jolley a621288459 Fix address format in plain text email 2014-06-09 12:08:45 +01:00
Mike Jolley 77f71741b8 This should be static 2014-06-09 11:57:13 +01:00
Mike Jolley b20602a770 Merge pull request #5628 from tszming/fix-cached-widget
Add filter to allow override the cache widget id
2014-06-09 11:42:08 +01:00
Tamara Zuk 5dc1c8cf38 Remove ordering query args
If these are not removed right after use they will affect the remaining
queries on the page.
2014-06-09 04:15:46 -04:00
Coen Jacobs 3ad8935b20 Removed ununsed global variables in local scopes 2014-06-08 22:33:11 +02:00
Tsz Ming WONG 35159c50c8 Add filter to allow override the cache widget id 2014-06-07 00:34:12 +08:00
Mike Jolley eadf66a7d9 Merge pull request #5617 from enru/master
unslash order item meta key before updating in DB
2014-06-06 16:11:45 +01:00
Mike Jolley 5d8a1e03c0 Merge pull request #5610 from ragulka/checkout-wc-clean-fix
Check if posted data is_array before doing wc_clean in checkout
2014-06-06 16:09:02 +01:00
Mike Jolley 7aa053bdbd Merge pull request #5605 from ragulka/radio-field
Add radio type support to woocommerce_form_field
2014-06-06 16:08:25 +01:00
Mike Jolley f41febc42a Merge pull request #5598 from splashingpixels/add-filter
add filter for admin stock report products per page
2014-06-06 16:05:29 +01:00
Mike Jolley 32e77897cc Placeholder functions 2014-06-06 15:51:09 +01:00
Mike Jolley 2916c64370 Merge pull request #5618 from claudiosmweb/feature-translation-update-notice
Add a notice about available translation upgrades
2014-06-06 15:40:48 +01:00
toddlahman db896e316c Allow downloadable products URL to be relative 2014-06-04 22:02:32 -07:00
claudiosmweb c34cea6523 added a new option in system status to force the translations upgrade 2014-06-04 14:25:49 -03:00
claudiosmweb 1c128d8ebd added a notice to display messages about available translation upgrades 2014-06-04 13:01:38 -03:00
enru 23950bcf0d unslash order item meta key before updating in DB
To prevent nested slashes in DB when item meta key contains quotes.
This is in line with WordPress' behaviour - see update_meta() in wp-includes/meta.php
2014-06-04 15:09:01 +01:00
Mike Jolley 09c4e1c07a Merge pull request #5614 from mkayan-wakefly/master
RE issue: #5613 - Typo in error message
2014-06-04 11:31:19 +01:00
Mike Jolley ded4b7404d Admin changes for #5046
- Removed post type classes. Since they were always loaded, there was
no benefit having them split up. Combined meaning less hooked in
methods.
- Stopped loading some function files and sessions in the admin area.
They are not needed there.
- Made a few admin page classes static as they are stateless
2014-06-04 11:16:19 +01:00
Mike Jolley 7c5c113b61 Prevent sub pages of the shop page 404'ing with verbose page rules
Fixes #4621
2014-06-04 07:46:21 +01:00
Mike Jolley 8a6a195692 Merge branch 'post-statuses-for-orders' 2014-06-04 05:54:15 +01:00
mkayan-wakefly e6bfd393ac #5613 Typo in "don't ship to" error message
Typo in "don't ship to" country message: Issue #5613

Removing the word "to" from the error message indicating that a site doesn't ship to a certain country.

The function, shipping_to_prefix(), will handle insert the word "to".
Or, in the case of US, GB, and a few other countries, the words "to the".
2014-06-03 15:51:09 -04:00
mkayan-wakefly 32618c72b5 Update class-wc-checkout.php
Removing the word "to" from the error message indicating that a site doesn't ship to a certain country.

The function, shipping_to_prefix(), will handle insert the word "to".
Or, in the case of US, GB, and a few other countries, the words "to the".
2014-06-03 15:45:22 -04:00
Mike Jolley be4be147b9 Merge pull request #5604 from claudiosmweb/4844-fix-product-cat-url
Exclude the product_cat custom rewrites from the rewrite_rules_array
2014-06-03 14:46:25 +01:00
Mike Jolley 26668f49eb Merge pull request #5603 from claudiosmweb/5159-fix-product-attachment-url
Fix the product attachment urls when use n/%product_cat% as base url
2014-06-03 14:45:55 +01:00
Illimar Tambek 6302c0fb8a Check if posted data is_array before doing wc_clean in checkout 2014-06-03 14:16:19 +03:00
Mike Jolley 01810c3fce Check if wp_get_post_terms is empty before get_terms 2014-06-03 11:58:08 +01:00
Mike Jolley f30e95663b Prefixes for queries 2014-06-03 11:29:01 +01:00
Mike Jolley 9307fcf66b Internal wc- prefix and get_status filter 2014-06-03 11:04:56 +01:00
Illimar Tambek 516a8bcc8a Add radio type support to woocommerce_form_field 2014-06-03 13:04:06 +03:00
Mike Jolley 66f36d3f08 woocommerce_order_has_status filter 2014-06-03 10:47:16 +01:00
Mike Jolley 309f700283 has_status 2014-06-03 10:45:33 +01:00
claudiosmweb dfbe3e2e16 excluded the product_cat custom rewrites from the rewrite_rules_array, closes the #4844 2014-06-02 17:00:44 -03:00