Commit Graph

2331 Commits

Author SHA1 Message Date
Ron Rennick 4a8898dfbd restore $attachment_ids for product thumbnails template 2020-10-08 15:08:03 -03:00
Claudio Sanches 11a886a91a
Merge pull request #27845 from woocommerce/fix-string-capitalization
Revert string capitalization to the original version
2020-10-08 10:22:01 -03:00
Ron Rennick 577494796c
Merge pull request #27736 from woocommerce/fix/27681
Update taxonomy template file names to `-`
2020-10-07 15:23:11 -03:00
Ron Rennick 67a54b3aa3
Merge pull request #27289 from woocommerce/fix/27222
use first gallery image on single product when image not assigned
2020-10-07 15:06:30 -03:00
Rodrigo Primo b1a1984bdd Revert string capitalization to the original version
PR #25419 added a filter to change the value of the text in a button in
the cart-empty.php template. But it mistakenly changed the
capitalization of the string from 'Return to shop' to 'Return To Shop'.
This commit simply restores the string to its original version.
2020-10-02 08:41:25 -03:00
Ron Rennick bb6ded857d phpcs fixes 2020-09-21 13:34:14 -03:00
Ron Rennick 57fa6aff83 update taxonomy template names from `_` to `-` 2020-09-21 13:30:29 -03:00
Claudio Sanches 70c7adfeb7 Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
Nestor Soriano 70a1cb2f1f Revert improved filtering for variations.
This commit reverts the functionality introduced in PR #26260
(later refined by #27175, #27190, #27508) in which filtering by
attribute using the layered nav widget was improved to handle the
cases of variations out of stock. The revert is a response to the
numerous problems reported by users in Woo 4.4 and 4.5

Not all the code has been reverted, only the code that resulted in
visible functionality changes. Thus, the code that generates
term relationships for variations is still in place to keep database
consistency and to keep the reverting changes to the minimum needed.
2020-09-09 17:36:26 +02:00
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
Ron Rennick e49527cf9d apply changes from feedback 2020-08-28 11:34:32 -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
Ron Rennick 84d6d6c525 move image id logic to woocommerce_show_product_* 2020-08-12 15:31:27 -03:00
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
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