Gerhard
f3d9eeeef3
Introduce wc_reviews_enabled, wc_review_ratings_enabled and wc_review_ratings_required as helper functions and update all places where options are accessed directly.
2019-01-17 08:04:57 +02:00
Mike Jolley
2ea7e4fb6a
woocommerce_display_product_attributes filter
2019-01-16 12:25:19 +00:00
Mike Jolley
d3d1864b4e
Select an option vs state
2019-01-15 15:24:17 +00:00
Mike Jolley
f4ed56a894
Merge pull request #21153 from jamesckemp/patch-12
...
`woocommerce_variation_option_name` Parameters
2019-01-10 12:28:21 +00:00
Mike Jolley
eef05fafe9
update from master
2019-01-08 15:00:23 +00:00
Mike Jolley
6ccf385f8b
Merge pull request #22005 from woocommerce/add/21992
...
Add woocommerce_gallery_image_html_attachment_image_params filter
2019-01-07 13:05:53 +00:00
claudiulodro
13371c7e8b
Check product exists before getting title
2018-11-26 11:16:58 -08:00
Gerhard
06d7d50f9d
Include main_image variable in the woocommerce_gallery_image_html_attachment_image_params filter.
2018-11-21 13:52:55 +02:00
Gerhard
7e4e0de090
PHPCS fixes
2018-11-21 13:48:35 +02:00
Gerhard
9eb31f5d14
Add woocommerce_gallery_image_html_attachment_image_params filter so you can modify the params passed to wp_get_attachment_image for thumbnails.
2018-11-21 13:47:24 +02:00
Gerhard
8d6d95935a
Populare arealabelledby attribute by actually passing the product_name in the $args.
2018-11-21 09:49:38 +02:00
Rodrigo Primo
9b094fc74d
Use $product->get_image_id() instead of has_post_thumbnail()
...
This commit replaces all instances where has_post_thumbnail() was used with $product->get_image_id(). This is a continuation of 64b589f032
and is needed to support the custom product tables plugin as has_post_thumbnail() relies on a post meta.
2018-10-18 09:28:20 -03:00
Kathy Darling
61f4f4e298
add $product object to woocommerce_quantity_input_classes
2018-10-15 17:24:47 -05:00
Rodrigo Primo
f53b696ddf
Remove unnecessary call to urldecode()
...
This commit removes an unnecessary call to urldecode() as the superglobal $_REQUEST is already decoded by PHP (see http://php.net/urldecode ). Calling urldecode() on a previously decoded value was causing the issue described in #21542 .
2018-10-15 12:27:12 -03:00
Kathy Darling
5c722a32e8
Add support for custom classes on quantity input with new woocommerce_quantity_input_classes filter
2018-10-13 22:22:17 -05:00
claudiulodro
4082222f7a
Add inline float style for email label to match order details styling
2018-09-26 11:13:29 -07:00
Gerhard Potgieter
9849228442
Logical not bitwise operator
2018-09-18 15:11:26 +02:00
Trafikbyran
b27980dae7
Update wc-template-functions.php
...
it's supposed to check if it isn't (&!) in the array of taxonomies that are stated on the following rows not if it is (&&)... before rows 623 to 630 did nothing..
one could argue that it should be possible to set the taxonomies in the array it checks "( 'product_cat', 'product_tag' )" in the filter but i haven't thought that through
2018-09-18 15:10:50 +02:00
Gerhard Potgieter
8b51ceaca2
Sort by latest instead of Sort by newness
2018-09-10 10:26:04 +02:00
James Kemp
111c2fded0
Add more parameters to `woocommerce_variation_option_name`
...
Add term, taxonomy, and product object to the `woocommerce_variation_option_name` filter.
2018-08-22 11:37:47 +01:00
Peter Fabian
5b0cc306a5
Moved the wc_kses_notice to wc-notice-functions.php and applied it in wc_print_notices().
2018-08-21 12:00:48 +02:00
Peter Fabian
9845c3c131
PHPCS.
2018-08-21 11:48:29 +02:00
Peter Fabian
ae05d6e5ea
Removed author tag and bumped version of templates to 3.5.0, factored out function to one common place.
2018-08-21 11:47:50 +02:00
Peter Fabian
5459d1149d
Add ajax-add-to-cart class to button only if product can be purchased.
2018-07-02 18:58:42 +02:00
Mike Jolley
211ef53a53
Pass link to template file. Use cart URL to avoid redirects.
2018-06-22 10:40:56 +01:00
therealgilles
43db16a708
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2018-06-11 18:14:30 +00:00
Mike Jolley
588be3a780
merge master
2018-06-11 13:46:04 +01:00
therealgilles
9adff87a1c
Rename woocommerce_checkout_skip_cart_is_empty_check to woocommerce_checkout_redirect_empty_cart and invert filter polarity.
2018-06-10 18:58:47 +00:00
therealgilles
1d733236e0
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2018-06-10 18:53:13 +00:00
Mike Jolley
4df54b4e53
Merge branch 'master'
2018-06-07 11:24:12 +01:00
therealgilles
0a6e5f7d16
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2018-06-04 20:13:45 +00:00
Mike Jolley
4daa28daee
woocommerce_shipping_calculator to support custom button text
2018-06-01 21:29:33 +01:00
Mike Jolley
45d6c55f2a
selected logic, with added sanitize_title
2018-05-29 14:32:20 +01:00
Mike Jolley
786641e976
Merge pull request #20232 from rnaby/250518-161500-wc-template-functions-wc_logout_url
...
wc_logout_url refactored
2018-05-25 11:40:00 +01:00
Khan M Rashedun-Naby
49f76ebb5b
wc_logout_url refactored
2018-05-25 16:34:06 +06:00
Mike Jolley
717fd61a16
Merge pull request #20226 from rnaby/250518-104427-wc-template-functions-get_product_search_form
...
Removed get_product_search_form else
2018-05-25 11:29:07 +01:00
Mike Jolley
416a4785b2
Merge pull request #20230 from rnaby/250518-154433-wc-template-functions-wc_get_rating_html
...
wc_get_rating_html refactored
2018-05-25 11:28:27 +01:00
Mike Jolley
fc24e2f440
Merge pull request #20214 from rnaby/240518-232027-wc-template-functions-woocommerce_pagination
...
woocommerce_pagination refactored
2018-05-25 11:23:36 +01:00
Khan M Rashedun-Naby
c3f4826caf
wc_get_rating_html refactored
2018-05-25 16:10:26 +06:00
Khan M Rashedun-Naby
52d28b69c2
Removed Else
2018-05-25 10:45:38 +06:00
Khan M Rashedun-Naby
4a8b7b876e
woocommerce_pagination refactored
2018-05-24 23:23:10 +06:00
Khan M Rashedun-Naby
18ae4c8d5c
wc_setup_product_data refactored
2018-05-24 23:11:13 +06:00
Mike Jolley
2f87873ca5
Merge pull request #20093 from rnaby/160518-090545
...
Little clean up and fix
2018-05-24 16:26:15 +01:00
Mike Jolley
83a9831dc0
Merge pull request #20092 from rnaby/160518-084433
...
wc_get_loop_class logic simplified
2018-05-24 16:25:26 +01:00
therealgilles
830e42794e
Add woocommerce_checkout_skip_update_order_review_expired and woocommerce_checkout_skip_cart_is_empty_check filter calls.
2018-05-23 20:40:23 +00:00
Mike Jolley
5afb40fcbb
Merge pull request #20162 from woocommerce/fix/20133-string-parsing
...
Improve external product string parsing
2018-05-22 13:54:03 +01:00
Mike Jolley
a3c18696e8
Fix terms display in preview
2018-05-22 11:19:39 +01:00
Mike Jolley
7609ed82da
Make wc_query_string_form_fields handle strings
2018-05-22 10:53:08 +01:00
Khan M Rashedun-Naby
0c70ed69f3
Little clean up and fix
2018-05-16 09:08:49 +06:00
Khan M Rashedun-Naby
3f824ae000
wc_get_loop_class logic simplified
2018-05-16 08:47:35 +06:00
Gerhard Potgieter
6ab75247f7
Check that the terms condtions page actually exists and not just for an saved ID.
2018-05-07 11:05:38 +02:00
Mike Jolley
2f8f30cd29
Make some strings easier to translate for translators
2018-05-03 14:50:39 +01:00
Mike Jolley
8e0f0cbc29
Lazy load children and attributes for variable products
2018-05-01 11:57:00 +01:00
Mike Jolley
ccff8ecd17
Fix policy text preview in customizer.
2018-04-26 12:11:11 +01:00
Mike Jolley
fe30b4900e
Merge pull request #19798 from tivnet/patch-6
...
Update wc-template-functions.php
2018-04-20 11:37:39 +01:00
Gregory Karpinsky
88b9f3763e
Update wc-template-functions.php
...
`wc_privacy_policy_page_id()` has no parameters.
2018-04-19 21:35:02 -04:00
Gregory Karpinsky
02a4538c82
Update wc-template-functions.php
...
Spelling
2018-04-19 21:19:36 -04:00
Mike Jolley
8aa214bab5
Better callback
2018-04-19 18:37:07 +01:00
Claudiu Lodromanean
48eb13d602
Merge pull request #19747 from woocommerce/update/19734
...
Add privacy policy to account pages
2018-04-18 07:26:06 -07:00
Mike Jolley
97e747e745
Add default text prop
2018-04-18 11:05:36 +01:00
Mike Jolley
6c5d4c7cda
Add privacy settings
2018-04-17 18:32:31 +01:00
Claudio Sanches
c185d6b6d3
Merge branch 'fix/19620' of github.com:woocommerce/woocommerce into fix/19620
2018-04-17 12:54:35 -03:00
Claudio Sanches
a7ce4ff6d3
Escape all at the same time
2018-04-17 12:54:01 -03:00
Claudio Sanches
933bcc32c3
Merge branch 'master' into fix/19620
2018-04-17 12:45:20 -03:00
Claudio Sanches
f18220a009
Updated unit tests
2018-04-17 12:31:14 -03:00
Claudio Sanches
54b6174b34
Fixed $post when using product instance
2018-04-17 12:21:56 -03:00
Claudio Sanches
c19836b0e4
Moved espace to wc_product_class
2018-04-17 12:18:21 -03:00
Claudio Sanches
627292d627
Include categories and tags by default
2018-04-17 12:14:18 -03:00
Mike Jolley
8a19c5962b
Further simplified customiser options
2018-04-16 17:56:44 +01:00
Mike Jolley
6c14ad9a88
More wording tweaks
2018-04-11 17:12:48 +01:00
Mike Jolley
592605f071
Wording
2018-04-11 16:45:41 +01:00
Mike Jolley
cdd5b25bd8
Privacy page and default text handling
2018-04-11 16:41:39 +01:00
Claudio Sanches
60ad91266d
Fixed wrong variable
2018-04-06 15:08:11 -03:00
Claudio Sanches
b3bf245929
Introduced new wc_get_product_class() and wc_product_class functions
2018-04-06 13:58:59 -03:00
Mike Jolley
212a8a180f
Back compat
2018-04-06 11:51:03 +01:00
Mike Jolley
3140a0fb62
More customistion options for terms and conditions.
2018-04-06 11:43:30 +01:00
Mike Jolley
3bf567279b
Improve default appearance of descriptions so they toggle on focus and support HTML.
2018-04-05 16:56:00 +01:00
Mike Jolley
3a6c3e002b
Add option to choose if the checkout marks either required or optional fields, and style these options.
2018-04-05 14:12:59 +01:00
Peter Fabian
80dc183880
Use nbsp to separate * denoting required fields.
2018-04-04 16:45:40 +02:00
Peter Fabian
c2e27919ce
Replaced array_key_exists with isset test
2018-03-28 11:19:03 +02:00
Peter Fabian
86f1b3701f
Tag stripped outside template
...
Stripping only affects aria-label attribute now.
2018-03-27 17:19:49 +02:00
Claudio Sanches
0660a50e07
Removed obvious boolean results
2018-03-21 19:57:10 -03:00
Claudio Sanches
15989622df
Fixed PHP warning on woocommerce_catalog_ordering()
...
This fixes the follow warning:
> PHP Warning: array_key_exists(): The first argument should be either a string or an integer in includes/wc-template-functions.php on line 1012
When an option doesn't exists is returned `false`, just setting a default value to fix the issue.
This issue should happen in new installations of WooCommerce 3.3 when no
order is defined on the customizer.
2018-03-16 15:13:21 -03:00
Mike Jolley
6cc5f2e171
Merge pull request #19140 from woocommerce/fix/subcategory-cache
...
Clear subcategory cache
2018-03-16 14:08:58 +00:00
Mike Jolley
d052b2ee46
cache per parent to avoid large caches
2018-03-13 19:00:08 +00:00
Claudiu Lodromanean
c38e0e69e9
Merge pull request #19376 from woocommerce/fix/19362
...
Correctly handle default ordering on the search page
2018-03-13 10:39:59 -07:00
Mike Jolley
1dbf1bc1d8
add general woocommerce_form_field filter
2018-03-13 14:30:19 +00:00
Mike Jolley
e4e581c2ef
Correctly handle default ordering on the search page
...
Fixes woocommerce_catalog_ordering function and closes #19362 .
2018-03-13 10:43:58 +00:00
Mike Jolley
48303278f6
Merge pull request #19373 from nishitlangaliya/issue-19323
...
missing single quote added
2018-03-13 09:59:55 +00:00
nishitlangaliya
4b4fd3931e
missing single quote added
2018-03-13 11:15:43 +05:30
Claudiu Lodromanean
4fbd01f003
Merge pull request #19288 from woocommerce/fix/19210
...
Introduce woocommerce_product_loop helper for loops
2018-03-12 10:50:25 -07:00
nishitlangaliya
8fa7a7695a
Add Filter to woocommerce_output_product_categories
2018-03-12 16:09:00 +05:30
Mike Jolley
6d76cb71fd
Introduce woocommerce_product_loop helper
2018-03-07 12:54:00 +00:00
Mike Jolley
b34e163bd5
No js for all the themes.
2018-03-07 11:44:41 +00:00
Mike Jolley
4bce7b0223
Use single cache for hierarchy
2018-02-28 18:24:03 +00:00
Gerhard Potgieter
c8642f0da7
PHPCS fixes
2018-02-23 10:16:22 +02:00
Gerhard Potgieter
c13dee6fb3
Add page 1 to check when displaying shop page content.
2018-02-23 10:14:59 +02:00
Mike Jolley
3353d80ecd
wc_get_loop_class; force columns to be a minimum of 1
2018-02-22 15:44:28 +00:00
Mike Jolley
380ee9a13f
Merge pull request #18536 from woocommerce/update/17908
...
Refactor woocommerce_wp_select so it could be used for a multiselect
2018-02-22 12:19:11 +00:00
Mike Jolley
03a1906706
Post image is enough
2018-02-21 17:21:02 +00:00
Mike Jolley
8d1408fa04
Add WP classes to image gallery
2018-02-21 17:21:02 +00:00
Mike Jolley
280ca3757e
wc_get_gallery_image_html checks
2018-02-13 19:18:13 +00:00
Mike Jolley
2b36b5f49f
Main image should be larger.
2018-02-13 11:16:42 +00:00
Mike Jolley
ebb246d9d3
wc_get_gallery_image_html helper function
2018-02-13 11:16:42 +00:00
Mike Jolley
830a2cb5a5
Don't prepend cats for regular shortcodes
2018-02-08 17:37:56 +00:00
Mike Jolley
974ff71129
Merge pull request #18747 from woocommerce/fix/woocommerce_content
...
Was missing wc_get_loop_prop check like the main archive
2018-02-01 14:34:25 +00:00
Mike Jolley
add3ca3bea
This removes pagination and products from display for themes not using wc_get_loop_prop in their product loops.
2018-02-01 14:31:00 +00:00
Mike Jolley
00d16dce0e
Was missing wc_get_loop_prop check like the main archive
2018-02-01 13:22:50 +00:00
Mike Jolley
fc3bf3edf2
Moved this below query to prevent subcategories display mode also showing products.
2018-01-31 21:24:14 +00:00
claudiulodro
cbaa8831d5
Merge master and resolve conflicts
2018-01-31 11:24:21 -08:00
Mike Jolley
e6f54912ee
Merge branch 'master' into fix/18680
2018-01-31 17:56:46 +00:00
Mike Jolley
1f2046a3e3
Revert columns to 4
2018-01-31 17:55:17 +00:00
Mike Jolley
586619b136
merge the loop, don't bail
2018-01-31 16:44:50 +00:00
Mike Jolley
40c59d31f2
Merge branch 'master' into fix/18674
2018-01-31 16:29:08 +00:00
Claudiu Lodromanean
c28e2e2de5
Merge pull request #18706 from woocommerce/update/uncategorized
...
Uncategorized tweaks
2018-01-31 08:16:51 -08:00
Mike Jolley
a8cc6c8871
Remove deprecation notice
2018-01-31 15:46:47 +00:00
Mike Jolley
5a4cc2d46c
Update comment.
2018-01-31 15:35:25 +00:00
Mike Jolley
b8df0ea474
Hide uncategorized from store by default.
2018-01-31 13:37:23 +00:00
Mike Jolley
0f33d446e3
Before getting wc_get_loop_prop, setup the loop.
...
Closes #18687
2018-01-31 11:59:40 +00:00
Mike Jolley
96982cd318
Min columns must be 1, not 0
2018-01-30 23:32:52 +00:00
Mike Jolley
81c8aba8c9
Add woocommerce_output_product_categories so we can handle legacy templates.
2018-01-30 23:24:26 +00:00
Rodrigo Primo
538ee2097c
Merge pull request #18594 from alexminza/master
...
Added support for additional HTML5 input types for settings/checkout forms
2018-01-30 17:33:13 -02:00
Mike Jolley
057b40e044
Remove kses from before/after attribute
...
Closes #18643
2018-01-30 11:45:00 +00:00
Alexander Minza
519bfadc63
Added support for additional HTML5 input types
2018-01-25 15:14:30 +02:00
Mike Jolley
70e92302f5
Refactor woocommerce_wp_select so it could be used for a multiselect
2018-01-19 13:36:14 +00:00
Mike Jolley
371f504964
Helpers for theme support vars and error messages.
2018-01-08 18:48:57 +00:00
Tiago Noronha
ece1963e66
Fix default columns isset check.
2018-01-02 19:27:28 +00:00
Caleb Burks
0192fb9ef0
Add woocommerce_loop_product_link filter
2017-12-25 02:20:40 -06:00
Mike Jolley
755647ec5c
Improve subcat display to see if subcats can actually be displayed
2017-12-13 15:46:09 +00:00
Mike Jolley
f4927ea837
Give control over loop button attributes
...
Closes #18079
2017-12-11 13:09:21 +00:00
Mike Jolley
5b0df590c0
Merge pull request #18065 from woocommerce/improve/18064
...
Add default row/column control for themes
2017-12-08 16:14:19 +00:00
claudiulodro
fef9d612c7
Better function name
2017-12-08 07:38:40 -08:00
claudiulodro
b2cac1dcab
Better description
2017-12-08 07:36:33 -08:00
claudiulodro
e37391affb
Set/remove defaults on theme activation
2017-12-08 07:33:42 -08:00
claudiulodro
600b1bd82c
Revert "Add defaults control for themes"
...
This reverts commit 29090e4676
.
2017-12-08 07:23:46 -08:00
claudiulodro
e22318449e
Fix syntax error @bor0
2017-12-07 14:29:07 -08:00
claudiulodro
29090e4676
Add defaults control for themes
2017-12-07 11:35:06 -08:00
Boro Sitnikovski
d0f9aaa99a
Merge branch 'master' into tweak/decouple-cart-template-methods
2017-12-07 20:16:08 +01:00
Boro Sitnikovski
588c5f3779
Change method name
2017-12-07 15:53:16 +01:00
Mike Jolley
1f2011e8de
Tweak query args
2017-12-06 19:03:14 +00:00
Mike Jolley
3c36ab0517
Helper functions for loop handling to avoid global usage, and helper for displaying subcats
2017-12-06 18:10:19 +00:00
Mike Jolley
8dcffa660e
Normalise get_query_results names and add new param for pagination
2017-12-06 13:13:43 +00:00
claudiulodro
535d014ef9
Line up arrays
2017-12-05 10:50:17 -08:00
claudiulodro
aab65923c1
Refactor for better style
2017-12-05 10:45:08 -08:00
claudiulodro
fec60ab2ea
Fix product shortcode pagination
2017-12-05 08:31:50 -08:00
Boro Sitnikovski
145d47c580
Decouple cart templating methods from WC_Cart class
2017-12-05 13:00:21 +01:00
claudiulodro
d60456cc73
Resolve conflicts and bring up to date with master
2017-12-04 13:56:59 -08:00
Mike Jolley
20633d409d
Fix archive with default permalinks
2017-12-04 15:35:52 +00:00
Ibrahim Ibn Dawood
b1bef237d1
made function : woocommerce_template_loop_product_link_open, woocommerce_template_loop_product_link_close, woocommerce_template_loop_category_link_open, woocommerce_template_loop_category_link_close pluggable
2017-12-01 14:58:42 +05:30
Claudio Sanches
d438a68300
Allow woocommerce_form_field() have 'custom_attributes' equal 0
...
array_filter() by default will remove all null values, also 0 or false,
but if trying to declare something like array( 'min' => '0', 'max' =>
'10' ) this will be a problem. So including added strlen() as callback
function will allow keep some strings but still remove null and false
values.
Ref #17940
2017-11-29 18:45:44 -02:00