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
Mike Jolley
8d38401d64
[2.2] Product attribute shortcode should return columns class
...
Fixes #6481
2014-10-08 15:07:03 +01:00
Mike Jolley
1c9331737e
Minor tweaks to cart shortcode
2014-09-24 15:26:53 +01:00
Barry Kooij
94365791af
Changed all use of get_product to wc_get_product
2014-08-19 12:09:29 +02:00
Mike Jolley
63d0283ea3
More efficient #4632
2014-07-31 07:10:07 +01:00
Mike Jolley
54e7ce602f
Merge pull request #4632 from AdvancedStyle/master
...
Multiple categories in the product_category shortcode
2014-07-31 07:05:37 +01:00
Tamara Zuk
5dc1c8cf38
Remove ordering query args
...
If these are not removed right after use they will affect the remaining
queries on the page.
2014-06-09 04:15:46 -04:00
Rob Davarnia
368bd05677
Update class-wc-shortcodes.php
2014-02-28 13:50:50 -08:00
Rob Davarnia
e7ca60b2a2
Ability to add custom quantity using shortcode
2014-02-28 13:43:31 -08:00
Mike Jolley
00fc089abe
Hide empty categories in the product_categories shortcode Closes #4689
2014-02-11 15:55:46 +00:00
David Barnes
14a24377df
Multiple categories in the product_category shortcode
...
Add the ability to input multiple categories separated by a comma in the
[product_category] shortcode.
2014-02-05 08:55:55 +07:00