flexible-shipping
/
src
/
WPDesk
/
FS
/
TableRate
/
Rule
/
Condition
/
Pro
/
ProductDimensionHeight.php
CartLineItem.php
1 week ago
DayOfTheWeek.php
1 week ago
DimensionalWeight.php
1 week ago
Item.php
1 week ago
MaxDimension.php
1 week ago
Product.php
1 week ago
ProductCategory.php
1 week ago
ProductDimensionHeight.php
1 week ago
ProductDimensionLength.php
1 week ago
ProductDimensionWidth.php
1 week ago
ProductFieldRange.php
1 week ago
ProductFieldValue.php
1 week ago
ProductStockQuantity.php
1 week ago
ProductStockStatus.php
1 week ago
ProductTag.php
1 week ago
ShippingClass.php
1 week ago
ShippingCost.php
1 week ago
TimeOfTheDay.php
1 week ago
TotalOverallDimensions.php
1 week ago
UserRole.php
1 week ago
Volume.php
1 week ago
ProductDimensionHeight.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPDesk\FS\TableRate\Rule\Condition\Pro; |
| 4 | |
| 5 | use WPDesk\FS\TableRate\Rule\Condition\AbstractCondition; |
| 6 | |
| 7 | /** |
| 8 | * Product height condition. |
| 9 | */ |
| 10 | class ProductDimensionHeight extends AbstractCondition { |
| 11 | |
| 12 | const CONDITION_ID = 'product_height'; |
| 13 | |
| 14 | /** |
| 15 | * Product constructor. |
| 16 | * |
| 17 | * @param int $priority . |
| 18 | */ |
| 19 | public function __construct( int $priority = 10 ) { |
| 20 | $this->condition_id = self::CONDITION_ID; |
| 21 | $this->name = __( 'Height', 'flexible-shipping' ); |
| 22 | $this->description = __( 'Shipping cost based on the product\'s height', 'flexible-shipping' ); |
| 23 | $this->group = __( 'Product', 'flexible-shipping' ); |
| 24 | $this->priority = $priority; |
| 25 | $this->is_disabled = true; |
| 26 | |
| 27 | $this->name .= ' ' . __( '(PRO feature)', 'flexible-shipping' ); |
| 28 | } |
| 29 | } |
| 30 |