{"id":157973,"date":"2022-05-28T10:10:01","date_gmt":"2022-05-28T10:10:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wc-omnibus\/"},"modified":"2022-06-07T16:36:09","modified_gmt":"2022-06-07T16:36:09","slug":"wc-omnibus","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wc-omnibus\/","author":17121741,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"6.0.12","requires":"5.2","requires_php":"7.2","requires_plugins":"","header_name":"Ecom WC Omnibus","header_author":"Rasmus Jaakonm\u00e4ki, Sakri Koskimies","header_description":"A simple way to make sure your website complies with the EU Omnibus Directive.","assets_banners_color":"15547b","last_updated":"2022-06-07 16:36:09","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/lense.fi","rating":0,"author_block_rating":0,"active_installs":10,"downloads":828,"num_ratings":0,"support_threads":1,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"saggre","date":"2022-05-28 10:19:58"},"1.0.1":{"tag":"1.0.1","author":"saggre","date":"2022-06-07 16:36:09"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2733056,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2733056,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2733056,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2733056,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2733056,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2733056,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2733056,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2733056,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2733056,"resolution":"5","location":"assets","locale":""}},"screenshots":{"1":"WC Omnibus settings page","2":"Simple product edit page with omnibus price and date set","3":"Variable product edit page with omnibus price set and no date","4":"Simple product page with omnibus price and date","5":"Variable product page with omnibus price and no date"}},"plugin_section":[],"plugin_tags":[210749,395,131785,209978,286],"plugin_category":[45],"plugin_contributors":[210750,210751],"plugin_business_model":[],"class_list":["post-157973","plugin","type-plugin","status-closed","hentry","plugin_tags-directive","plugin_tags-eu","plugin_tags-gdpr","plugin_tags-omnibus","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-rasmusjaa","plugin_contributors-saggre","plugin_committers-rasmusjaa","plugin_committers-saggre"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wc-omnibus_15547b.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wc-omnibus\/assets\/screenshot-1.png?rev=2733056","caption":"WC Omnibus settings page"},{"src":"https:\/\/ps.w.org\/wc-omnibus\/assets\/screenshot-2.png?rev=2733056","caption":"Simple product edit page with omnibus price and date set"},{"src":"https:\/\/ps.w.org\/wc-omnibus\/assets\/screenshot-3.png?rev=2733056","caption":"Variable product edit page with omnibus price set and no date"},{"src":"https:\/\/ps.w.org\/wc-omnibus\/assets\/screenshot-4.png?rev=2733056","caption":"Simple product page with omnibus price and date"},{"src":"https:\/\/ps.w.org\/wc-omnibus\/assets\/screenshot-5.png?rev=2733056","caption":"Variable product page with omnibus price and no date"}],"raw_content":"<!--section=description-->\n<p>WC Omnibus allows you to set a custom omnibus price and date for WooCommerce products and variable products and show it on the product page when the product is on sale.<\/p>\n\n<h3>Shortcodes<\/h3>\n\n<pre><code>[ecom_wc_omnibus_price]\n<\/code><\/pre>\n\n<p>Accepted parameters:\ntype: \"simple\" | \"variable\"\nFor example:<\/p>\n\n<pre><code>[ecom_wc_omnibus_price type=\"variable\"]\n<\/code><\/pre>\n\n<p>Show the omnibus price for current product page. Automatically determines if page is for a variable product, unless specified with type attribute. On variable product page the omnibus price for the variation is shown when the variation is selected.<\/p>\n\n<h3>Global functions<\/h3>\n\n<pre><code>ecom_omnibus_price();\n<\/code><\/pre>\n\n<p>Adds omnibus price for a single product. Adds nothing if on variable product page.<\/p>\n\n<pre><code>ecom_omnibus_single_variation_price();\n<\/code><\/pre>\n\n<p>Adds omnibus price for a variable product. Adds an empty tag if not on a variable product page. The omnibus price for the variation is shown when the variation is selected.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>ecom-wc-omnibus<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>On product edit page add omnibus price and date (optional) for products. This is price is shown for products that are on sale. The price be the lowest price that the product was sold for within 30 days before the sale.<\/li>\n<li>Options page is \/wp-admin\/admin.php?page=ecom-settings and you can enable showing the omnibus price for sale products on front end (default on), enable a warning on product edit page if the product is on sale without omnibus price (default on) and select hooks where the omnibus price is sold on front end (separate for single and variable products)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='when%20is%20the%20omnibus%20price%20shown%3F'><h3>When is the omnibus price shown?<\/h3><\/dt>\n<dd><p>When the product or a variable has a sale price and an omnibus price.<\/p><\/dd>\n<dt id='what%20is%20the%20omnibus%20date%20used%20for%3F'><h3>What is the omnibus date used for?<\/h3><\/dt>\n<dd><p>It is optional and for your convenience and for the customer to see. You can set the date there when making changes and check that the date is 30 days before the sale started. The customer can also see when the lowest price before the sale was offered.<\/p><\/dd>\n<dt id='can%20the%20plugin%20fetch%20the%20lowest%20price%20from%20last%2030%20days%20automatically%3F'><h3>Can the plugin fetch the lowest price from last 30 days automatically?<\/h3><\/dt>\n<dd><p>Not at the moment, but automatic price change log for last 30 days and option to use lowest price automatically is being planned for future release.<\/p><\/dd>\n<dt id='how%20do%20i%20translate%20the%20omnibus%20notification%20to%20my%20language%3F'><h3>How do I translate the omnibus notification to my language?<\/h3><\/dt>\n<dd><p>Install a string translation plugin like Loco Translate or WPML and edit the plugin's translations.<\/p><\/dd>\n<dt id='how%20do%20i%20change%20the%20displayed%20date%20format%3F'><h3>How do I change the displayed date format?<\/h3><\/dt>\n<dd><p>Option 1: Use the date format option in WordPress general settings.<\/p>\n\n<p>Option 2: If you only want to change the date format for the omnibus price, you can use the following filter:<\/p>\n\n<pre><code>add_filter( 'ecom_wc_omnibus_date_format', fn( $format ) =&gt; 'Y-m-d' );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<p>6.6.2022\n* Use WordPress date format for omnibus price date\n* Add shortcodes for showing omnibus price on custom product pages and templates\n* Add support for multiple omnibus hooks for single and variable products\n* Misc code quality fixes and more documentation<\/p>\n\n<h4>1.0.0<\/h4>\n\n<p>27.5.2022\n* First version of the plugin ready<\/p>","raw_excerpt":"Set and display the lowest price within 30 days before the sale for a product that is on sale, as requested by the Omnibus Directive.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/157973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=157973"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/saggre"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=157973"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=157973"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=157973"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=157973"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=157973"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=157973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}