Commit Graph

18022 Commits

Author SHA1 Message Date
Claudio Sanches 842c39b525 Make easy to add query_meta 2016-10-14 11:15:11 +01:00
Claudio Sanches 92404fc867 Allow filter products by featured post meta 2016-10-14 11:15:11 +01:00
Claudio Sanches 876f7e62d7 Updated WP REST API functions to 2.0-beta15 2016-10-14 11:15:11 +01:00
Claudio Sanches 4aa1689015 Better description for product taxonomy filters 2016-10-14 11:15:11 +01:00
Claudio Sanches b26bbebb5f Merge pull request #12088 from woocommerce/improve-structured-data-class
Improve WC_Structured_Data class
2016-10-13 20:59:09 -03:00
Claudio Sanches 3f9c16fe49 Fixed coding standards 2016-10-13 20:54:47 -03:00
Claudio Sanches d5fa492378 Reverted the woocommerce_structured_data_product_limited filter name 2016-10-13 20:43:30 -03:00
Claudio Sanches e67bbba878 Fixed undefined variables 2016-10-13 20:29:50 -03:00
Claudio Sanches a9c8c79f58 Removed extra space 2016-10-13 19:54:21 -03:00
Claudio Sanches ecb0c46f7f Use get_data() at less one time 2016-10-13 19:48:02 -03:00
Claudio Sanches 9dce511dde Removed dead $limit_data param from generate_product_data() 2016-10-13 19:44:12 -03:00
Claudio Sanches fae8574619 Make methods less complex and more legible 2016-10-13 19:40:15 -03:00
Claudio Sanches 8484c8657e Display structured data in WC_Emails::order_schema_markup() 2016-10-13 19:39:27 -03:00
Claudio Sanches f3275be8d2 Fixed undeclared array variables 2016-10-13 19:05:51 -03:00
Claudio Sanches 7dc74f6dfc Improved WC_Structured_Data::generate_* methods
- Less conditional code
- Better docblocks
- Fixed mixed variables
- Stop returning bool since it's only displaying
2016-10-13 18:51:20 -03:00
Claudio Sanches 48210fa39a No need to declare 0 or 1 params in add_action() 2016-10-13 18:21:12 -03:00
Claudio Sanches 5967762e01 Already obvious 2016-10-13 18:19:41 -03:00
Claudio Sanches b9dfdacad4 Removed confuse helper 2016-10-13 18:19:13 -03:00
Claudio Sanches 291c731b22 Merge branch 'opportus-improved-structured-data' 2016-10-13 17:58:01 -03:00
Claudio Sanches 68b864313a Fixed conflicts 2016-10-13 16:58:20 -03:00
Claudio Sanches 07ae13c51b Fixed coding standards recommended by WPCS 2016-10-13 16:51:18 -03:00
Claudio Sanches 2e38033ca6 Merge pull request #12086 from attiladonath/master
Make it easier to extend Cash on Delivery payment gateway class
2016-10-13 16:30:40 -03:00
Rami Yushuvaev fec057c993 Use get_admin_page_title() function to display admin titles (#12077)
*  Use get_admin_page_title() function to display admin titles

* revert

* i18n: use sprintf() in translation strings
2016-10-13 13:34:48 -03:00
Attila Donáth 2968850786 Setup general properties in a separate method #12085
It is easier to extend the gateway class like that.
2016-10-13 18:23:51 +02:00
Attila Donáth 14f563fe02 Eliminate hardcoded payment method IDs #12085 2016-10-13 18:23:41 +02:00
James Koster 3823b78318 Add/product galleries (#11665)
* register prettyPhoto but don't enqueue. #10721

* Remove lightbox option. #10721

Also registers the prettyPhoto styles instead of enqueueing

* Stip all prettyPhoto related stuff from the templates and tidy up some logic. #10721

* Add flexslider assets #10721

* styling and re-adds `woocommerce_single_product_image_thumbnail_html`. #10721.

* Add zoom functionality. #10721

* Move js to single-product.js. #10721

* styling of the gallery thumbnails when using the `product_page` shortcode. #10721

* Only enable the zoom if the image is large enough. #10721

* Use a 4 column layout by default. #10721

* Make the carousel options filterable. #10721

* rtl styles for gallery. #10721

* Don't zoom on handheld devices. #10721

* markup tweaks in prep for photoswipe

* disable zoom for now

* Add and enqueue photoswipe assets

* add the photoswipe template

* initialise photoswipe - it's alive!

* tidy up js. add title. add separate trigger. #10721

* Move photoswipe functions to single-product.js. #10721

* reactivate the zoom! #10721

* style the photoswipe trigger. #10721

* disable flexslider animation loop. #10721

* js tidy up. #10721

* Fix jshint

* Abstract the product gallery scripts

* Minify

* Fixed conflict with the admin bar

* Photoswipe conflict with admin bar

* Index. #10721

* photoswipe button styles. #10721

* Styling. #10721

* No animation on zoom
* Image width on mobile

* No shadows please. #10721

Looking at you, Twenty Twelve.

* code tidy and add class to placeholder figure. #10721

* simplify rtl query

* photoswipe button styles

* Comma should not be here

* zoom icon #10721

* gallery thumb styles. #10721

* trigger icon. #10721

* Image margins. #10721

* icon hover states. #10721

* Variation handling

* Fix zoom and heights

* Resize after timeout
2016-10-13 15:25:42 +01:00
Mike Jolley 42f420b16c Correct admin link for variable product. 2016-10-13 15:18:44 +01:00
Mike Jolley 5304d6ef9d Add filters and include meta in item names sent to paypal
Closes #12022
2016-10-13 15:18:01 +01:00
Mike Jolley e3fa4de7c8 Hide shipping tax class setting when shipping is disabled
Closes #11960
2016-10-13 12:14:41 +01:00
Mickael Desgranges 7d0139e735 add argument on woocommerce_shipping_rate_label (#12075)
add $this argument for woocommerce_shipping_rate_label.
That may be veryhandy for modifying for a label with a specific method_id before the rate price was added.
2016-10-12 17:06:51 +01:00
Claudio Sanches 62aec00a59 Merge pull request #12071 from woocommerce/show-in-rest
Get media working when assign to product
2016-10-12 11:23:03 -03:00
Rami Yushuvaev b8f2f29d5a Remove deprecated admin screen icons (#12074) 2016-10-12 10:57:24 -03:00
Mike Jolley 7ab8c1e35f Get media working when assign to product
Fixes #11760
2016-10-12 13:02:07 +01:00
Manos Psychogyiopoulos 4658245625 Revise the stock + stock status saving logic (#11858)
* use set_stock to reset stock meta when not managing stock

Ensures that the 'woocommerce_{ variation | product }_set_stock' hooks fire to refllect the fact that stock becomes infinite.

* track state of Manage Stock? option

* quick/bulk edit fixes

* reapply quick and bulk edit fixes

* improve conditional reset logic that prevents actions from *_set_stock actions from firing with every save
2016-10-12 12:51:40 +01:00
Mike Jolley a426004975 Fixed numbered properties 2016-10-12 12:02:51 +01:00
Mike Jolley 705dc18991 Merge branch 'pr/12064' 2016-10-12 11:54:40 +01:00
Mike Jolley a42d021807 We can still include empty meta here - change not needed 2016-10-12 11:54:34 +01:00
Mike Jolley e6d4729453 Code standards 2016-10-12 11:54:21 +01:00
Mike Jolley a7e531e26d Made wc_get_wildcard_postcodes return the orignal postcode plus * since wildcards should match empty strings too.
Fixes #12016
2016-10-12 11:52:39 +01:00
Mike Jolley 0829200299 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	includes/admin/class-wc-admin-help.php
2016-10-12 11:18:27 +01:00
Mike Jolley d46a0c0f2b Merge branch 'pr/12068' 2016-10-12 11:17:24 +01:00
Rami Yushuvaev eae583fc3c Update wp.org plugin directory links 2016-10-12 11:16:58 +01:00
Claudio Sanches 657c312cae Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings

* Fixed case for all _n_noop strings

* Fixed case for all _x strings

* Fixed case for all __, esc_html__ and esc_attr__ strings

* Fixed a few more strings

* Fixed strings in unit tests

* Fix PayPal Standard case.

* Save Order text
2016-10-12 11:16:30 +01:00
Claudio Sanches 77722ecbe3 Fixed missing text domains (#12066) 2016-10-12 11:05:37 +01:00
Claudio Sanches dc87a07baa Merge branch 'ramiy-i18n/similar-strings' 2016-10-11 15:57:21 -03:00
Rami Yushuvaev 65cf1bcb6f Merge branch 'master' of https://github.com/ramiy/woocommerce into i18n/similar-strings 2016-10-11 21:14:56 +03:00
Rami Yushuvaev 39bdb3ee2e Merge pull request #2 from woocommerce/master
Merge updates
2016-10-11 21:09:14 +03:00
Manos Psychogyiopoulos 75b3042d9c [2.6] Variations script errors when 'empty' option is omitted (#11944)
* fix variation script malfunctioning when show_option_none arg is set to false

* add minified version
2016-10-11 18:26:08 +01:00
Mike Jolley 50544233f5 Wrap layered nav term in filter
Closes #11922
2016-10-11 18:23:25 +01:00
Mike Jolley ed37f592bf Set custom_attributes earlier 2016-10-11 18:08:02 +01:00