PluginProbe
Tiered Pricing Table for WooCommerce / 7.1.1
Tiered Pricing Table for WooCommerce v7.1.1
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 / Addons / ReactProductEditorAddon / Blocks / TieredPricing.php

TieredPricing.php in Tiered Pricing Table for WooCommerce 7.1.1, at src/Addons/ReactProductEditorAddon/Blocks/TieredPricing.php

38 lines 864 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Addons\ReactProductEditorAddon\Blocks;
2
3 use TierPricingTable\Addons\ReactProductEditorAddon\Block;
4 use TierPricingTable\Addons\ReactProductEditorAddon\Sections\MainSection;
5
6 class TieredPricing extends Block {
7
8 public function getCustomBlockFolder(): string {
9 return __DIR__ . '/../js/tiered-pricing';
10 }
11
12 public function getId(): string {
13 return 'tiered-pricing-table/product-editor-tiered-pricing';
14 }
15
16 public function getBlockName(): string {
17 return 'tiered-pricing-table/product-editor-tiered-pricing';
18 }
19
20 public function getOrder(): int {
21 return 10;
22 }
23
24 public function getSectionId(): string {
25 return MainSection::ID;
26 }
27
28 public function getAttributes(): array {
29 return array(
30 'isPremium' => tpt_fs()->can_use_premium_code(),
31 );
32 }
33
34 public function isCustomBlock(): bool {
35 return true;
36 }
37 }
38