CROSS/UP SELLS PRODUCTS
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
', 'type' => 'content', 'conditions' => [ [ 'comparison' => 'contain', 'value' => [ 'top_content' ], 'attribute' => 'showing_items', ], ] ], 'sale_price_color' => [ 'value_path' => 'sale_price_color', 'component' => 'Color', 'title' => __( 'Product price color', 'yaymail' ), 'default_value' => isset( $attributes['sale_price_color'] ) ? $attributes['sale_price_color'] : '#ec4770', 'type' => 'style', 'conditions' => [ [ 'comparison' => 'contain', 'value' => [ 'product_price' ], 'attribute' => 'showing_items', ], ], ], 'regular_price_color' => [ 'value_path' => 'regular_price_color', 'component' => 'Color', 'title' => __( 'Product original price color', 'yaymail' ), 'default_value' => isset( $attributes['regular_price_color'] ) ? $attributes['regular_price_color'] : '#808080', 'type' => 'style', 'conditions' => [ [ 'comparison' => 'contain', 'value' => [ 'product_original_price' ], 'attribute' => 'showing_items', ], ], ], 'button_breaker' => [ 'component' => 'LineBreaker', 'conditions' => $buy_button_conditions, ], 'button_group_definition' => [ 'component' => 'GroupDefinition', 'title' => __( 'Button', 'yaymail' ), 'description' => __( 'Handle buy button settings', 'yaymail' ), 'conditions' => $buy_button_conditions, ], 'buy_button_label' => [ 'value_path' => 'buy_button_label', 'component' => 'TextInput', 'title' => __( 'Buy button text', 'yaymail' ), 'default_value' => isset( $attributes['buy_button_label'] ) ? $attributes['buy_button_label'] : __( 'BUY NOW', 'yaymail' ), 'type' => 'content', 'conditions' => $buy_button_conditions, ], 'buy_button_background_color' => [ 'value_path' => 'buy_button_background_color', 'component' => 'Color', 'title' => __( 'Buy button background color', 'yaymail' ), 'default_value' => isset( $attributes['buy_button_background_color'] ) ? $attributes['buy_button_background_color'] : '#ec4770', 'type' => 'style', 'conditions' => $buy_button_conditions, ], 'buy_button_text_color' => [ 'value_path' => 'buy_button_text_color', 'component' => 'Color', 'title' => __( 'Buy button text color', 'yaymail' ), 'default_value' => isset( $attributes['buy_button_text_color'] ) ? $attributes['buy_button_text_color'] : '#ffffff', 'type' => 'style', 'conditions' => $buy_button_conditions, ], 'products_breaker' => [ 'component' => 'LineBreaker', ], 'products_group_definition' => [ 'component' => 'GroupDefinition', 'title' => __( 'Products', 'yaymail' ), 'description' => __( 'Handle products settings', 'yaymail' ), ], 'products_per_row' => [ 'value_path' => 'products_per_row', 'component' => 'NumberInput', 'title' => __( 'Products per row', 'yaymail' ), 'default_value' => isset( $attributes['products_per_row'] ) ? $attributes['products_per_row'] : '3', 'min' => 1, 'max' => 3, 'type' => 'content', ], 'linked_products_type' => [ 'value_path' => 'linked_products_type', 'component' => 'Selector', 'title' => __( 'Linked products type', 'yaymail' ), 'default_value' => isset( $attributes['linked_products_type'] ) ? $attributes['linked_products_type'] : 'cross_sells', 'type' => 'content', 'options' => [ [ 'label' => __( 'Cross-sells', 'yaymail' ), 'value' => 'cross_sells', ], [ 'label' => __( 'Upsells', 'yaymail' ), 'value' => 'up_sells', ], ], ], 'max_products_displayed' => [ 'value_path' => 'max_products_displayed', 'component' => 'NumberInput', 'title' => __( 'Max products displayed', 'yaymail' ), 'default_value' => isset( $attributes['max_products_displayed'] ) ? $attributes['max_products_displayed'] : '5', 'type' => 'content', 'min' => 1, 'max' => 20, 'is_debounce' => true, ], ], ]; } }