Commit Graph

2319 Commits

Author SHA1 Message Date
Rodrigo Primo 33a74f5f04 Update version in which woocommerce_return_to_shop_text was added 2020-09-05 11:43:43 -03:00
Aezaz Shaikh e7f474ef21
Add filter to change "Return to Shop" button text (#25419)
* Update cart-empty.php

Added filter to change "Return to Shop" button text

* Update cart-empty.php

* Escape HTML and add docblock

Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2020-09-05 11:37:29 -03:00
Kevin Hagerty 69758c38da
Define a background-color for the H1 in the header
To prevent the email client from setting something different.
2020-08-30 11:28:23 -04:00
Ron Rennick 38190e2dcd
Merge branch 'master' into patch-1 2020-08-28 15:26:56 -03:00
Ron Rennick 122de48325
Update template version 2020-08-28 15:25:26 -03:00
jonathansadowski 09176808c7
Revert "Fixed HTML entities in product name not showing correctly in cart pag…" 2020-08-24 14:44:20 -05:00
jonathansadowski 19eef38a39
Merge pull request #26897 from CHEWX/patch-1
[styling] - remove whitespace in a link
2020-08-14 13:38:29 -05: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
Tom Hopcraft e38b887812
[styling] - remove whitespace in a link 2020-06-30 11:40:13 +01: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 a804d0f408
Add docblock 2020-06-25 21:35:32 -03:00
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
Sandesh 414d4276ff
New after order details action added
'woocommerce_after_order_details' action is required to add extra data in table format after order details section
2020-04-29 13:31:38 +05:30
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