PluginProbe
Tiered Pricing Table for WooCommerce / 7.1.4
Tiered Pricing Table for WooCommerce v7.1.4
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 / AdvancedQuantityOptions / ProductEditor / MaximumOrderQuantityBlock.php

MaximumOrderQuantityBlock.php in Tiered Pricing Table for WooCommerce 7.1.4, at src/Addons/AdvancedQuantityOptions/ProductEditor/MaximumOrderQuantityBlock.php

44 lines 992 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Addons\AdvancedQuantityOptions\ProductEditor;
2
3 use TierPricingTable\Addons\ReactProductEditorAddon\Block;
4 use TierPricingTable\Addons\ReactProductEditorAddon\Sections\MainSection;
5
6 class MaximumOrderQuantityBlock extends Block {
7
8 public function getCustomBlockFolder(): ?string {
9 return null;
10 }
11
12 public function getId(): string {
13 return 'tiered-pricing-table/product-editor-maximum-quantity';
14 }
15
16 public function getBlockName(): string {
17 return 'woocommerce/product-number-field';
18 }
19
20 public function getOrder(): int {
21 return 40;
22 }
23
24 public function getSectionId(): string {
25 return MainSection::ID;
26 }
27
28 public function getAttributes(): array {
29 return array(
30 'label' => __( 'Maximum Order Quantity', 'tier-pricing-table' ),
31 'property' => 'tiered_pricing_maximum_quantity',
32 'min' => 2,
33 );
34 }
35
36 public function isCustomBlock(): bool {
37 return false;
38 }
39
40 public function wrapToPremium(): bool {
41 return true;
42 }
43 }
44