jetformbuilder
/
includes
/
compatibility
/
woocommerce
/
methods
/
wc-product-modification
/
product-length-property.php
jetformbuilder
/
includes
/
compatibility
/
woocommerce
/
methods
/
wc-product-modification
Last commit date
base-product-property.php
3 years ago
product-backorders-property.php
3 years ago
product-catalog-visibility-property.php
3 years ago
product-cross-sell-ids-property.php
3 years ago
product-date-on-sale-from-property.php
3 years ago
product-date-on-sale-to-property.php
3 years ago
product-date-property.php
3 years ago
product-description-property.php
3 years ago
product-featured-property.php
3 years ago
product-gallery-property.php
3 years ago
product-height-property.php
3 years ago
product-id-property.php
3 years ago
product-image-property.php
3 years ago
product-length-property.php
3 years ago
product-low-stock-amount-property.php
3 years ago
product-manage-stock-property.php
3 years ago
product-name-property.php
3 years ago
product-parent-property.php
3 years ago
product-regular-price-property.php
3 years ago
product-reviews-allowed-property.php
3 years ago
product-sale-price-property.php
3 years ago
product-short-description-property.php
3 years ago
product-sku-property.php
3 years ago
product-sold-individually-property.php
3 years ago
product-status-property.php
3 years ago
product-stock-quantity-property.php
3 years ago
product-stock-status-property.php
3 years ago
product-tax-class-property.php
3 years ago
product-tax-status-property.php
3 years ago
product-total-sales-property.php
3 years ago
product-upsell-ids-property.php
3 years ago
product-weight-property.php
3 years ago
product-width-property.php
3 years ago
save-action.php
3 years ago
trash-action.php
3 years ago
wc-product-modifier.php
3 years ago
product-length-property.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Compatibility\Woocommerce\Methods\Wc_Product_Modification; |
| 5 | |
| 6 | |
| 7 | use Jet_Form_Builder\Actions\Methods\Abstract_Modifier; |
| 8 | use Jet_Form_Builder\Exceptions\Silence_Exception; |
| 9 | |
| 10 | |
| 11 | class Product_Length_Property extends Base_Product_Property { |
| 12 | |
| 13 | public function get_id(): string { |
| 14 | return '_length'; |
| 15 | } |
| 16 | |
| 17 | public function get_label(): string { |
| 18 | return __( 'Product Length', 'jet-form-builder' ); |
| 19 | } |
| 20 | |
| 21 | |
| 22 | public function get_value( Abstract_Modifier $modifier ) { |
| 23 | parent::get_value( $modifier ); |
| 24 | $product = $this->get_product( $modifier ); |
| 25 | |
| 26 | $product->set_length( $this->value ); |
| 27 | } |
| 28 | } |