Commit Graph

2272 Commits

Author SHA1 Message Date
Mike Jolley 0b05f10995 Merge pull request #5787 from splashingpixels/bacs-html
moved h3 bank account title out of UL element for correctness
2014-07-04 11:04:14 +01:00
Mike Jolley 170399e5c3 Filter is_valid_for_product even when not relevant.
#5681
2014-07-04 11:03:12 +01:00
splashingpixels 63371ac520 moved h3 bank account title out of UL element for correctness 2014-07-03 11:54:36 -07:00
Mike Jolley abe0d0004a Merge pull request #5678 from coenjacobs/order-factory-refactor
Order factory refactor implementation (take two)
2014-07-03 15:14:43 +01:00
Mike Jolley a4346d9c90 Fix shop page when using verbose page rules
cc @claudiosmweb
2014-07-03 15:14:00 +01:00
Mike Jolley 5946e3fd7c $key should be $transient_name
#5777
2014-07-03 13:02:19 +01:00
Mike Jolley ee48dcd5fd Invalidate query transients to avoid cache flush
Part of #5777. These transients are required and cannot be predicted.

If not using an external cache system, the DB is cleared still to keep
size down after invalidation.

For these 2 transients, invalidation occurs when visibility altering
product attributes are edited.
2014-07-03 12:59:57 +01:00
Mike Jolley 3974c1028a Remove wp_cache_flush() Closes #5777
Carrying on from previous commits, the need for a wildcard delete for
products is unnecessary. This removes the $wpdb query and
wp_cache_flush()
2014-07-03 12:59:57 +01:00
Mike Jolley ad2c483370 No need to clear all transients here - only clear parent's cache
Part of #5777
2014-07-03 12:59:57 +01:00
Mike Jolley d1dbe4492e Clear comment transients only on wp_update_comment_count
Does not need to be flushed when editing a product. Part of #5777
2014-07-03 12:59:57 +01:00
Coen Jacobs 86a4add087 Merge remote-tracking branch 'upstream/master' into order-factory-refactor
Conflicts:
	includes/class-wc-order.php
