Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Gregory Karpinsky
42bc3d3bf3
Update class-wc-shortcode-products.php
...
Spelling in a comment
2020-05-31 08:27:14 -04:00
Matt Gibbs
f57f1c6293
Requested commenting & hook tweaks
2020-02-05 13:08:40 -05:00
Matt Gibbs
e4e0755bbc
Adds a `woocommerce_shortcode_products_query_results` hook
...
This hook makes it easier to grab a shortcode's results (product IDs, pager data)
2020-02-04 15:01:56 -05:00
Claudio Sanches
0d1d0d6653
Fixed coding standards
2019-12-06 11:18:13 -03:00
Khokan Sardar
51252a6f8e
Fixed issue #24575 ( #24586 )
...
* Fixed issue #24575
* Fixed implementation for #24575
2019-12-05 21:23:40 -03:00
Christopher Allford
91877b8f42
Revert "Changed the default sorting for the products shortcode to "menu_order""
...
This reverts commit 4a8645c9b4
.
2019-12-03 09:54:23 -08:00
Christopher Allford
a0c4d54b4a
Updated NonceVerification code sniff suppressions
...
The suppressions come in two flavors, a warning and an error. The suppressions have been updated to respect those states accordingly.
2019-11-21 09:19:56 -08:00
Christopher Allford
4a8645c9b4
Changed the default sorting for the products shortcode to "menu_order"
...
In order to take advantage of the "Sorting" admin feature, we need to make use of the menu order sorting. Initially we were using the title, which would ignore whatever the user set.
2019-11-20 09:19:54 -08:00
Christopher Allford
b12574e9e4
Fixed code sniffs
2019-11-20 08:16:19 -08:00
alerobertson
b7ab7b81c9
Add tag_operator to products shortcode
...
Allow user to decide how products are filtered by tag, instead of defaulting to IN
2019-07-09 13:06:35 -04:00
Claudio Sanches
cb12b30c85
Fixed @since tag version
2019-07-02 12:51:36 -03:00
Claudio Sanches
a2301dc0cb
Removed deprecated PHPCS flags
2019-05-20 17:06:41 -03:00
Claudio Sanches
5eaf71b483
Fixed coding standards
2019-05-20 17:04:24 -03:00
Claudio Sanches
cc6d7996fd
Restored WC_Shortcode_Products::order_by_rating_post_clauses
2019-05-20 16:57:14 -03:00
Ibrahim
0db84aec56
Fixes #23756
2019-05-18 21:04:13 +05:30
Mike Jolley
452bb5b5e7
Include version within transient
2019-01-21 12:31:48 +00:00
Gerhard
aa6a6f2b10
Refine numeric slug checking when using the products shortcode for attributes and categories.
2018-10-15 13:22:12 +02:00
Gerhard
48de1f6b97
Accommodate numeric slugs in the product shortcode attribute and category fields.
2018-10-15 12:49:56 +02:00
Gerhard Potgieter
a250b0044f
Add support for order as well to the shortcode
2018-08-08 13:44:47 +02:00
Gerhard Potgieter
2596796de3
Allow usage of orderby sorting via GET params when using the shortcode.
2018-08-08 11:05:27 +02:00
Peter Fabian
082c1dfaf3
Excluded children categories from WP_Query in product shortcode if cat_operator=AND.
2018-05-24 16:12:48 +01:00
Mike Jolley
b357aa3e0f
Prime post caches in shortcodes to reduce queries.
2018-05-01 12:31:17 +01:00
Mike Jolley
d099aae4ec
Fix test and default
2018-03-19 13:05:43 +00:00
Mike Jolley
1c9143546f
Use wc_get_default_products_per_row as the default for product shortcodes
...
Closes #19408
Will apply if no fixed columns are provided via the shortcode args.
2018-03-15 11:16:34 +00:00
Claudio Sanches
92c4ea7a49
Fixed class-wc-shortcode-products.php PHPCS violations
2018-03-09 12:55:37 -03:00
claudiulodro
8cf36aa0d2
New shortcode features for products block
2018-03-01 10:05:22 -08:00
Mike Jolley
f56e40363b
If using get_catalog_ordering_args. remove the args when finsihed
2018-02-08 13:59:03 +00:00
Mike Jolley
2ed9691c14
Fix shop on homepage with unsupported themes
2018-02-01 11:15:46 +00:00
Mike Jolley
5d11f660fe
Fire hooks for pagination etc only when pagination is enabled
2018-01-31 21:46:52 +00:00
Mike Jolley
4378bd6df1
Enforce columns in shortcodes
2018-01-26 15:15:06 +00:00
claudiulodro
4d370309be
Change transient name
2018-01-08 13:09:50 -08:00
Mike Jolley
1f2011e8de
Tweak query args
2017-12-06 19:03:14 +00:00
Mike Jolley
119ee7f27c
Use new loop functions
2017-12-06 18:10:44 +00:00
Mike Jolley
07792a253b
Correct variable name
2017-12-06 15:54:40 +00:00
Mike Jolley
8dcffa660e
Normalise get_query_results names and add new param for pagination
2017-12-06 13:13:43 +00:00
claudiulodro
aab65923c1
Refactor for better style
2017-12-05 10:45:08 -08:00
claudiulodro
73bfc1444b
Fix weird bracket
2017-12-05 08:42:50 -08:00
claudiulodro
813024c654
line up array
2017-12-05 08:42:04 -08:00
claudiulodro
fec60ab2ea
Fix product shortcode pagination
2017-12-05 08:31:50 -08:00
claudiulodro
d60456cc73
Resolve conflicts and bring up to date with master
2017-12-04 13:56:59 -08:00
claudiulodro
22031c5b56
Tag support in shortcode
2017-11-30 13:43:32 -08:00
Claudio Sanches
48132a9dbf
Fixed coding standards
2017-11-23 16:43:54 -02:00
Claudio Sanches
e40138d188
Updated $GLOBALS['post'] data in products shortcode
...
No need to pass it as reference.
And passing by reference is breaking Divi's page builder.
2017-11-23 16:40:59 -02:00
Claudio Sanches
b4347f4071
Restore global $GLOBALS['post'] after render products shortcode
...
Closes #17769
2017-11-17 18:38:30 -02:00
Claudio Sanches
01983e6b96
Query and save only IDs of products when fetching products by shortcode
2017-11-16 15:14:36 -02:00
Mike Jolley
3bf47d7d97
Fixed tests
2017-11-10 17:45:01 +00:00
Mike Jolley
155f8ed187
paginate
2017-11-09 13:44:24 +00:00
Mike Jolley
22bb92132e
Ordering
2017-11-09 13:43:15 +00:00
Mike Jolley
e18f2d491c
Apply filters to shortcode output
2017-11-09 11:24:44 +00:00