PluginProbe
Tiered Pricing Table for WooCommerce / 6.5.0
Tiered Pricing Table for WooCommerce v6.5.0
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
tier-pricing-table / src / Integrations / Plugins / MixMatch.php

MixMatch.php in Tiered Pricing Table for WooCommerce 6.5.0, at src/Integrations/Plugins/MixMatch.php

41 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Integrations\Plugins;
2
3 class MixMatch extends PluginIntegrationAbstract {
4
5 public function run() {
6 add_filter( 'tiered_pricing_table/cart/need_price_recalculation', function ( $bool, $cart_item ) {
7
8 if ( isset( $cart_item['mnm_container'] ) ) {
9 return false;
10 }
11
12 return $bool;
13
14 }, 10, 2 );
15 }
16
17 public function getIconURL(): string {
18 return $this->getContainer()->getFileManager()->locateAsset( 'admin/integrations/mix-match-icon.png' );
19 }
20
21 public function getAuthorURL(): string {
22 return 'https://woocommerce.com/products/woocommerce-mix-and-match-products/';
23 }
24
25 public function getTitle(): string {
26 return 'Mix&Match for WooCommerce';
27 }
28
29 public function getDescription(): string {
30 return __( 'Apply tiered pricing rules correctly to Mix and Match products.', 'tier-pricing-table' );
31 }
32
33 public function getSlug(): string {
34 return 'mix-match-for-woocommerce';
35 }
36
37 public function getIntegrationCategory(): string {
38 return 'custom_product_types';
39 }
40 }
41