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