| @@ -125,10 +125,8 @@ | ||
| 125 | 125 | 'value_path' => 'title', |
| 126 | 126 | 'component' => 'RichTextEditor', |
| 127 | 127 | 'title' => __( 'Title', 'yaymail' ), |
| 128 | 128 | 'default_value' => isset( $attributes['title'] ) ? $attributes['title'] : '<span style="font-size: 20px;">Order #[yaymail_order_number] <b>([yaymail_order_date])</b></span>', |
| 129 | - 'text_color_path' => 'title_color', | |
| 130 | - 'background_color_path' => 'background_color', | |
| 131 | 129 | 'type' => 'content', |
| 132 | 130 | ], |
| 133 | 131 | 'title_color' => [ |
| 134 | 132 | 'value_path' => 'title_color', |
| @@ -256,9 +254,9 @@ | ||
| 256 | 254 | 'shipping_title' => [ |
| 257 | 255 | 'value_path' => 'shipping_title', |
| 258 | 256 | 'component' => 'TextInput', |
| 259 | 257 | 'title' => __( 'Shipping', 'yaymail' ), |
| 260 | - 'default_value' => esc_html__( 'Shipping:', 'woocommerce' ) . ' [yaymail_shipping_method]', | |
| 258 | + 'default_value' => esc_html__( 'Shipping:', 'woocommerce' ), | |
| 261 | 259 | 'type' => 'content', |
| 262 | 260 | ], |
| 263 | 261 | 'discount_title' => [ |
| 264 | 262 | 'value_path' => 'discount_title', |
| @@ -266,17 +264,17 @@ | ||
| 266 | 264 | 'title' => __( 'Discount', 'yaymail' ), |
| 267 | 265 | 'default_value' => esc_html__( 'Discount:', 'woocommerce' ), |
| 268 | 266 | 'type' => 'content', |
| 269 | 267 | ], |
| 270 | - 'custom_footer_rows_breaker' => [ | |
| 268 | + 'custom_footer_rows_breaker' => [ | |
| 271 | 269 | 'component' => 'LineBreaker', |
| 272 | 270 | ], |
| 273 | - 'custom_footer_rows_group' => [ | |
| 271 | + 'custom_footer_rows_group' => [ | |
| 274 | 272 | 'component' => 'GroupDefinition', |
| 275 | 273 | 'title' => __( 'Custom Footer Rows', 'yaymail' ), |
| 276 | 274 | 'description' => __( 'Add custom rows to the order totals footer', 'yaymail' ), |
| 277 | 275 | ], |
| 278 | - 'custom_footer_rows' => [ | |
| 276 | + 'custom_footer_rows' => [ | |
| 279 | 277 | 'value_path' => 'custom_footer_rows', |
| 280 | 278 | 'component' => 'CustomFooterRowsEditor', |
| 281 | 279 | 'title' => __( 'Custom Footer Rows', 'yaymail' ), |
| 282 | 280 | 'default_value' => isset( $attributes['custom_footer_rows'] ) ? $attributes['custom_footer_rows'] : [], |