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
Mike Jolley
211658a8f4
Fix woocommerce_reset_loop Closes #4443
2014-01-08 13:23:40 +00:00
claudiosmweb
cf756af1d5
fixed some coding standards
2013-12-29 11:54:55 -02:00
claudiosmweb
248e46c8f7
Fixed the indentation in the includes/class-wc-shortcodes.php file
2013-12-29 11:41:48 -02:00
claudiosmweb
37aa0fb53b
fixed the posts_clauses filters in top_rated_products method of the WC_Shortcodes class
2013-12-29 11:40:43 -02:00
Coen Jacobs
1cb8aa1724
Code styling fixes and return values for #4244
2013-11-29 10:15:58 +01:00
Gregory K
43ca01badc
PhpDocs and TODO comments
2013-11-28 12:59:09 -05:00
Mike Jolley
417651d579
Check for valid post type/products when setting up data
2013-11-27 16:03:54 +00:00
Coen Jacobs
19688ad9ef
Fixed several @return void clauses. There are more. No code changes in this commit, only PhpDocs
...
Closes #4216
2013-11-27 10:03:47 +01:00
Coen Jacobs
4afbd0b556
Merge branch 'function-call-refactor'
...
Conflicts:
includes/admin/post-types/meta-boxes/class-wc-meta-box-order-data.php
includes/shortcodes/class-wc-shortcode-cart.php
includes/wc-template-functions.php
2013-11-25 15:42:26 +01:00
Mike Jolley
b774e84e29
Revert "Replaced templates functions"
...
This reverts commit 4ce301a080
.
2013-11-25 14:16:26 +00:00
Mike Jolley
3408965b8a
Product functions
2013-11-25 14:01:38 +00:00
Mike Jolley
4ce301a080
Replaced templates functions
2013-11-25 14:01:37 +00:00
Coen Jacobs
aaa14894ca
Core functions woocommerce to wc refactor
2013-11-25 13:45:04 +01:00
Scott Basgaard
922fa990a5
esc_attr() all the things.
2013-11-20 20:11:59 +01:00
Coen Jacobs
e41687ba4f
Merge pull request #4138 from woothemes/api-implementation
...
API implementation merge to master
2013-11-19 00:53:11 -08:00
Mike Jolley
d78b4287bf
shortcode_atts and show price - closes #4122
2013-11-18 14:37:27 +00:00
Coen Jacobs
90008d7143
Merge remote-tracking branch 'thenbrent/new_notice_api'
...
Conflicts:
includes/shortcodes/class-wc-shortcode-cart.php
includes/wc-message-functions.php
woocommerce-ajax.php
2013-11-18 12:44:22 +01:00
thenbrent
2fcd615f88
Update calls to wc_print_messages() function
...
Part of #4034
2013-11-12 20:59:40 -08:00
thenbrent
e63021a2ca
Fix "non-static method called statically" notice
2013-11-03 16:54:07 -08:00
Max Rice
a0ddef247d
Fix strict standards warning
2013-11-02 18:12:50 -04:00
Mike Jolley
8ce3b8dd57
Filters for shortcode tags
2013-10-23 14:55:18 +01:00
Mike Jolley
1b1332d278
Static shortcodes. Will allow plugins to add some alias with same methods.
2013-10-23 12:55:40 +01:00
Mike Jolley
d27f8f4848
Wrap messages with WC div so they are styled
2013-10-17 15:29:53 +01:00
Mike Jolley
35ec4c9169
Sale products
2013-10-16 17:05:27 +01:00
Mike Jolley
77be2fc719
Don't need reset_postdata. Closes #3822 .
...
.15 @coenjacobs I think
2013-09-26 15:11:28 +01:00
Mike Jolley
ef49977905
add_to_cart_url add_to_cart_text and single_add_to_cart_text class methods allowing greater control with custom classes.
...
Closes #3484 and Closes #3143 . Pinging @thenbrent as the handler was
originally his idea and I've killed it.
@helgatheviking In 2.1, add to cart URLs will only be used in loops, so
conditonal logic should no longer be neccessary. Single templates post
to themselves without the need for the URL.
2013-09-25 12:35:06 +01:00
Mike Jolley
355dd16962
Removed @coenjacobs helpers and cleaned up main clas
2013-09-12 14:41:02 +01:00
James Koster
55eef35e36
shortcode columns. closes #3534
2013-08-19 15:12:20 +01:00
Mike Jolley
9c55bb2b10
Accept multiple filters Closes #3572
2013-08-17 01:09:22 +01:00
Matt
776f1eb7db
Filter on the shortcode products query
2013-08-13 08:08:41 -04:00
Mike Jolley
57157db9bf
Function refactoring.
2013-08-09 17:11:21 +01:00
Mike Jolley
1b9562ca3b
operator option. Closes #3528
2013-07-30 15:03:39 +01:00
Mike Jolley
725cb7714b
More endpoints for myaccount pages, and endpoint options so they can be modified. Closes #3170 .
2013-07-23 17:05:01 +01:00
Mike Jolley
646a8a008c
Make use of new functions
2013-06-11 15:59:54 +01:00
Mike Jolley
c75ea04c1c
classes -> includes
2013-06-11 14:25:30 +01:00