{"id":71967,"date":"2017-07-30T22:21:30","date_gmt":"2017-07-30T22:21:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/woocommerce-product-shortcodes\/"},"modified":"2020-06-27T13:27:31","modified_gmt":"2020-06-27T13:27:31","slug":"woo-product-shortcodes","status":"closed","type":"plugin","link":"https:\/\/ru.wordpress.org\/plugins\/woo-product-shortcodes\/","author":20110760,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2","stable_tag":"2.2","tested":"5.3.21","requires":"4.3","requires_php":"","requires_plugins":"","header_name":"Woo Product Shortcodes (Free)","header_author":"The WP Makers","header_description":"Add a product shortcode to show price, sku & more instead of using static text.","assets_banners_color":"d3c6d1","last_updated":"2020-06-27 13:27:31","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.thewpmakers.com\/woo-product-shortcodes-free\/","header_author_uri":"https:\/\/www.thewpmakers.com","rating":4.7,"author_block_rating":0,"active_installs":300,"downloads":11421,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"1.0":"<p>New.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"2"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1705355","resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1705355","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1705355","resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1705355","resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"<p>This screen shot shows the setup of the shortcode which could be used\nscreenshot-1.png<\/p>","2":"<p>This screen shot shows the output of the shortcode\nscreenshot-2.png<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[746,357,288],"plugin_category":[44,54],"plugin_contributors":[144515],"plugin_business_model":[],"class_list":["post-71967","plugin","type-plugin","status-closed","hentry","plugin_tags-product","plugin_tags-shortcodes","plugin_tags-woo-commerce","plugin_category-discussion-and-community","plugin_category-security-and-spam-protection","plugin_contributors-escitsupport","plugin_committers-escitsupport","plugin_committers-thewpmakers","plugin_support_reps-thewpmakers"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/woo-product-shortcodes_d3c6d1.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/woo-product-shortcodes\/assets\/screenshot-1.png?rev=1705355","caption":"<p>This screen shot shows the setup of the shortcode which could be used\nscreenshot-1.png<\/p>"},{"src":"https:\/\/ps.w.org\/woo-product-shortcodes\/assets\/screenshot-2.png?rev=1705355","caption":"<p>This screen shot shows the output of the shortcode\nscreenshot-2.png<\/p>"}],"raw_content":"<!--section=description-->\n<p>Sometimes you refer to a product in a post, page or on your homepage with reference to a price, product name or SKU.\nWith this plugin, you can replace the static text with a shortcode so the values are pulled dynamically from your woocommerce store.\nEspecially useful when referring to the price as this can change regularly leaving old static text out of date.<\/p>\n\n<p>To get started, use the shortcode to show the price:\n[woo-product-shortcodes id=\"20\" data_attribute=\"price\"]<\/p>\n\n<p>Use can use data_attributes for \"name\", \"short_description\", \"sku\", \"price\", \"regular_price\", \"sale_price\" and more. See FAQ for details.<\/p>\n\n<h3>FAQ \/\/ Frequently Asked Questions<\/h3>\n\n<h4>What shortcode do I use?<\/h4>\n\n<p>[woo-product-shortcodes id=\"20\" data_attribute=\u201cprice\u201d]<\/p>\n\n<p>There are two variables to the shortcode:\n1) id = the product id from the woocommerce shop\n2) data_attribute = this defined what text will be shown - see below for possible options<\/p>\n\n<h4>What data attributes can I use?<\/h4>\n\n<p>data_attribute=\"name\"\nThis will show the name of the product<\/p>\n\n<p>data_attribute=\"short_description\"\nThis will show the short description of the product<\/p>\n\n<p>data_attribute=\"sku\"\nThis will show the SKU of the product<\/p>\n\n<p>data_attribute=\"price\"\nThis will show the price of the product. If the product is on sale, then the sale price will be shown automatically.<\/p>\n\n<p>data_attribute=\"regular_price\"\nThis will show the regular price of the product<\/p>\n\n<p>data_attribute=\"sale_price\"\nThis will show the sale price of the product<\/p>\n\n<h3>Error Codes<\/h3>\n\n<h4>ERR001: No valid attribute defined.<\/h4>\n\n<p>REASON: This is triggered when you have not defined which data_attribute to return and show on the page\/post.\nFIX: Add the data_attribute variable to the shortcode with a permitted value<\/p>\n\n<h4>ERR002: Invalid data_attribute defined.<\/h4>\n\n<p>REASON: This is triggered when you have defined data_attribute but its not a permitted value\nFIX: Read the list of permitted data_attribute options from FAQ and update your shortcode with a correct data_attribute<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/plugin-name<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Use our easy shortcode builder at TOOLS &gt; WOO PRODUCT SHORTCODES<\/li>\n<li>On a page or post, add the shortcode to show product information. See below in FAQ for shortcode examples.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.2<\/h4>\n\n<ul>\n<li>Minor changes post internal review<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Complete change to logic post WooCommerce upgrade<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Updates to images and tags<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release version<\/li>\n<\/ul>","raw_excerpt":"Instead of using static content for product names, prices or SKU - use a shortcode instead to save changing the text again.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/71967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=71967"}],"author":[{"embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thewpmakers"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=71967"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=71967"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=71967"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=71967"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=71967"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=71967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}