Kathy Daring
bcb17b62c2
Add support for placeholders in quantity inputs
...
(cherry picked from commit 99eb5074f3
)
2020-01-16 12:47:15 -07:00
Rodrigo Primo
2c74233be2
Fix WordPress.WhiteSpace.DisallowInlineTabs violations
...
This commit fixes all violations of the WordPress.WhiteSpace.DisallowInlineTabs sniff automatically using phpcbf.
2019-12-20 14:27:07 -03:00
Claudio Sanches
4ea81923da
Merge pull request #24935 from woocommerce/fix/24845-wpcom-customizer
...
Do not run send_frame_options_header when on the customizer
2019-12-05 20:28:55 -03:00
Claudio Sanches
0686e6f1cd
Merge pull request #25000 from woocommerce/feature/pay-button-support
...
Initial support for "pay button"
2019-12-04 16:02:02 -03:00
itzmekhokan
0716648c28
woocommerce_upsells_display order filter added
2019-11-11 22:35:32 +05:30
Claudio Sanches
fdd391e10e
Introduced wc_get_pay_buttons() function
2019-11-07 17:23:38 -03:00
Gerhard
0cda53580f
Do not run send_frame_options_header when on the customizer
2019-10-30 15:37:04 +02:00
Vedanshu Jain
cb12010627
Merge pull request #24295 from woocommerce/fix/24096
...
Remove %20 from fields in External Products form
2019-10-03 00:15:52 +05:30
Claudio Sanches
830553accd
Fixed coding standards
2019-10-02 11:21:19 -03:00
Marco Almeida
1df96da7f8
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:49:11 +01:00
Yash Kapoor
e4456144f9
Update wc-template-functions.php
2019-08-22 12:35:38 +05:30
Yash Kapoor
bd6c7cfb13
Update wc-template-functions.php
...
Fixed spelling of woocommerce_gallery_thumbnail_size
2019-08-22 12:10:54 +05:30
Claudio Sanches
843df9c8b9
Remove %20 from strings when building a form from query strings
2019-08-01 17:24:32 -03:00
Claudio Sanches
52ba85c977
Introduced filter to change default redirect url in wc_logout_url()
2019-07-31 20:35:10 -03:00
Jaden
83a3c2362a
Fix Missing Translation for Subtotal
2019-07-19 12:53:59 +00:00
Gerhard
6e4e818170
Introduce woocommerce_widget_shopping_cart_subtotal function and move minicart template subtotal to use it. New woocommerce_before_cart_collaterals, woocommerce_widget_shopping_cart_total and woocommerce_widget_shopping_cart_after_buttons actions for making the cart and mini cart templates more flexible without having to override it.
2019-07-14 19:27:42 +02:00
Gerhard Potgieter
9ca6dad11e
Merge pull request #23433 from justlevine/master
...
Preserve State field input classes when selecting a Country.
2019-07-10 15:31:39 +02:00
justlevine
efb8b9af57
Added missing quote
...
Quote missing between `placeholder` and `data-input-classes` attributes.
2019-06-11 20:47:22 +03:00
Claudio Sanches
c96ed877af
Merge pull request #23660 from gocodebox/master
...
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-10 12:50:29 -03:00
Thomas Patrick Levy
4e58b098e5
update filter
2019-05-09 15:49:03 -07:00
Thomas Patrick Levy
57bbcf94b7
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-08 17:35:28 -07:00
Rodrigo Primo
45c2c78ea2
Fix: parameter values should be converted back as well when building form fields
...
PR #23196 added a workaround to `parse_str()` limitation when dealing with full-stops, pluses, and spaces in the parameter key. This workaround involved temporarily replacing those three characters with placeholders before calling `parse_str()` and then replacing back to the original form. This commit fixes a bug in this logic that was replacing back only parameters keys and not parameters values.
For example, if the query string is `?query.parameter=foo.bar`, the resulting <input> field contained `foo{dot}bar`, instead of the expected `foo.bar`.
2019-04-26 13:58:27 -03:00
Mike Jolley
192fecc0d8
Remove filter only needs priority
...
Co-Authored-By: Dragoș Mocrii <dragosmocrii@users.noreply.github.com>
2019-04-24 13:54:12 +01:00
Mike Jolley
04e51191c4
Pass $class
2019-04-23 18:06:09 +01:00
Mike Jolley
246596dec0
Put the post_class back to avoid breaking bw compat. Append core classes on top
2019-04-23 18:04:20 +01:00
Dovid Levine
3ad9fb32be
Add data-input-classes to state field
2019-04-22 19:18:48 +03:00
Mike Jolley
662af85bea
cleanup and docs
2019-04-18 19:33:48 +01:00
Mike Jolley
7737fc5928
remove post_class and implement woocommerce_post_class
2019-04-18 19:27:00 +01:00
Mike Jolley
fbaaa319dd
Use global product if null
2019-04-18 17:25:13 +01:00
Mike Jolley
b686150655
Merge pull request #23196 from woocommerce/fix/23195
...
Replace full stops before running through `parse_str`
2019-04-18 11:01:59 +01:00
Mike Jolley
b1a811ca46
Replace spaces
2019-04-03 11:58:08 +01:00
Mike Jolley
a66adf0829
Replace full stops before parse_str
2019-04-02 13:58:37 +01:00
Ben S
c1a6cdb873
Format empty cart message as information notice
2019-03-26 18:35:21 +01:00
Rodrigo Primo
9574762e8b
Merge pull request #22915 from woocommerce/fix/22894
...
Add woocommerce_get_product_subcategories_cache_key filter
2019-03-07 16:49:17 -03:00
Mike Jolley
16a0a3e27e
Update from master
2019-03-05 19:03:01 +00:00
Mike Jolley
7c9932da6d
woocommerce_get_product_subcategories_cache_key filter
2019-03-01 10:55:11 +00:00
Mike Jolley
20eb503128
Add alt text to gallery thumbnail
2019-02-26 14:03:25 +00:00
Mike Jolley
ffa230de90
Escape html entities before passing to WP/photoswipe
2019-02-20 11:49:55 +00:00
Mike Jolley
afe219d854
Select an option vs state
2019-02-18 11:49:46 +00:00
Mike Jolley
377d79e175
Merge branch 'fix/21830'
2019-02-13 14:45:00 +00:00
Mike Jolley
fb5f9c1ecb
Merge pull request #22690 from Tofandel/patch-1
...
The "for" attribute of a label for a radio input is invalid
2019-02-13 14:40:52 +00:00
Andrew Lazarus
11c16f35ab
Updated product loop title filter with esc_attr()
2019-02-13 15:07:07 +01:00
Andrew Lazarus
aee5cf2bff
Added filter for product title classes within product loop
2019-02-12 13:37:02 +01:00
Mike Jolley
1efe7747a8
merge conflict
2019-02-08 13:08:55 +00:00
Mike Jolley
1743c13225
Merge pull request #22631 from woocommerce/fix/21677
...
WC Endpoint 404s
2019-02-08 13:05:49 +00:00
Mike Jolley
8404b644da
Merge pull request #22645 from woocommerce/update/21963
...
Add notice hash to store notice cookie
2019-02-08 13:05:03 +00:00
Adrien Foulon
8dc9a46c17
The "for" attribute of a label for a radio input is invalid
...
The main label of a radio supposedly targeting the first value of the radios contains only the value instead of theId_theValue which is the id of the radio
2019-02-08 02:02:44 +01:00
Mike Jolley
b2c33b8e34
Merge branch 'master' into performance/slow-term-queries
2019-02-07 13:49:48 +00:00
Mike Jolley
889cf64ac4
Merge branch 'performance/wc-get-product-class'
2019-02-07 13:34:18 +00:00
nishitlangaliya
f69ac18ccd
fix: default value passed to sorting dropdown
2019-02-07 13:26:43 +05:30
Mike Jolley
4b485eba13
Fixed unit tests
2019-02-06 21:00:07 +00:00
Mike Jolley
e604a3ae24
correct id without $post
2019-02-06 19:57:06 +00:00
Gerhard Potgieter
b7971bd0dc
Merge pull request #22632 from woocommerce/fix/22552-screen-reader-ratings
...
Accessibility: Add a screen reader label for product rating star icons
2019-02-06 15:40:26 +02:00
Ron Rennick
7b5810d3da
limit page 2 not showing products to shop showing subcategories
2019-02-04 13:52:06 -04:00
Mike Jolley
1928f34699
Add notice hash to store notice cookie
...
Closes #21963
2019-02-04 13:18:09 +00:00
Mike Jolley
a5d62b83a8
Merge branch 'enhancement/woocommerce_display_product_attributes'
2019-02-04 11:25:13 +00:00
Mike Jolley
7093c652e7
Add localisation to new label
2019-02-01 17:13:41 +00:00
Mike Jolley
a0f47fb429
404 on endpoints
2019-02-01 16:56:00 +00:00
Mike Jolley
5825a66a30
Cleanup method
2019-02-01 16:55:51 +00:00
Kelly Dwan
a2d5d3dff7
Accessibility: Add a label for product rating star icons
2019-02-01 11:47:14 -05:00
Mike Jolley
e3f2cad544
Remove escape
2019-02-01 16:10:14 +00:00
Mike Jolley
d167cb0a95
Add caching for template names to avoid multiple lookups
2019-01-30 16:09:08 +00:00
Mike Jolley
0dd7cd2b8b
Improved post_class generation to avoid loading more product objects
2019-01-30 16:02:22 +00:00
Mike Jolley
bd076d42da
Refactor wc_get_product_class to avoid $post object
2019-01-30 16:02:00 +00:00
Gerhard
69baf175c1
After some testing using area-hidden seems to deliver the best results for not producing the hissing sound on reviews.
2019-01-29 13:48:47 +02:00
Gerhard
94f64f3851
PHPCS fixes
2019-01-29 13:36:16 +02:00
Gerhard
e74f0acc19
Add a screen reader label to the star rating div to avoid screen readers trying to read the text of the star font.
2019-01-29 13:34:04 +02:00
Ron Rennick
a663f56306
two more sniffs in wc-template-functions.php
2019-01-28 14:36:39 -04:00
Ron Rennick
475c35ed7a
phpcs sniff fixes for wc-template-functions.php
2019-01-28 11:25:45 -04:00
Ron Rennick
db2bc48849
don't force shop loop display mode to products when query page >1
2019-01-28 11:23:25 -04:00
Mike Jolley
32ae0192e5
Use WP term meta functions
2019-01-25 20:47:54 +00:00
Mike Jolley
8127610afe
Remove menu_order - not needed
2019-01-25 20:01:20 +00:00
Mike Jolley
084dab4553
Merge pull request #22476 from woocommerce/fix/22470
...
Hide ratings when reviews are disabled
2019-01-22 13:32:22 +00:00
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