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
ShippingCost.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPDesk\FS\TableRate\Rule\Condition\Pro; |
| 4 | |
| 5 | use WPDesk\FS\TableRate\Rule\Condition\AbstractCondition; |
| 6 | |
| 7 | /** |
| 8 | * Shipping cost condition. |
| 9 | */ |
| 10 | class ShippingCost extends AbstractCondition { |
| 11 | |
| 12 | private const CONDITION_ID = 'shipping_cost'; |
| 13 | |
| 14 | public function __construct( $priority = 10 ) { |
| 15 | $this->priority = $priority; |
| 16 | $this->condition_id = self::CONDITION_ID; |
| 17 | $this->name = __( 'Shipping cost', 'flexible-shipping' ); |
| 18 | $this->description = __( 'Shipping cost based on current shipping cost', 'flexible-shipping' ); |
| 19 | $this->group = __( 'Shipping', 'flexible-shipping' ); |
| 20 | $this->is_disabled = true; |
| 21 | |
| 22 | $this->name .= ' ' . __( '(PRO feature)', 'flexible-shipping' ); |
| 23 | } |
| 24 | } |
| 25 |