Commit Graph

2310 Commits

Author SHA1 Message Date
Ron Rennick 41d53a9880 use first gallery image on single product when image not assigned 2020-08-11 13:33:47 -03:00
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Nestor Soriano 50e8f27bc7 Fix visibility of variable products with layered nav filtering.
The layered nav filtering doesn't work well with variable products
when some variations have stock and other don't. When a term is
selected in the widget, a variable product having no stock for
the variation corresponding to that term but having stock for
other variations will be displayed, but it shouldn't.

This commit fixes that by introducing two changes:

- A new override of "is_visible" for WC_Product_Variable that
  looks at the supplied filters, compares them against the corresponding
  available variations and calculates the visibility based on
  the query type (OR or AND).

- A hook on the "found_posts" filter in WC_Query, that adjusts
  the posts count based on the found products visibility
  when there are filters available; this is needed to sync the
  "displaying X posts" messages and the paging when variable
  products are hidden due to stock status.

Additionally, the visibility calculated in "found_posts" is cached
as loop variables so that it isn't calculated again when actually
displaying the products.
2020-07-28 08:55:52 +02:00
Nestor Soriano ff7884bdb6 Fix total products count display when there's one single result.
Fix from "Showing all 1 results" to "Showing the single result".
2020-07-28 08:47:29 +02:00
Nestor Soriano c27283dffe Fix code sniffer errors in some files.
Fixed files:

