{"id":38625,"date":"2015-09-09T15:51:40","date_gmt":"2015-09-09T15:51:40","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/soft79-wc-pricing-rules\/"},"modified":"2020-01-20T21:38:36","modified_gmt":"2020-01-20T21:38:36","slug":"soft79-wc-pricing-rules","status":"publish","type":"plugin","link":"https:\/\/gu.wordpress.org\/plugins\/soft79-wc-pricing-rules\/","author":13913939,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.3","stable_tag":"trunk","tested":"5.3.21","requires":"4.0.0","requires_php":"","requires_plugins":"","header_name":"SOFT79 Pricing Rules for Woocommerce","header_author":"Soft79","header_description":"","assets_banners_color":"","last_updated":"2020-01-20 21:38:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.soft79.nl","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":80,"downloads":6887,"num_ratings":6,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":6},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2.1","1.0.2.3","1.0.2.4","1.0.3.0","1.1.0","1.1.2","1.2.0","1.3.1","1.4.0","1.4.2","1.4.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1241684","resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1241684","resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1241684","resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Integrated to the edit product page","2":"Optionally displays the from-to price range on the category page.","3":"Optionally presents a table with available prices\/discounts to the customer."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[331,4394,286],"plugin_category":[45],"plugin_contributors":[80275],"plugin_business_model":[],"class_list":["post-38625","plugin","type-plugin","status-publish","hentry","plugin_tags-discount","plugin_tags-pricing","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-josk79","plugin_committers-josk79"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/soft79-wc-pricing-rules.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/soft79-wc-pricing-rules\/assets\/screenshot-1.png?rev=1241684","caption":"Integrated to the edit product page"},{"src":"https:\/\/ps.w.org\/soft79-wc-pricing-rules\/assets\/screenshot-2.png?rev=1241684","caption":"Optionally displays the from-to price range on the category page."},{"src":"https:\/\/ps.w.org\/soft79-wc-pricing-rules\/assets\/screenshot-3.png?rev=1241684","caption":"Optionally presents a table with available prices\/discounts to the customer."}],"raw_content":"<!--section=description-->\n<p>\"Pricing Rules for WooCommerce\" allows you to set bulk pricing rules to products. For example 5% off if customer buys 6 or more. 10% off if customer buys 12 or more.<\/p>\n\n<p>The prices will be presented to the customer on the product page in the form of a table.<\/p>\n\n<p>Features:<\/p>\n\n<p>Create pricing rules the easy way!<\/p>\n\n<ul>\n<li>Per-product bulk pricing<\/li>\n<li>Automatically presents a table with the available prices<\/li>\n<li>Bulk pricing rules for multiple products<\/li>\n<li>Bulk pricing rules for certain categories<\/li>\n<li>Bulk pricing rules for combinations of products<\/li>\n<li>Pricing rules based on customer roles<\/li>\n<li>Automatically presents a custom message to inform the customer about offers<\/li>\n<\/ul>\n\n<p>More information on <a href=\"http:\/\/www.soft79.nl\">www.soft79.nl<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin in the <code>\/wp-content\/plugins\/<\/code> directory, or automatically install it through the 'New Plugin' menu in WordPress<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Can I change the way the discounted price is displayed?<\/dt>\n<dd><p>You can use the filter <code>'soft79_wcpr_min_max_price_html' ( $new_price_html, $original_price_html, $product, $min_price, $max_price, $is_singular )<\/code><\/p>\n\n<p>The following will display 'From $ x.xx' on the catalog page (Notice that the setting Show min-max price range on category page must be checked):<\/p>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>add_filter ('soft79_wcpr_min_max_price_html', 'soft79_wcpr_min_max_price_html', 10, 6);\nfunction soft79_wcpr_min_max_price_html( $new_price_html, $original_price_html, $product, $min_price, $max_price, $is_singular ) {\n    if ( ! $is_singular ) {\n        return sprintf( __('From %s', 'your-text-domain'), wc_price( $product-&gt;get_display_price( $min_price ) ) );\n    }\n}\n    `<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.4.3<\/h4>\n\n<p><em>Release Date - 2020-01-20<\/em>\n* All PRO functionality is now included in the FREE version<\/p>\n\n<h4>1.4.2<\/h4>\n\n<p><em>Release Date - 2020-01-19<\/em>\n* FEATURE: WP-Multilang support\n* FIX: Display sale price if a discount applies to 1x quantity\n* FIX: PHP Notice about count() and bulk_rules<\/p>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>FIX: Not able to exclude categories on global product rules<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>FIX: Invalid discount calculated for tax exempt customers<\/li>\n<li>FIX: Product variation rules were not saved properly<\/li>\n<li>FIX: Javascript product variations<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>FEATURE: Customizable package price format<\/li>\n<li>FIX: Admin Javascript in combination with newest WooCommerce version<\/li>\n<li>INTERNAL: Created SOFT79_Bulk_Pricing_Admin::update_post_bulk_rules<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>INTERNAL: Filter 'soft79_wcpr_accounted_quantity' that allows overriding the amount of items that are taken in account for a discount.<\/li>\n<li>Removed 'sale price' logic for rules with a quantity of 1<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>FEATURE: Bulk pricing rules for product variations<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>FIX: Inject prices to cart items as soon as possible (fixes issue with coupon minimum spend).<\/li>\n<li>FIX: WPML Compatibility<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>FIX: Discount on variations in WC3.0+<\/li>\n<li>FIX: PHP Deprecation message in class-meta-box-bulk-rules.php<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>FIX: Removed debug messages \"Not for this product\/user\"<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>FIX: Product selector WooCommerce 3.0 Compatibility (Select2 v4)<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>FIX: WooCommerce 3.0 Compatibility<\/li>\n<li>FEATURE: Overrideable template for the single page discount information<\/li>\n<li>PERFORMANCE: Use cached query when retrieving product categories.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>FEATURE: filter 'soft79_wcpr_min_max_price_html' to allow customization of the displayed min-max price range<\/li>\n<li>FIX: Compatibility with PHP versions prior to 5.5<\/li>\n<li>FIX: Variable product support<\/li>\n<\/ul>\n\n<h4>1.0.3.0<\/h4>\n\n<ul>\n<li>FEATURE: Auto update price information when switching between product variants<\/li>\n<li>FIX: Removed some notices\/warnings<\/li>\n<\/ul>\n\n<h4>1.0.2.4<\/h4>\n\n<ul>\n<li>FIX: If multiple variants of the same product exist in the cart, the same price would be applied to all variants<\/li>\n<\/ul>\n\n<h4>1.0.2.3<\/h4>\n\n<ul>\n<li>FIX: Fatal error if WooCommerce was disabled<\/li>\n<li>FIX: Respect 'woocommerce_tax_display_shop' and 'woocommerce_tax_display_cart'<\/li>\n<li>FIX: Respect price suffix and excl \/ incl tax message in cart subtotal<\/li>\n<\/ul>\n\n<h4>1.0.2.1<\/h4>\n\n<ul>\n<li>FIX: Removed auto update code<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>FIX: Some PHP warnings were displayed on fresh installations.<\/li>\n<li>FIX: Tax calculation<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First public release<\/li>\n<\/ul>","raw_excerpt":"Easily create bulk prices or discounts in WooCommerce.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/38625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=38625"}],"author":[{"embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/josk79"}],"wp:attachment":[{"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=38625"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=38625"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=38625"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=38625"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=38625"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=38625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}