Commit Graph

55 Commits

Author SHA1 Message Date
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
Mike Jolley a0e2e59f9b Orderby support 2017-11-08 18:09:39 +00:00
Mike Jolley 6ff17436dc Support rows attribute 2017-11-08 16:45:48 +00:00
Mike Jolley f10040eca3 Add pagination support to products shortcode 2017-11-08 16:39:40 +00:00
Mike Jolley 01730cdc4f Add method to generate transient name 2017-10-31 12:58:36 +00:00
Mike Jolley 90f227da69 Shortcode rand sorting 2017-09-06 14:36:14 +01:00
Claudio Sanches a2d0069e2f Fixed docblocks and conditionals 2017-08-30 19:30:46 -03:00
Claudio Sanches 3d3f570746 Reduced number of conditionals in WC_Shortcode_Products class 2017-08-30 18:18:15 -03:00
Claudio Sanches 6dc58b4f6a Allow select visibility in product shortcodes
Ref #15979
2017-08-29 18:29:29 -03:00
Claudio Sanches acad44e3c9 Auto map legacy attributes to the new ones 2017-08-28 17:45:56 -03:00
Claudio Sanches 8115886433 Improved WC_Shortcode_Products possible attributes names 2017-08-28 17:27:35 -03:00
Claudio Sanches b6f789fc56 Improved WC_Shortcode_Products code 2017-08-25 19:39:43 -03:00
Claudio Sanches b032a82381 Fixed coding standards 2017-08-25 19:25:19 -03:00
Claudio Sanches 32ea76f09f Render product_attribute shortcode results with WC_Shortcode_Products 2017-08-25 19:07:10 -03:00
Claudio Sanches ddeea547b1 Use WC_Shortcode_Products inside featured_products shortcode 2017-08-25 18:42:02 -03:00
Claudio Sanches 72df581c6f Use WC_Shortcode_Products inside top_rated_products shortcode 2017-08-25 15:55:34 -03:00
Claudio Sanches c0da59d75a Use WC_Shortcode_Products inside best_selling_products shortcode 2017-08-25 11:46:47 -03:00
Claudio Sanches 3dabdda480 Apply WC_Shortcode_Products class into sale_products shortcode 2017-08-25 11:00:48 -03:00
Claudio Sanches 0cea847c63 Renamed $loop_name to $type 2017-08-24 22:22:42 -03:00
Claudio Sanches d7bea55aae Use WC_Shortcode_Products to render product shortcode results 2017-08-24 22:16:42 -03:00
Claudio Sanches 71019aadfe Moved woocommerce_shortcode_products_query filter to parse_query_args 2017-08-24 21:24:51 -03:00
Claudio Sanches 461066d2b1 Allow query products by category on products shortcode 2017-08-24 21:24:05 -03:00
Claudio Sanches 429aecd400 Allow set loop name 2017-08-24 20:20:14 -03:00
Claudio Sanches a398e4893c Fixed static method and added default value for construct method 2017-08-24 20:11:18 -03:00