Commit Graph

60 Commits

Author SHA1 Message Date
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