Commit Graph

95 Commits

Author SHA1 Message Date
Mike Jolley f9b2ed88c2 Merge branch 'pr/11883'
# Conflicts:
#	includes/class-wc-shortcodes.php
2016-09-12 14:53:04 +01:00
Mike Jolley 804178b6d1 [2.6] Remove empty ids.
Fixes #11887
2016-09-12 13:10:08 +01:00
Aristeides Stathopoulos 7a509f53d4 Merge pull request #4 from woothemes/master
sync
2016-09-09 03:17:28 +03:00
Aristeides Stathopoulos 734f284fa4 WordPress.PHP.YodaConditions.NotYoda 2016-09-08 01:32:24 +03:00
Iconic 2dbeabffe1 [actions] Pass $atts into do_action 2016-09-07 19:17:46 +01:00
Aristeides Stathopoulos 6ac7f03241 Generic.Formatting.DisallowMultipleStatements.SameLine 2016-09-02 06:40:52 +03:00
Aristeides Stathopoulos 82f3cc221e WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis 2016-08-27 07:23:02 +03:00
Aristeides Stathopoulos ec8a0b288b PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast 2016-08-27 05:08:49 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Mike Jolley fb585e9633 Add transient caching to product_loop
Closes #11708
2016-08-18 13:19:57 +01:00
James Kemp f39e338ca2 Add shortcode name param to shortcode_atts functions
Adding this allows plugin/theme authors to easily add additional attributes to the shortcodes using the "shortcode_atts_$shortcode" filter. Please consider!
2016-07-15 08:49:44 +01:00
Herb Miller fd3637c008 Correct short description for my_account 2016-07-02 13:52:18 +01:00
Claudio Sanches 411585e8c8 Updated the default sorting of product_category shortcode, closes #11295 2016-06-30 04:16:22 -03:00
Mike Jolley 6b619ecf82 Fix - SKUs prop on products shortcode.
Fixes #11135
2016-06-15 10:02:11 +01:00
Ibrahim 236cdb70c5 No impact code
* Global variable `$woocommerce_loop` should not be reset before starting the loop. 
* Only the `loop` index should be set to 0 which is done in `woocommerce_product_loop_start`. Hence `$woocommerce_loop['loop'] = ''` is invalid.
* `$woocommerce['columns']` which is incorrectly set as `column` , if reset will not display the `first` and `last` clases for display no. of columns.
2016-06-09 19:22:37 +05:30
Mike Jolley 93383668cb Fix: Use correct posts_per_page var in related_products shortcode 2016-06-08 10:39:31 +01:00
Mike Jolley f3762d9ed5 category support for sale_products shortcode 2016-04-20 12:27:20 +01:00
Mike Jolley 4a8573c9f0 Trigger action when no results are found in a shortcode
Used to add custom content.

Closes #10552
2016-03-14 12:11:51 +00:00
Mike Jolley 571956d57d Ignore catalog visibility on products shortcode when specifying ids and skus 2016-03-14 10:49:11 +00:00
Mike Jolley 73fdfe595a [2.5] Prevent shortcode errors when non product ID is provided
Fixes #10534
2016-03-11 12:53:50 +00: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 dcf81b3bbe [2.5] Un-needed ob_start 2016-02-01 15:12:44 +00:00
Caleb Burks e612dc4561 Check for a valid product ID/SKU 2016-01-07 04:07:02 -05:00
Reigel Gallarde f8dd887001 Update class-wc-shortcodes.php
adding $loop_name to woocommerce_shortcode_products_query filter.. so that we have a way to add a filter to a specific shortcode that uses product_loop.
2015-12-18 13:43:03 +09:00
Claudio Sanches 5f46968f8c Hide style attribute add_to_cart shortcode when is empty
closes #9694
2015-11-25 12:26:58 -02:00
Nicola Mustone c9da4f928a check if ABSPATH is defined 2015-11-06 10:22:19 +01: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
Shiva Poudel 3763c416a9 Docblock for related products 2015-10-09 07:38:15 +05:45
Nicola Mustone ffc941fcb1 rebase shortcakes category 2015-09-16 09:26:30 +02:00
Nicola Mustone cc3962cddb wrong per_page attribute 2015-09-11 10:53:26 +02:00
Ibrahim 6b60616ed3 Update class-wc-shortcodes.php
`ob_start` is used which is not required.
2015-08-26 12:08:17 +05:30
Mike Jolley faa8ab02e0 * Fix - ordering_args in product_category shortcode. 2015-08-11 12:04:30 +01:00
Claudio Sanches 8d2a98eab1 Improved some docblocks 2015-07-16 16:29:01 -03:00
Claudio Sanches 166ec607c0 Escape columns 2015-06-01 13:08:33 +01:00
James Koster 6389e5defa related products / upsets. closes #7873 2015-05-19 13:07:00 -04:00
Mike Jolley 0a25580f15 Generic product loop method for shortcodes
#7260
2015-04-13 12:48:40 +01:00
Mike Jolley 36dc8b0eb8 Merge pull request #7136 from roykho/product-shortcode
allow product_page shortcode to accept variation skus and pre-selected o...
2015-03-18 11:17:30 +00:00
Nick Ivanter a1c9bac225 Allow custom CSS classes to be specified for [product] shortcode
This change allows custom CSS classes to be added to the output generated by the [product] shortcode. This is useful, for instance, when embedding a product into a regular post as an advertisement. With custom CSS classes, you can style it to be left or right aligned, floating, etc.
2015-02-24 23:32:35 +03:00
Piotr Szczygiel ac7348d69d added 'before' hook as well 2015-02-20 21:32:13 +01:00
Piotr Szczygiel d7d9395476 Added action hook into product_category shortcode 2015-02-19 21:43:46 +01:00
Mike Jolley 334ee4c108 Fix - [products] ids and sku args.
Closes #7365
2015-02-11 17:21:53 +00:00
Mike Jolley 0939cf0e01 Fix product cats notice Closes #7298 2015-02-05 11:36:33 +00:00
Mike Jolley 5bb4b7739f Fix IDS param Closes #7288 2015-02-04 12:44:30 +00:00
splashingpixels 0b53ceef7a sanitize user inputs 2015-01-19 09:07:57 -08:00
splashingpixels 3c625f1ad4 support for multiple shortcode on same page when using variation skus 2015-01-19 08:54:28 -08:00
splashingpixels 017e93241e allow product_page shortcode to accept variation skus and pre-selected on page load ref #5866 2015-01-16 21:01:05 -08:00
Claudio Sanches 389a829474 Fixed meta_query for shortcodes, closes #6960 2014-12-21 13:31:27 -02:00
claudiosmweb 15996a1dee Created the wc_get_product_id_by_sku() function 2014-11-27 10:31:56 -02:00
claudiosmweb b4e544e5dc Fixed coding styles and docblocks 2014-11-20 00:14:06 -02:00