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
Mike Jolley
c0b9491b1e
Pass product objects to wc_get_product_class to avoid reloading the product object
2019-01-30 16:02:09 +00:00
Claudio Sanches
1e58c3f2a0
Replaced post_class() to wc_product_class()
2018-04-06 14:03:38 -03:00
dixitadusara
fe87815d8d
fixes added issue-14020
2017-04-06 15:44:22 +05:30
Claudio Sanches
14eeee15ee
Welcome to docs.woocommerce.com
2016-07-19 07:30:31 -03:00
Mike Jolley
dafecee6ae
Dev - content-product.php and content-product_cat.php contained the wrong version.
...
Closes #11146
2016-06-16 00:14:16 +01:00
Claudio Sanches
e39274e753
HTTPS for everybody
2016-05-26 22:48:49 -03:00
Mike Jolley
a778c0b234
Give loops names, and set class outside of template files
...
Closes #10028
2016-02-12 13:32:58 +00:00
Mike Jolley
bd4c90dbec
Docblocks
...
Fixes #10336
2016-02-12 11:28:44 +00:00
mitogh
4d86d8a6ad
Add strict comparission on another templates
2015-11-14 20:35:00 -06:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Caleb Burks
ee2757c08f
Specific template override paths
2015-10-03 02:58:08 -05:00
Mike Jolley
de4a80f950
Add disclaimer to template files
...
Closes #8942
2015-10-01 16:07:35 +02:00
James Koster
02ddb7fc4d
product archive anchors are now hooked into templates rather than hard coded. #8575
2015-10-01 14:49:40 +01:00
Claudio Sanches
f0b3d2fd9b
Code tweaks for #8620
2015-07-20 14:36:12 -03:00
Jodi Warren
2fb5f5bf78
Change product title to a hooked function. Fixes #8601
2015-07-20 18:10:56 +01:00
Claudio Sanches
b2a612dba2
[2.3] Revert some changes from a65616c
2015-05-29 12:27:38 -03:00
Claudio Sanches
b06428a63a
Updated some templates versions to 2.4.0
2015-05-21 14:26:15 -03:00
Claudio Sanches
e559452c28
[2.3] Escape product titles, closes #8197
2015-05-21 14:20:37 -03:00
Rhys
981883d7a4
Added DocBlock to woocommerce_after_shop_loop_item documenting the hooked functions added to it.
2014-10-21 11:54:34 +01:00
shivapoudel
fbf0314bb6
Absolute path should have curly braces - part 1
2014-09-22 22:16:03 +05:45
Mike Jolley
b774e84e29
Revert "Replaced templates functions"
...
This reverts commit 4ce301a080
.
2013-11-25 14:16:26 +00:00
Mike Jolley
4ce301a080
Replaced templates functions
2013-11-25 14:01:37 +00:00
Mike Jolley
004e556e18
Check product var is set
2013-10-16 10:52:35 +01:00
claudiosmweb
92b8dc48fa
fixed indentation
2013-08-25 16:04:16 -03:00
claudiosmweb
78504f5373
update inline documentation in content-product.php and content-single-product.php
2013-08-25 16:02:44 -03:00
Geert De Deckere
28b0a5ba60
Moving custom product classes to the post_class filter
2013-01-09 15:15:25 +01:00
James Koster
38e2d622ee
changed class to avoid conflicts
2013-01-09 10:43:01 +00:00
Mike Jolley
339a506112
Merge pull request #2146 from GeertDD/visibilty
...
Spelling fix for "visibilty"
2013-01-04 18:16:19 -08:00
Geert De Deckere
f4bddb0bbc
Add CSS class to featured products and products on sale
2013-01-04 17:02:29 +01:00
Geert De Deckere
f684304ed3
Use post_class() in product loop
2013-01-04 16:53:43 +01:00
Geert De Deckere
86abb2a7c8
Spelling fix for "visibilty"
2013-01-04 16:30:31 +01:00
Steve Wicks
a1b0c2522f
loop_shop_columns filter to support one column products
2012-12-05 06:31:19 +00:00
Coen Jacobs
943091d2ca
[3.1.4] Prevent direct access to files #1575
2012-10-15 12:57:58 +02:00
kingbt
8f9f7b4dac
Update templates/content-product.php
...
Save some output space?
2012-08-29 21:08:45 +03:00
Mike Jolley
ef7ec98f2e
templates
2012-08-14 23:43:54 +01:00
Mike Jolley
fac3756e65
killed query posts
2012-07-11 15:13:11 +01:00
Mike Jolley
c846906064
loops template rewrite
2012-07-11 13:50:28 +01:00
Mike Jolley
12dc3c033f
Template changes - for coen approval
2012-07-11 11:23:31 +01:00