includes/abstracts/abstract-wc-product.php
includes/class-wc-query.php
includes/wc-template-functions.php
includes/widgets/class-wc-widget-layered-nav.php
templates/loop/result-count.php
tests/unit-tests/util/class-wc-tests-wc-query.php
2020-07-28 08:47:29 +02:00
Ron Rennick e218d25d6e
Merge pull request #26989 from adamradocz/patch-1
Remove leftover note.
2020-07-24 14:44:05 -03:00
Mahdi Yazdani c3c15a4f2a
Removed dot "." from the generated password string
There is an extra dot "." right after the generated password string which is not part of the actual password and creates confusion for the users who want to login. It would be great if we can remove it.
2020-07-19 13:45:46 +03:00
Adam Radocz 558a052983
Remove leftover note. 2020-07-09 09:44:13 +02:00
Peter Fabian e20568be7d Update template versions for 4.3. 2020-07-04 21:57:39 +02:00
Claudio Sanches b772d0eaf3 Merge branch 'fix/26780' of https://github.com/priyankabehera/woocommerce into priyankabehera-fix/26780 2020-07-01 18:01:51 -03:00
Claudio Sanches ee2087a7d3
Updated template version 2020-07-01 17:42:33 -03:00
Claudio Sanches bdf996eec8
Fixed use of esc_html() and bumped the template version
Also fixed some coding standards
2020-07-01 17:39:49 -03:00
Claudio Sanches 525025b866
Merge pull request #26591 from mellooor/master
fix #26209 - email link color clash
2020-07-01 14:27:18 -03:00
Claudio Sanches f6a1708a95
Merge pull request #26613 from woocommerce/remove_html_from_plain_text_email
Remove html tags from plain text email template
2020-07-01 14:23:14 -03:00
Claudio Sanches 5db9afca28 Bump template version 2020-07-01 14:16:10 -03:00
Claudio Sanches 44348502cc
Merge pull request #26545 from damiencarbery/patch-1
Allow heading filter for cross sells component.
2020-07-01 14:14:37 -03:00
Claudio Sanches fddaed2899
Merge pull request #26325 from twoelevenjay/master
Conditionally change my account dashboard desc
2020-07-01 13:13:22 -03:00
Claudio Sanches 3b45cf2443
Merge pull request #26758 from IanDelMar/patch-1
Fix WPCS sniff exclusion
2020-07-01 12:35:25 -03:00
Néstor Soriano ca963af1b1
Merge pull request #26541 from jeffreyscottfrench/Fix--calc_shipping_country-default-value
Fixes #26540 - Set Select a country option value as default on shipping calculator
2020-06-30 10:35:19 +02:00
priyankabehera 995cedbcfe Fixed HTML entities in product name not showing correctly in cart page #26780 2020-06-27 17:42:47 +05:30
Claudio Sanches c3afafee76
Update template version 2020-06-24 11:53:39 -03:00
Leon Francis Shelhamer 80d6b94b42 Preserve anchors when escaping text.
Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
2020-06-16 03:59:43 -04:00
IanDelMar 5e8af1b599 Fix WPCS sniff exclusion
The `WordPress.WP.GlobalVariablesOverride.OverrideProhibited` error code has been replaced by the `WordPress.WP.GlobalVariablesOverride.Prohibited` error code in WPCS v2.0.0.
2020-06-12 15:33:28 +02:00
IanDelMar 9bfa9599e6
Fix WPCS sniff exclusion
Checking `templates/checkout/form-pay.php` against the WordPress Coding Standards throws an error because the `WordPress.WP.GlobalVariablesOverride.OverrideProhibited` error code has been replaced by the `WordPress.WP.GlobalVariablesOverride.Prohibited` error code in WPCS v2.0.0.
2020-06-12 15:29:35 +02:00
IanDelMar 56592ce140
Fix WPCS sniff exclusion
The `WordPress.WP.GlobalVariablesOverride.OverrideProhibited` error code has been replaced by the `WordPress.WP.GlobalVariablesOverride.Prohibited` error code in WPCS v2.0.0.
2020-06-12 14:30:54 +02:00
Zack Katz 846f8ab4fe
Fix unbalanced tag 2020-06-08 14:08:00 -06:00
Claudio Sanches a82dc05e1c
Bump template version 2020-06-03 11:55:20 -03:00
Menaka S 0fa121b810 Remove html tags from plain text email template 2020-05-27 17:07:10 +05:30
Julia Amosova 4756d4c911 Add asterisk to star ratings if required checkbox is enabled 2020-05-24 18:27:08 -04:00
Alex a581daf3dc fix #26209 - email link color clash 2020-05-23 14:07:09 +01:00
Damien Carbery 3132f14c77
Allow heading filter for cross sells component
Copying a similar change to templates/single-product/up-sells.php by @jacobarriola on 2020-02-10.
eea787e0e8 (diff-26fe493bd38552d971b507f64e87a879)
I do not have a use case for this but saw a blog post this morning that used 'gettext' filter to change this text (I suggested a custom PO file with just this string).
2020-05-19 10:51:51 +01:00
Jeffrey Scott French a75c118c02 Sets Select a country option value as default on shipping-calculator country select input. 2020-05-18 13:48:21 -04:00
Néstor Soriano b9875a4fc1
Merge pull request #26445 from tsteur/issue_26414
Add hooks to "Add payment method form" to show additional fields and validate input
2020-05-15 10:16:53 +02:00
Thomas Steur 630b7f436d apply review feedback: better naming and coding style fix 2020-05-15 09:08:35 +12:00
Christopher Allford 472dcfe562
Merge pull request #26245 from slavicd/master
Correct DocBlock in email template file
2020-05-11 19:56:09 -07:00
Thomas Steur 19b074f46b
Trigger action to add additional fields before the add payment method save button 2020-05-11 13:09:39 +12:00
Leon Francis Shelhamer ea9e2f72f9 Add full stop to comment
Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
2020-05-07 23:07:51 -04:00
Leon Francis Shelhamer 2e0cfa51ca Fix PHPCS errors
Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
2020-05-07 22:45:41 -04:00
Leon Francis Shelhamer fe3de4f02c Change conditional to wc_shipping_enabled
Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
2020-05-02 18:12:16 -04:00
Leon Francis Shelhamer 3a585c4e23 Conditionally change my account dashboard desc
Conditionally change my account dashboard description to reflect whether or not shipping has been disabled in WooCommerce > Settings > General > General options.

Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
2020-04-28 21:37:55 -04:00
Slavic Dragovtev a5d03828f4
Fix DocBlock in email template
Fixes issue [#26244](https://github.com/woocommerce/woocommerce/issues/26244)
2020-04-22 20:19:50 +03:00
Ameen Jalali 4fcb8921d5 Fix wrong hooked function, issue #25996 2020-04-08 07:28:34 +04:30
Christopher Allford 46f58faeca Updated the admin-cancelled-order plain template to match the rich one 2020-04-06 13:24:52 -07:00
Christopher Allford 999b933580 Bumped the version for the admin-cancelled-order template, missed in #25316 2020-04-06 12:37:10 -07:00
Claudio Sanches 4c889feb05
Merge pull request #25316 from michaelignacio/master
Update wording on admin cancelled order email
2020-03-31 17:20:25 -03:00
Rodrigo Primo 701f5bee3b Update template version after #25668 2020-03-06 09:46:40 -03:00
Rodrigo Primo 9a0ce76ee4
Merge pull request #25668 from douglas-johnson/fix/form-row-class-name
Fix Class Name In Login Form: Change -FormRow to -form-row
2020-03-06 09:45:51 -03:00
Douglas Johnson d927b70c56 change -FormRow to -form-row 2020-02-13 16:10:04 -05:00
Jacob Arriola acb9fd51e8 Fix coding standard errors 2020-02-11 11:59:16 -08:00
Jacob Arriola eea787e0e8 Allow heading filter for up sells component 2020-02-10 15:52:27 -08:00