2014-07-03 13:38:55 +02:00
Alexandru Furculita 89718fb43b Replace get_page with get_post
get_page is deprecated since WP 3.5
2014-07-03 13:25:50 +03:00
Mike Jolley 0448165c02 woocommerce_coupon_is_valid_for_cart
Closes #5681
2014-07-02 15:03:48 +01:00
Mike Jolley 8b2c4a3cb3 Merge pull request #5770 from shoheitanaka/patch-5
Correct the order of Japanese address fields
2014-07-02 13:58:57 +01:00
Mike Jolley 529b471470 Merge pull request #5771 from helgatheviking/fix/order-add_product-meta
wc_add_order_item_meta() the _line_total doesn't use the correct total
2014-07-02 13:58:48 +01:00
Mike Jolley 101254a6a3 Have get_product_from_item only return variable product if it exists, and show on the order item row if the variation no longer exists.
Fixes #5536
2014-07-02 13:58:10 +01:00
Kathy Darling cf322e9625 wc_add_order_item_meta() the _line_total doesn't use the total 2014-07-01 10:48:30 -04:00
Shohei Tanaka 7c10c4442e Correct the order of Japanese address fields
The order was incorrect. Changing the order of the input address field.
2014-07-01 16:52:45 +09:00
claudiosmweb 49882740bb added the possibility to remove the product images by API 2014-06-30 18:02:31 -03:00
claudiosmweb 617b299d8f improved the image upload to get images by ID and save the _product_image_gallery 2014-06-30 17:58:27 -03:00
claudiosmweb d3a2307d18 improved the image upload 2014-06-30 17:31:25 -03:00
claudiosmweb 584af93aba fixed a variable override when create new variable productions 2014-06-30 16:36:13 -03:00
Mike Jolley 3b6f7403bb Merge pull request #5760 from claudiosmweb/5670-fix-paypal-urls
Add urlencode() in return and cancel_return items in paypal params
2014-06-30 15:16:56 +01:00
Mike Jolley 137bf945ab Defer cart cookie being set 2014-06-30 15:14:32 +01:00
claudiosmweb db781a14ae added urlencode() in return and cancel_return items in paypal params, closes #5670 2014-06-30 10:51:52 -03:00
Mike Jolley 779613b062 Merge pull request #5660 from tamarazuk/upstream
Introduce 'woocommerce_get_order_item_totals_excl_free_fees' filter
2014-06-30 12:00:25 +01:00
Mike Jolley 33f40afbdb pre_get_posts is an action 2014-06-30 11:41:24 +01:00
Mike Jolley 2d23172cb1 Merge pull request #5752 from claudiosmweb/feature-wc-check-for-unique-sku-function
Introduces the wc_product_has_unique_sku() function
2014-06-27 21:22:52 +01:00
claudiosmweb 2b1a99eca6 introduces the wc_get_core_supported_themes() function 2014-06-27 16:42:23 -03:00
claudiosmweb 04f9361de7 added woocommerce support information in system status page 2014-06-27 16:37:59 -03:00
claudiosmweb d3dc018ffc fixed the wc_product_has_unique_sku() function name 2014-06-27 16:03:25 -03:00
claudiosmweb 0a4b6387e6 introduces the wp_product_has_unique_sku() function 2014-06-27 15:59:24 -03:00
Mike Jolley 2cb7b939c8 Merge pull request #5733 from claudiosmweb/5732-fix-wp-comments-count
Remove order notes from wp_count_comments() function
2014-06-27 15:47:14 +01:00
Mike Jolley c1a4deef63 Merge pull request #5750 from claudiosmweb/5712-fix-variation-sku
Unique sku in variation level
2014-06-27 15:26:12 +01:00
Mike Jolley 5e1bc4aeb1 Tweak get_availability 2014-06-27 14:46:39 +01:00
Mike Jolley a9262cbaf2 Merge pull request #5555 from toddlahman/master
Confirm buffer is not empty before erasing
2014-06-27 14:21:51 +01:00
claudiosmweb dfb1aeeb7b fixed some coding standards in includes/admin/meta-boxes/class-wc-meta-box-product-data.php 2014-06-27 10:08:39 -03:00
toddlahman f6c3f4d0b7 Remove diff code block from wc-customer 2014-06-27 05:56:27 -07:00
claudiosmweb a5f8d4dd5c guaranteed that variations have unique sku, closes #5712 2014-06-27 09:45:50 -03:00
Mike Jolley c2475c2073 Merge pull request #5745 from claudiosmweb/4164-feature-products-api
Products API - PUT/POST/DELETE
2014-06-27 13:14:20 +01:00
Mike Jolley cc1d1e2237 Included method to define a link format for a transaction ID, set transaction ID manually, and tweaked display. 2014-06-27 13:12:10 +01:00
toddlahman bad8225442 Allow home_url() to determine the scheme 2014-06-27 03:41:03 -07:00
Mike Jolley 50a4c5bd23 Merge branch 'variation-stock-management'
Conflicts:
	includes/class-wc-product-variation.php
2014-06-27 11:15:42 +01:00
claudiosmweb e208770265 fixed some coding standards 2014-06-26 16:55:24 -03:00
claudiosmweb 84be699374 added new product API actions 2014-06-26 16:51:03 -03:00
claudiosmweb fe53733be0 added method to save the variations in product API 2014-06-26 16:47:54 -03:00
toddlahman 7d78888f12 sync fork with master 2014-06-26 03:30:09 -07:00
claudiosmweb bdd5f9d0f6 created API methods to save product categories and tags 2014-06-25 16:38:51 -03:00
claudiosmweb 2dffa85353 fixed the downloads method 2014-06-25 16:27:24 -03:00
claudiosmweb dce4a4eed6 added all product options for save in WC_API_Products::save_product_meta() method 2014-06-25 16:20:28 -03:00
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