PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
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
← All changes | views/frontend/summary-table.php +18 -13 2.3.3 → 8.0.2 View file →
@@ -1,27 +1,32 @@
1 1 <?php
2 -/**
3 - * Summary table
4 - *
5 - * @var string $title
6 - * @var string $totalLabel
7 - * @var string $eachLabel
8 - */
9 -
2 + /**
3 + * Summary table
4 + *
5 + * @var int $productId
6 + * @var string $title
7 + * @var string $totalLabel
8 + * @var string $eachLabel
9 + * @var string $showNonTiered
10 + */
11 +
10 12 if ( ! defined( 'WPINC' ) ) {
11 13 die;
12 14 }
15 +
16 + do_action( 'tiered_pricing_table/product_page/before_table_summary', $totalLabel, $eachLabel );
13 17
14 -do_action( 'tier_pricing_table/product_page/before_table_summary', $totalLabel, $eachLabel );
15 -
16 18 ?>
17 19 <div class="clear"></div>
18 -<div class="tier-pricing-summary-table tier-pricing-summary-table--hidden" data-tier-pricing-table-summary>
20 +<div class="tier-pricing-summary-table tier-pricing-summary-table--hidden"
21 + data-tier-pricing-table-summary
22 + data-show-non-tiered="<?php echo esc_attr( isset( $showNonTiered ) ? $showNonTiered : 'no' ); ?>"
23 + data-product-id="<?php echo esc_attr( $productId ); ?>">
19 24 <?php if ( $title ) : ?>
20 25 <h4 style=" margin: 20px 0;"><?php echo esc_html( $title ); ?></h4>
21 26 <?php endif; ?>
22 27 <div class="tier-pricing-summary-table__top">
23 - <div><span data-tier-pricing-table-summary-product-qty></span> x</div>
28 + <div><span data-tier-pricing-table-summary-product-qty></span>x</div>
24 29 <div data-tier-pricing-table-summary-product-price></div>
25 30 </div>
26 31 <div class="tier-pricing-summary-table__bottom">
27 32 <div><b><span data-tier-pricing-table-summary-product-name></span></b></div>
@@ -29,5 +34,5 @@
29 34 </div>
30 35 </div>
31 36 </div>
32 37
33 -<?php do_action( 'tier_pricing_table/product_page/before_table_summary', $totalLabel, $eachLabel ); ?>
38 +<?php do_action( 'tiered_pricing_table/product_page/before_table_summary', $totalLabel, $eachLabel ); ?>