| 1 |
<?php |
| 2 |
|
| 3 |
namespace YayMail\TemplateLibrary\Templates\Completed; |
| 4 |
|
| 5 |
use YayMail\Abstracts\BaseTemplate; |
| 6 |
use YayMail\Elements\BillingAddress; |
| 7 |
use YayMail\Elements\Button; |
| 8 |
use YayMail\Elements\Column; |
| 9 |
use YayMail\Elements\ColumnLayout; |
| 10 |
use YayMail\Elements\Divider; |
| 11 |
use YayMail\Elements\Heading; |
| 12 |
use YayMail\Elements\Image; |
| 13 |
use YayMail\Elements\Logo; |
| 14 |
use YayMail\Elements\OrderDetails; |
| 15 |
use YayMail\Elements\OrderProgress; |
| 16 |
use YayMail\Elements\ShippingAddress; |
| 17 |
use YayMail\Elements\SocialIcon; |
| 18 |
use YayMail\Elements\Text; |
| 19 |
use YayMail\Utils\SingletonTrait; |
| 20 |
|
| 21 |
/** |
| 22 |
* Success Path template for Completed Order email. |
| 23 |
*/ |
| 24 |
class SuccessPath extends BaseTemplate { |
| 25 |
use SingletonTrait; |
| 26 |
|
| 27 |
public function __construct() { |
| 28 |
parent::__construct(); |
| 29 |
$this->id = 'completed_order_v5'; |
| 30 |
$this->email_type = 'customer_completed_order'; |
| 31 |
$this->name = 'Success Path'; |
| 32 |
$this->description = 'Soft colors with a guided order flow.'; |
| 33 |
$this->categories = [ 'Progress Collection' ]; |
| 34 |
$this->template_settings = [ |
| 35 |
'text_link_color' => '#c33531', |
| 36 |
]; |
| 37 |
|
| 38 |
$this->elements = [ |
| 39 |
ColumnLayout::get_object_data( |
| 40 |
4, |
| 41 |
[ |
| 42 |
'column_width' => [], |
| 43 |
'column_spacing' => '0', |
| 44 |
'vertical_align' => 'top', |
| 45 |
'container_setting_breaker' => [ |
| 46 |
'component' => 'LineBreaker', |
| 47 |
], |
| 48 |
'container_setting_group_definition' => [ |
| 49 |
'component' => 'GroupDefinition', |
| 50 |
'title' => 'Container layout settings', |
| 51 |
'description' => 'Handle container layout settings', |
| 52 |
], |
| 53 |
'padding' => [ |
| 54 |
'top' => '15', |
| 55 |
'right' => 50, |
| 56 |
'bottom' => '15', |
| 57 |
'left' => 50, |
| 58 |
], |
| 59 |
'border_radius' => [ |
| 60 |
'top_left' => '0', |
| 61 |
'top_right' => '0', |
| 62 |
'bottom_left' => '0', |
| 63 |
'bottom_right' => '0', |
| 64 |
], |
| 65 |
'background_color' => '#faf9f5', |
| 66 |
'background_image' => [ |
| 67 |
'url' => '', |
| 68 |
'position' => 'default', |
| 69 |
'x_position' => 0, |
| 70 |
'y_position' => 0, |
| 71 |
'repeat' => 'default', |
| 72 |
'size' => 'default', |
| 73 |
], |
| 74 |
'inner_setting_breaker' => [ |
| 75 |
'component' => 'LineBreaker', |
| 76 |
], |
| 77 |
'inner_setting_group_definition' => [ |
| 78 |
'component' => 'GroupDefinition', |
| 79 |
'title' => 'Inner layout settings', |
| 80 |
'description' => 'Handle inner layout settings', |
| 81 |
], |
| 82 |
'inner_border_radius' => [ |
| 83 |
'top_left' => '0', |
| 84 |
'top_right' => '0', |
| 85 |
'bottom_left' => '0', |
| 86 |
'bottom_right' => '0', |
| 87 |
], |
| 88 |
'inner_background_color' => '#ffffff00', |
| 89 |
'column_borders' => [ |
| 90 |
'component' => 'ColumnBorders', |
| 91 |
'title' => 'Column borders', |
| 92 |
], |
| 93 |
'children' => [ |
| 94 |
Column::get_object_data( |
| 95 |
29, |
| 96 |
[ |
| 97 |
'children' => [ |
| 98 |
Logo::get_object_data( |
| 99 |
[ |
| 100 |
'container_group_definition' => [ |
| 101 |
'component' => 'GroupDefinition', |
| 102 |
'title' => 'Container settings', |
| 103 |
'description' => 'Handle container layout settings', |
| 104 |
], |
| 105 |
'padding' => [ |
| 106 |
'top' => 10, |
| 107 |
'right' => 10, |
| 108 |
'bottom' => 10, |
| 109 |
'left' => 0, |
| 110 |
], |
| 111 |
'background_color' => '#ffffff00', |
| 112 |
'image_breaker' => [ |
| 113 |
'component' => 'LineBreaker', |
| 114 |
], |
| 115 |
'image_group_definition' => [ |
| 116 |
'component' => 'GroupDefinition', |
| 117 |
'title' => 'Image settings', |
| 118 |
'description' => 'Handle image settings', |
| 119 |
], |
| 120 |
'src' => 'https://images.wpbrandy.com/uploads/woo-black-logo.png', |
| 121 |
'align' => 'left', |
| 122 |
'width' => 116, |
| 123 |
'url' => '#', |
| 124 |
'alt' => '', |
| 125 |
] |
| 126 |
), |
| 127 |
], |
| 128 |
] |
| 129 |
), |
| 130 |
Column::get_object_data( |
| 131 |
25.59, |
| 132 |
[ |
| 133 |
'children' => [ |
| 134 |
Text::get_object_data( |
| 135 |
[ |
| 136 |
'container_group_definition' => [ |
| 137 |
'component' => 'GroupDefinition', |
| 138 |
'title' => 'Container settings', |
| 139 |
'description' => 'Handle container layout settings', |
| 140 |
], |
| 141 |
'padding' => [ |
| 142 |
'top' => '15', |
| 143 |
'right' => 0, |
| 144 |
'bottom' => '15', |
| 145 |
'left' => 0, |
| 146 |
], |
| 147 |
'background_color' => '#ffffff00', |
| 148 |
'border' => [ |
| 149 |
'side' => 'none', |
| 150 |
'width' => '1', |
| 151 |
'style' => 'solid', |
| 152 |
'color' => '#e5e5e5', |
| 153 |
'custom' => [ |
| 154 |
'top' => '1', |
| 155 |
'right' => '1', |
| 156 |
'bottom' => '1', |
| 157 |
'left' => '1', |
| 158 |
], |
| 159 |
], |
| 160 |
'content_breaker' => [ |
| 161 |
'component' => 'LineBreaker', |
| 162 |
], |
| 163 |
'content_group_definition' => [ |
| 164 |
'component' => 'GroupDefinition', |
| 165 |
'title' => 'Content settings', |
| 166 |
'description' => 'Handle content settings', |
| 167 |
], |
| 168 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 169 |
'text_color' => '#031d29', |
| 170 |
'rich_text' => '<div style="text-align: right"><span style="font-size: 16px">My Account</span></div>', |
| 171 |
] |
| 172 |
), |
| 173 |
], |
| 174 |
] |
| 175 |
), |
| 176 |
Column::get_object_data( |
| 177 |
34.16, |
| 178 |
[ |
| 179 |
'children' => [ |
| 180 |
Text::get_object_data( |
| 181 |
[ |
| 182 |
'container_group_definition' => [ |
| 183 |
'component' => 'GroupDefinition', |
| 184 |
'title' => 'Container settings', |
| 185 |
'description' => 'Handle container layout settings', |
| 186 |
], |
| 187 |
'padding' => [ |
| 188 |
'top' => '15', |
| 189 |
'right' => 0, |
| 190 |
'bottom' => '15', |
| 191 |
'left' => 0, |
| 192 |
], |
| 193 |
'background_color' => '#ffffff00', |
| 194 |
'border' => [ |
| 195 |
'side' => 'none', |
| 196 |
'width' => '1', |
| 197 |
'style' => 'solid', |
| 198 |
'color' => '#e5e5e5', |
| 199 |
'custom' => [ |
| 200 |
'top' => '1', |
| 201 |
'right' => '1', |
| 202 |
'bottom' => '1', |
| 203 |
'left' => '1', |
| 204 |
], |
| 205 |
], |
| 206 |
'content_breaker' => [ |
| 207 |
'component' => 'LineBreaker', |
| 208 |
], |
| 209 |
'content_group_definition' => [ |
| 210 |
'component' => 'GroupDefinition', |
| 211 |
'title' => 'Content settings', |
| 212 |
'description' => 'Handle content settings', |
| 213 |
], |
| 214 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 215 |
'text_color' => '#031d29', |
| 216 |
'rich_text' => '<div style="text-align: center"><span style="font-size: 16px;font-weight: 500">Order Tracking</span></div>', |
| 217 |
] |
| 218 |
), |
| 219 |
], |
| 220 |
] |
| 221 |
), |
| 222 |
Column::get_object_data( |
| 223 |
11.25, |
| 224 |
[ |
| 225 |
'children' => [ |
| 226 |
Text::get_object_data( |
| 227 |
[ |
| 228 |
'container_group_definition' => [ |
| 229 |
'component' => 'GroupDefinition', |
| 230 |
'title' => 'Container settings', |
| 231 |
'description' => 'Handle container layout settings', |
| 232 |
], |
| 233 |
'padding' => [ |
| 234 |
'top' => '15', |
| 235 |
'right' => 2, |
| 236 |
'bottom' => '15', |
| 237 |
'left' => 0, |
| 238 |
], |
| 239 |
'background_color' => '#ffffff00', |
| 240 |
'border' => [ |
| 241 |
'side' => 'none', |
| 242 |
'width' => '1', |
| 243 |
'style' => 'solid', |
| 244 |
'color' => '#e5e5e5', |
| 245 |
'custom' => [ |
| 246 |
'top' => '1', |
| 247 |
'right' => '1', |
| 248 |
'bottom' => '1', |
| 249 |
'left' => '1', |
| 250 |
], |
| 251 |
], |
| 252 |
'content_breaker' => [ |
| 253 |
'component' => 'LineBreaker', |
| 254 |
], |
| 255 |
'content_group_definition' => [ |
| 256 |
'component' => 'GroupDefinition', |
| 257 |
'title' => 'Content settings', |
| 258 |
'description' => 'Handle content settings', |
| 259 |
], |
| 260 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 261 |
'text_color' => '#031d29', |
| 262 |
'rich_text' => '<div style="text-align: right"><span style="font-size: 16px;font-weight: 500">Contact</span></div>', |
| 263 |
] |
| 264 |
), |
| 265 |
], |
| 266 |
] |
| 267 |
), |
| 268 |
], |
| 269 |
] |
| 270 |
), |
| 271 |
ColumnLayout::get_object_data( |
| 272 |
2, |
| 273 |
[ |
| 274 |
'column_width' => [], |
| 275 |
'column_spacing' => 0, |
| 276 |
'vertical_align' => 'top', |
| 277 |
'container_setting_breaker' => [ |
| 278 |
'component' => 'LineBreaker', |
| 279 |
], |
| 280 |
'container_setting_group_definition' => [ |
| 281 |
'component' => 'GroupDefinition', |
| 282 |
'title' => 'Container layout settings', |
| 283 |
'description' => 'Handle container layout settings', |
| 284 |
], |
| 285 |
'padding' => [ |
| 286 |
'top' => 2, |
| 287 |
'right' => 0, |
| 288 |
'bottom' => 2, |
| 289 |
'left' => 0, |
| 290 |
], |
| 291 |
'border_radius' => [ |
| 292 |
'top_left' => 0, |
| 293 |
'top_right' => 0, |
| 294 |
'bottom_left' => 0, |
| 295 |
'bottom_right' => 0, |
| 296 |
], |
| 297 |
'background_color' => '#faf9f5', |
| 298 |
'background_image' => [ |
| 299 |
'url' => '', |
| 300 |
'position' => 'default', |
| 301 |
'x_position' => 0, |
| 302 |
'y_position' => 0, |
| 303 |
'repeat' => 'default', |
| 304 |
'size' => 'default', |
| 305 |
], |
| 306 |
'inner_setting_breaker' => [ |
| 307 |
'component' => 'LineBreaker', |
| 308 |
], |
| 309 |
'inner_setting_group_definition' => [ |
| 310 |
'component' => 'GroupDefinition', |
| 311 |
'title' => 'Inner layout settings', |
| 312 |
'description' => 'Handle inner layout settings', |
| 313 |
], |
| 314 |
'inner_border_radius' => [ |
| 315 |
'top_left' => 0, |
| 316 |
'top_right' => '0', |
| 317 |
'bottom_left' => '0', |
| 318 |
'bottom_right' => '0', |
| 319 |
], |
| 320 |
'inner_background_color' => '#ffffff00', |
| 321 |
'column_borders' => [ |
| 322 |
'component' => 'ColumnBorders', |
| 323 |
'title' => 'Column borders', |
| 324 |
], |
| 325 |
'children' => [ |
| 326 |
Column::get_object_data( |
| 327 |
50, |
| 328 |
[ |
| 329 |
'border' => [ |
| 330 |
'side' => 'custom', |
| 331 |
'width' => 1, |
| 332 |
'style' => 'solid', |
| 333 |
'color' => '#031d29', |
| 334 |
'custom' => [ |
| 335 |
'top' => 1, |
| 336 |
'right' => 1, |
| 337 |
'bottom' => 1, |
| 338 |
'left' => 0, |
| 339 |
], |
| 340 |
], |
| 341 |
'children' => [ |
| 342 |
Text::get_object_data( |
| 343 |
[ |
| 344 |
'container_group_definition' => [ |
| 345 |
'component' => 'GroupDefinition', |
| 346 |
'title' => 'Container settings', |
| 347 |
'description' => 'Handle container layout settings', |
| 348 |
], |
| 349 |
'padding' => [ |
| 350 |
'top' => 31, |
| 351 |
'right' => 50, |
| 352 |
'bottom' => 10, |
| 353 |
'left' => 50, |
| 354 |
], |
| 355 |
'background_color' => '#faf9f500', |
| 356 |
'border' => [ |
| 357 |
'side' => 'none', |
| 358 |
'width' => '1', |
| 359 |
'style' => 'solid', |
| 360 |
'color' => '#e5e5e5', |
| 361 |
'custom' => [ |
| 362 |
'top' => '1', |
| 363 |
'right' => '1', |
| 364 |
'bottom' => '1', |
| 365 |
'left' => '1', |
| 366 |
], |
| 367 |
], |
| 368 |
'content_breaker' => [ |
| 369 |
'component' => 'LineBreaker', |
| 370 |
], |
| 371 |
'content_group_definition' => [ |
| 372 |
'component' => 'GroupDefinition', |
| 373 |
'title' => 'Content settings', |
| 374 |
'description' => 'Handle content settings', |
| 375 |
], |
| 376 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 377 |
'text_color' => '#031d29', |
| 378 |
'rich_text' => '<p><span style="font-size: 14px">Order ID: #[yaymail_order_id is_plain="true"]</span></p>', |
| 379 |
] |
| 380 |
), |
| 381 |
Heading::get_object_data( |
| 382 |
[ |
| 383 |
'container_group_definition' => [ |
| 384 |
'component' => 'GroupDefinition', |
| 385 |
'title' => 'Container settings', |
| 386 |
'description' => 'Handle container layout settings', |
| 387 |
], |
| 388 |
'padding' => [ |
| 389 |
'top' => 0, |
| 390 |
'right' => 50, |
| 391 |
'bottom' => 31, |
| 392 |
'left' => 50, |
| 393 |
], |
| 394 |
'background_color' => '#faf9f500', |
| 395 |
'border' => [ |
| 396 |
'side' => 'none', |
| 397 |
'width' => '1', |
| 398 |
'style' => 'solid', |
| 399 |
'color' => '#e5e5e5', |
| 400 |
'custom' => [ |
| 401 |
'top' => '1', |
| 402 |
'right' => '1', |
| 403 |
'bottom' => '1', |
| 404 |
'left' => '1', |
| 405 |
], |
| 406 |
], |
| 407 |
'content_breaker' => [ |
| 408 |
'component' => 'LineBreaker', |
| 409 |
], |
| 410 |
'content_group_definition' => [ |
| 411 |
'component' => 'GroupDefinition', |
| 412 |
'title' => 'Content settings', |
| 413 |
'description' => 'Handle content settings', |
| 414 |
], |
| 415 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 416 |
'text_color' => '#031d29', |
| 417 |
'rich_text' => '<p><span style="font-size: 30px"><strong>Purchase was successful</strong></span></p>', |
| 418 |
] |
| 419 |
), |
| 420 |
], |
| 421 |
] |
| 422 |
), |
| 423 |
Column::get_object_data( |
| 424 |
50, |
| 425 |
[ |
| 426 |
'border' => [ |
| 427 |
'side' => 'custom', |
| 428 |
'width' => 1, |
| 429 |
'style' => 'solid', |
| 430 |
'color' => '#031d29', |
| 431 |
'custom' => [ |
| 432 |
'top' => 1, |
| 433 |
'right' => 0, |
| 434 |
'bottom' => 1, |
| 435 |
'left' => 0, |
| 436 |
], |
| 437 |
], |
| 438 |
'children' => [ |
| 439 |
Image::get_object_data( |
| 440 |
[ |
| 441 |
'container_group_definition' => [ |
| 442 |
'component' => 'GroupDefinition', |
| 443 |
'title' => 'Container settings', |
| 444 |
'description' => 'Handle container layout settings', |
| 445 |
], |
| 446 |
'padding' => [ |
| 447 |
'top' => '15', |
| 448 |
'right' => '50', |
| 449 |
'bottom' => '15', |
| 450 |
'left' => '50', |
| 451 |
], |
| 452 |
'background_color' => '#faf9f500', |
| 453 |
'image_breaker' => [ |
| 454 |
'component' => 'LineBreaker', |
| 455 |
], |
| 456 |
'image_group_definition' => [ |
| 457 |
'component' => 'GroupDefinition', |
| 458 |
'title' => 'Image settings', |
| 459 |
'description' => 'Handle image settings', |
| 460 |
], |
| 461 |
'src' => 'https://images.wpbrandy.com/uploads/completed-5-img-1.png', |
| 462 |
'align' => 'center', |
| 463 |
'width' => 159, |
| 464 |
'url' => '#', |
| 465 |
'alt' => '', |
| 466 |
] |
| 467 |
), |
| 468 |
], |
| 469 |
] |
| 470 |
), |
| 471 |
], |
| 472 |
] |
| 473 |
), |
| 474 |
OrderProgress::get_object_data( |
| 475 |
[ |
| 476 |
'padding' => [ |
| 477 |
'top' => 40, |
| 478 |
'right' => '50', |
| 479 |
'bottom' => 15, |
| 480 |
'left' => '50', |
| 481 |
], |
| 482 |
'background_color' => '#faf9f5', |
| 483 |
'display_style' => 'filled_bar', |
| 484 |
'current_step_index' => 2, |
| 485 |
'connector_height' => 2, |
| 486 |
'connector_active_color' => '#c335311a', |
| 487 |
'connector_inactive_color' => '#fce7f3', |
| 488 |
'icon_size' => '18', |
| 489 |
'filled_bar_icon_border_radius' => 14, |
| 490 |
'label_font_size' => 12, |
| 491 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 492 |
'label_active_color' => '#374151', |
| 493 |
'label_inactive_color' => '#9ca3af', |
| 494 |
'steps' => [ |
| 495 |
'0' => [ |
| 496 |
'title' => 'Ordered', |
| 497 |
'image_url' => YAYMAIL_PLUGIN_URL . '/assets/images/check.png', |
| 498 |
'image_bg_color' => '#c33531', |
| 499 |
'icon_border_color' => '#c33531', |
| 500 |
'icon_border_style' => 'solid', |
| 501 |
'icon_border_width' => 2, |
| 502 |
], |
| 503 |
'1' => [ |
| 504 |
'title' => 'Processing', |
| 505 |
'image_url' => YAYMAIL_PLUGIN_URL . '/assets/images/check.png', |
| 506 |
'image_bg_color' => '#c33531', |
| 507 |
'icon_border_color' => '#c33531', |
| 508 |
'icon_border_style' => 'solid', |
| 509 |
'icon_border_width' => 2, |
| 510 |
], |
| 511 |
'2' => [ |
| 512 |
'title' => 'Completed', |
| 513 |
'image_url' => YAYMAIL_PLUGIN_URL . '/assets/images/check.png', |
| 514 |
'image_bg_color' => '#c33531', |
| 515 |
'icon_border_color' => '#c33531', |
| 516 |
'icon_border_style' => 'solid', |
| 517 |
'icon_border_width' => 2, |
| 518 |
], |
| 519 |
], |
| 520 |
] |
| 521 |
), |
| 522 |
Text::get_object_data( |
| 523 |
[ |
| 524 |
'container_group_definition' => [ |
| 525 |
'component' => 'GroupDefinition', |
| 526 |
'title' => 'Container settings', |
| 527 |
'description' => 'Handle container layout settings', |
| 528 |
], |
| 529 |
'padding' => [ |
| 530 |
'top' => 15, |
| 531 |
'right' => 50, |
| 532 |
'bottom' => 15, |
| 533 |
'left' => 50, |
| 534 |
], |
| 535 |
'background_color' => '#faf9f5', |
| 536 |
'border' => [ |
| 537 |
'side' => 'none', |
| 538 |
'width' => '1', |
| 539 |
'style' => 'solid', |
| 540 |
'color' => '#e5e5e5', |
| 541 |
'custom' => [ |
| 542 |
'top' => '1', |
| 543 |
'right' => '1', |
| 544 |
'bottom' => '1', |
| 545 |
'left' => '1', |
| 546 |
], |
| 547 |
], |
| 548 |
'content_breaker' => [ |
| 549 |
'component' => 'LineBreaker', |
| 550 |
], |
| 551 |
'content_group_definition' => [ |
| 552 |
'component' => 'GroupDefinition', |
| 553 |
'title' => 'Content settings', |
| 554 |
'description' => 'Handle content settings', |
| 555 |
], |
| 556 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 557 |
'text_color' => '#031d29', |
| 558 |
'rich_text' => '<p><span style="font-size: 18px">Hi <strong>[yaymail_billing_first_name] [yaymail_billing_last_name],</strong></span></p><br /><p><span style="font-size: 18px">Great news! Your order #[yaymail_order_id is_plain="true"] has been successfully delivered. If you\'ve received your order, please take a moment to confirm delivery in your account.</span></p>', |
| 559 |
] |
| 560 |
), |
| 561 |
Divider::get_object_data( |
| 562 |
[ |
| 563 |
'align' => 'center', |
| 564 |
'padding' => [ |
| 565 |
'top' => '15', |
| 566 |
'right' => 0, |
| 567 |
'bottom' => '15', |
| 568 |
'left' => 0, |
| 569 |
], |
| 570 |
'width' => '100', |
| 571 |
'height' => 2, |
| 572 |
'background_color' => '#faf9f5', |
| 573 |
'divider_color' => '#333', |
| 574 |
'divider_type' => 'solid', |
| 575 |
] |
| 576 |
), |
| 577 |
OrderDetails::get_object_data( |
| 578 |
[ |
| 579 |
'rich_text' => '[yaymail_order_details]', |
| 580 |
'payment_instructions' => '[yaymail_payment_instructions]', |
| 581 |
'container_group_definition' => [ |
| 582 |
'component' => 'GroupDefinition', |
| 583 |
'title' => 'Container settings', |
| 584 |
'description' => 'Handle container layout settings', |
| 585 |
], |
| 586 |
'padding' => [ |
| 587 |
'top' => '15', |
| 588 |
'right' => '50', |
| 589 |
'bottom' => '15', |
| 590 |
'left' => '50', |
| 591 |
], |
| 592 |
'background_color' => '#faf9f5', |
| 593 |
'border' => [ |
| 594 |
'side' => 'none', |
| 595 |
'width' => '1', |
| 596 |
'style' => 'solid', |
| 597 |
'color' => '#e5e5e5', |
| 598 |
'custom' => [ |
| 599 |
'top' => '1', |
| 600 |
'right' => '1', |
| 601 |
'bottom' => '1', |
| 602 |
'left' => '1', |
| 603 |
], |
| 604 |
], |
| 605 |
'table_setting_breaker' => [ |
| 606 |
'component' => 'LineBreaker', |
| 607 |
], |
| 608 |
'table_group_definition' => [ |
| 609 |
'component' => 'GroupDefinition', |
| 610 |
'title' => 'Table settings', |
| 611 |
'description' => 'Handle table settings', |
| 612 |
], |
| 613 |
'layout_type' => 'modern', |
| 614 |
'title' => '<p><span style="font-size: 20px"><strong>ORDER SUMMARY</strong></span></p>', |
| 615 |
'title_color' => '#1A1A1A', |
| 616 |
'text_color' => '#031d29', |
| 617 |
'border_color' => '#e5e5e5', |
| 618 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 619 |
'table_content_font_size' => 16, |
| 620 |
'table_heading_line_breaker' => [ |
| 621 |
'component' => 'LineBreaker', |
| 622 |
], |
| 623 |
'table_heading_group_definition' => [ |
| 624 |
'component' => 'GroupDefinition', |
| 625 |
'title' => 'Table heading settings', |
| 626 |
'description' => 'Handle table heading settings', |
| 627 |
], |
| 628 |
'table_heading_font_size' => 14, |
| 629 |
'show_table_header' => 1, |
| 630 |
'product_title' => 'Product', |
| 631 |
'cost_title' => 'Cost', |
| 632 |
'quantity_title' => 'Quantity', |
| 633 |
'price_title' => 'Price', |
| 634 |
'cart_subtotal_title' => 'Subtotal:', |
| 635 |
'payment_method_title' => 'Payment method:', |
| 636 |
'order_total_title' => 'Total:', |
| 637 |
'order_note_title' => 'Note:', |
| 638 |
'shipping_title' => 'Shipping: [yaymail_shipping_method]', |
| 639 |
'discount_title' => 'Discount:', |
| 640 |
'custom_footer_rows_breaker' => [ |
| 641 |
'component' => 'LineBreaker', |
| 642 |
], |
| 643 |
'custom_footer_rows_group' => [ |
| 644 |
'component' => 'GroupDefinition', |
| 645 |
'title' => 'Custom Footer Rows', |
| 646 |
'description' => 'Add custom rows to the order totals footer', |
| 647 |
], |
| 648 |
'custom_footer_rows' => [], |
| 649 |
] |
| 650 |
), |
| 651 |
Button::get_object_data( |
| 652 |
[ |
| 653 |
'container_group_definition' => [ |
| 654 |
'component' => 'GroupDefinition', |
| 655 |
'title' => 'Container settings', |
| 656 |
'description' => 'Handle container layout settings', |
| 657 |
], |
| 658 |
'padding' => [ |
| 659 |
'top' => 0, |
| 660 |
'right' => '50', |
| 661 |
'bottom' => 30, |
| 662 |
'left' => '50', |
| 663 |
], |
| 664 |
'background_color' => '#faf9f5', |
| 665 |
'button_setting_breaker' => [ |
| 666 |
'component' => 'LineBreaker', |
| 667 |
], |
| 668 |
'button_group_definition' => [ |
| 669 |
'component' => 'GroupDefinition', |
| 670 |
'title' => 'Button settings', |
| 671 |
'description' => 'Handle button settings', |
| 672 |
], |
| 673 |
'button_type' => 'default', |
| 674 |
'align' => 'center', |
| 675 |
'width' => '100%', |
| 676 |
'custom_width' => '50', |
| 677 |
'height' => '21', |
| 678 |
'button_padding' => [ |
| 679 |
'top' => '12', |
| 680 |
'right' => '20', |
| 681 |
'bottom' => '12', |
| 682 |
'left' => '20', |
| 683 |
], |
| 684 |
'button_background_color' => '#c33531', |
| 685 |
'text_color' => '#ffffff', |
| 686 |
'border' => [ |
| 687 |
'side' => 'none', |
| 688 |
'width' => '1', |
| 689 |
'style' => 'solid', |
| 690 |
'color' => '#e5e5e5', |
| 691 |
'custom' => [ |
| 692 |
'top' => '1', |
| 693 |
'right' => '1', |
| 694 |
'bottom' => '1', |
| 695 |
'left' => '1', |
| 696 |
], |
| 697 |
], |
| 698 |
'border_radius' => [ |
| 699 |
'top_left' => 14, |
| 700 |
'top_right' => 14, |
| 701 |
'bottom_right' => 14, |
| 702 |
'bottom_left' => 14, |
| 703 |
], |
| 704 |
'button_content_group_definition' => [ |
| 705 |
'component' => 'GroupDefinition', |
| 706 |
'title' => 'Button content', |
| 707 |
'description' => 'Handle button content', |
| 708 |
], |
| 709 |
'text' => 'View Your Order', |
| 710 |
'url' => '#', |
| 711 |
'font_size' => 16, |
| 712 |
'weight' => 'normal', |
| 713 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 714 |
] |
| 715 |
), |
| 716 |
ColumnLayout::get_object_data( |
| 717 |
2, |
| 718 |
[ |
| 719 |
'column_width' => [], |
| 720 |
'column_spacing' => 2, |
| 721 |
'vertical_align' => 'top', |
| 722 |
'container_setting_breaker' => [ |
| 723 |
'component' => 'LineBreaker', |
| 724 |
], |
| 725 |
'container_setting_group_definition' => [ |
| 726 |
'component' => 'GroupDefinition', |
| 727 |
'title' => 'Container layout settings', |
| 728 |
'description' => 'Handle container layout settings', |
| 729 |
], |
| 730 |
'padding' => [ |
| 731 |
'top' => 2, |
| 732 |
'right' => 0, |
| 733 |
'bottom' => 2, |
| 734 |
'left' => 0, |
| 735 |
], |
| 736 |
'border_radius' => [ |
| 737 |
'top_left' => '0', |
| 738 |
'top_right' => '0', |
| 739 |
'bottom_left' => '0', |
| 740 |
'bottom_right' => '0', |
| 741 |
], |
| 742 |
'background_color' => '#faf9f5', |
| 743 |
'background_image' => [ |
| 744 |
'url' => '', |
| 745 |
'position' => 'default', |
| 746 |
'x_position' => 0, |
| 747 |
'y_position' => 0, |
| 748 |
'repeat' => 'default', |
| 749 |
'size' => 'default', |
| 750 |
], |
| 751 |
'inner_setting_breaker' => [ |
| 752 |
'component' => 'LineBreaker', |
| 753 |
], |
| 754 |
'inner_setting_group_definition' => [ |
| 755 |
'component' => 'GroupDefinition', |
| 756 |
'title' => 'Inner layout settings', |
| 757 |
'description' => 'Handle inner layout settings', |
| 758 |
], |
| 759 |
'inner_border_radius' => [ |
| 760 |
'top_left' => '0', |
| 761 |
'top_right' => '0', |
| 762 |
'bottom_left' => '0', |
| 763 |
'bottom_right' => '0', |
| 764 |
], |
| 765 |
'inner_background_color' => '#ffffff00', |
| 766 |
'column_borders' => [ |
| 767 |
'component' => 'ColumnBorders', |
| 768 |
'title' => 'Column borders', |
| 769 |
], |
| 770 |
'children' => [ |
| 771 |
Column::get_object_data( |
| 772 |
50, |
| 773 |
[ |
| 774 |
'border' => [ |
| 775 |
'side' => 'custom', |
| 776 |
'width' => 1, |
| 777 |
'style' => 'solid', |
| 778 |
'color' => '#031d29', |
| 779 |
'custom' => [ |
| 780 |
'top' => 1, |
| 781 |
'right' => 1, |
| 782 |
'bottom' => 1, |
| 783 |
'left' => 0, |
| 784 |
], |
| 785 |
], |
| 786 |
'children' => [ |
| 787 |
Text::get_object_data( |
| 788 |
[ |
| 789 |
'container_group_definition' => [ |
| 790 |
'component' => 'GroupDefinition', |
| 791 |
'title' => 'Container settings', |
| 792 |
'description' => 'Handle container layout settings', |
| 793 |
], |
| 794 |
'padding' => [ |
| 795 |
'top' => 25, |
| 796 |
'right' => '50', |
| 797 |
'bottom' => 0, |
| 798 |
'left' => 50, |
| 799 |
], |
| 800 |
'background_color' => '#faf9f500', |
| 801 |
'border' => [ |
| 802 |
'side' => 'none', |
| 803 |
'width' => '1', |
| 804 |
'style' => 'solid', |
| 805 |
'color' => '#e5e5e5', |
| 806 |
'custom' => [ |
| 807 |
'top' => '1', |
| 808 |
'right' => '1', |
| 809 |
'bottom' => '1', |
| 810 |
'left' => '1', |
| 811 |
], |
| 812 |
], |
| 813 |
'content_breaker' => [ |
| 814 |
'component' => 'LineBreaker', |
| 815 |
], |
| 816 |
'content_group_definition' => [ |
| 817 |
'component' => 'GroupDefinition', |
| 818 |
'title' => 'Content settings', |
| 819 |
'description' => 'Handle content settings', |
| 820 |
], |
| 821 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 822 |
'text_color' => '#031d29', |
| 823 |
'rich_text' => '<p><span style="font-size: 20px"><strong>SHIPPING ADDRESS</strong></span></p>', |
| 824 |
] |
| 825 |
), |
| 826 |
ShippingAddress::get_object_data( |
| 827 |
[ |
| 828 |
'container_group_definition' => [ |
| 829 |
'component' => 'GroupDefinition', |
| 830 |
'title' => 'Container settings', |
| 831 |
'description' => 'Handle container layout settings', |
| 832 |
], |
| 833 |
'padding' => [ |
| 834 |
'top' => 0, |
| 835 |
'right' => 30, |
| 836 |
'bottom' => 5, |
| 837 |
'left' => 50, |
| 838 |
], |
| 839 |
'background_color' => '#faf9f500', |
| 840 |
'content_breaker' => [ |
| 841 |
'component' => 'LineBreaker', |
| 842 |
], |
| 843 |
'content_group_definition' => [ |
| 844 |
'component' => 'GroupDefinition', |
| 845 |
'title' => 'Content settings', |
| 846 |
'description' => 'Handle content settings', |
| 847 |
], |
| 848 |
'layout_type' => 'modern', |
| 849 |
'title_color' => '#1a1a1a', |
| 850 |
'text_color' => '#031d29', |
| 851 |
'border_color' => '#ffffff00', |
| 852 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 853 |
'title' => '', |
| 854 |
'shipping_content_font_size' => '14', |
| 855 |
'shipping_content_alignment' => 'left', |
| 856 |
'shipping_content_text_format' => [ |
| 857 |
'bold' => false, |
| 858 |
'italic' => false, |
| 859 |
'underline' => false, |
| 860 |
], |
| 861 |
'rich_text' => '[yaymail_shipping_address]', |
| 862 |
] |
| 863 |
), |
| 864 |
], |
| 865 |
] |
| 866 |
), |
| 867 |
Column::get_object_data( |
| 868 |
50, |
| 869 |
[ |
| 870 |
'border' => [ |
| 871 |
'side' => 'custom', |
| 872 |
'width' => 1, |
| 873 |
'style' => 'solid', |
| 874 |
'color' => '#031d29', |
| 875 |
'custom' => [ |
| 876 |
'top' => 1, |
| 877 |
'right' => 0, |
| 878 |
'bottom' => 1, |
| 879 |
'left' => 0, |
| 880 |
], |
| 881 |
], |
| 882 |
'children' => [ |
| 883 |
Text::get_object_data( |
| 884 |
[ |
| 885 |
'container_group_definition' => [ |
| 886 |
'component' => 'GroupDefinition', |
| 887 |
'title' => 'Container settings', |
| 888 |
'description' => 'Handle container layout settings', |
| 889 |
], |
| 890 |
'padding' => [ |
| 891 |
'top' => 25, |
| 892 |
'right' => '50', |
| 893 |
'bottom' => 0, |
| 894 |
'left' => 50, |
| 895 |
], |
| 896 |
'background_color' => '#faf9f500', |
| 897 |
'border' => [ |
| 898 |
'side' => 'none', |
| 899 |
'width' => '1', |
| 900 |
'style' => 'solid', |
| 901 |
'color' => '#e5e5e5', |
| 902 |
'custom' => [ |
| 903 |
'top' => '1', |
| 904 |
'right' => '1', |
| 905 |
'bottom' => '1', |
| 906 |
'left' => '1', |
| 907 |
], |
| 908 |
], |
| 909 |
'content_breaker' => [ |
| 910 |
'component' => 'LineBreaker', |
| 911 |
], |
| 912 |
'content_group_definition' => [ |
| 913 |
'component' => 'GroupDefinition', |
| 914 |
'title' => 'Content settings', |
| 915 |
'description' => 'Handle content settings', |
| 916 |
], |
| 917 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 918 |
'text_color' => '#031d29', |
| 919 |
'rich_text' => '<p><span style="font-size: 20px"><strong>BILLING ADDRESS</strong></span></p>', |
| 920 |
] |
| 921 |
), |
| 922 |
BillingAddress::get_object_data( |
| 923 |
[ |
| 924 |
'container_group_definition' => [ |
| 925 |
'component' => 'GroupDefinition', |
| 926 |
'title' => 'Container settings', |
| 927 |
'description' => 'Handle container layout settings', |
| 928 |
], |
| 929 |
'padding' => [ |
| 930 |
'top' => 0, |
| 931 |
'right' => 30, |
| 932 |
'bottom' => 5, |
| 933 |
'left' => 50, |
| 934 |
], |
| 935 |
'background_color' => '#faf9f500', |
| 936 |
'content_breaker' => [ |
| 937 |
'component' => 'LineBreaker', |
| 938 |
], |
| 939 |
'content_group_definition' => [ |
| 940 |
'component' => 'GroupDefinition', |
| 941 |
'title' => 'Content settings', |
| 942 |
'description' => 'Handle content settings', |
| 943 |
], |
| 944 |
'layout_type' => 'modern', |
| 945 |
'title_color' => '#1a1a1a', |
| 946 |
'text_color' => '#031d29', |
| 947 |
'border_color' => '#e5e5e5', |
| 948 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 949 |
'title' => '', |
| 950 |
'billing_content_font_size' => '14', |
| 951 |
'billing_content_alignment' => 'left', |
| 952 |
'billing_content_text_format' => [ |
| 953 |
'bold' => false, |
| 954 |
'italic' => false, |
| 955 |
'underline' => false, |
| 956 |
], |
| 957 |
'rich_text' => '[yaymail_billing_address]', |
| 958 |
] |
| 959 |
), |
| 960 |
], |
| 961 |
] |
| 962 |
), |
| 963 |
], |
| 964 |
] |
| 965 |
), |
| 966 |
ColumnLayout::get_object_data( |
| 967 |
1, |
| 968 |
[ |
| 969 |
'column_width' => [], |
| 970 |
'column_spacing' => '0', |
| 971 |
'vertical_align' => 'top', |
| 972 |
'container_setting_breaker' => [ |
| 973 |
'component' => 'LineBreaker', |
| 974 |
], |
| 975 |
'container_setting_group_definition' => [ |
| 976 |
'component' => 'GroupDefinition', |
| 977 |
'title' => 'Container layout settings', |
| 978 |
'description' => 'Handle container layout settings', |
| 979 |
], |
| 980 |
'padding' => [ |
| 981 |
'top' => 25, |
| 982 |
'bottom' => 10, |
| 983 |
'left' => 50, |
| 984 |
'right' => 50, |
| 985 |
], |
| 986 |
'border_radius' => [ |
| 987 |
'top_left' => '0', |
| 988 |
'top_right' => '0', |
| 989 |
'bottom_left' => '0', |
| 990 |
'bottom_right' => '0', |
| 991 |
], |
| 992 |
'background_color' => '#faf9f5', |
| 993 |
'background_image' => [ |
| 994 |
'url' => '', |
| 995 |
'position' => 'default', |
| 996 |
'x_position' => 0, |
| 997 |
'y_position' => 0, |
| 998 |
'repeat' => 'default', |
| 999 |
'size' => 'default', |
| 1000 |
], |
| 1001 |
'inner_setting_breaker' => [ |
| 1002 |
'component' => 'LineBreaker', |
| 1003 |
], |
| 1004 |
'inner_setting_group_definition' => [ |
| 1005 |
'component' => 'GroupDefinition', |
| 1006 |
'title' => 'Inner layout settings', |
| 1007 |
'description' => 'Handle inner layout settings', |
| 1008 |
], |
| 1009 |
'inner_border_radius' => [ |
| 1010 |
'top_left' => '0', |
| 1011 |
'top_right' => '0', |
| 1012 |
'bottom_left' => '0', |
| 1013 |
'bottom_right' => '0', |
| 1014 |
], |
| 1015 |
'inner_background_color' => '#ffffff00', |
| 1016 |
'column_borders' => [ |
| 1017 |
'component' => 'ColumnBorders', |
| 1018 |
'title' => 'Column borders', |
| 1019 |
], |
| 1020 |
'children' => [ |
| 1021 |
Column::get_object_data( |
| 1022 |
100, |
| 1023 |
[ |
| 1024 |
'children' => [ |
| 1025 |
Text::get_object_data( |
| 1026 |
[ |
| 1027 |
'container_group_definition' => [ |
| 1028 |
'component' => 'GroupDefinition', |
| 1029 |
'title' => 'Container settings', |
| 1030 |
'description' => 'Handle container layout settings', |
| 1031 |
], |
| 1032 |
'padding' => [ |
| 1033 |
'top' => 0, |
| 1034 |
'right' => 0, |
| 1035 |
'bottom' => 0, |
| 1036 |
'left' => 0, |
| 1037 |
], |
| 1038 |
'background_color' => '#ffffff00', |
| 1039 |
'border' => [ |
| 1040 |
'side' => 'none', |
| 1041 |
'width' => '1', |
| 1042 |
'style' => 'solid', |
| 1043 |
'color' => '#e5e5e5', |
| 1044 |
'custom' => [ |
| 1045 |
'top' => '1', |
| 1046 |
'right' => '1', |
| 1047 |
'bottom' => '1', |
| 1048 |
'left' => '1', |
| 1049 |
], |
| 1050 |
], |
| 1051 |
'content_breaker' => [ |
| 1052 |
'component' => 'LineBreaker', |
| 1053 |
], |
| 1054 |
'content_group_definition' => [ |
| 1055 |
'component' => 'GroupDefinition', |
| 1056 |
'title' => 'Content settings', |
| 1057 |
'description' => 'Handle content settings', |
| 1058 |
], |
| 1059 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 1060 |
'text_color' => '#031d29', |
| 1061 |
'rich_text' => '<p style="text-align: center;margin: 0;font-weight: 300"><span style="font-size: 16px">For questions, contact <u>hello@example.com</u>, visit our <u>FAQs</u>, or <u>chat</u> with us during operating hours for account support</span></p>', |
| 1062 |
] |
| 1063 |
), |
| 1064 |
SocialIcon::get_object_data( |
| 1065 |
[ |
| 1066 |
'container_group_definition' => [ |
| 1067 |
'component' => 'GroupDefinition', |
| 1068 |
'title' => 'Container settings', |
| 1069 |
'description' => 'Handle container layout settings', |
| 1070 |
], |
| 1071 |
'padding' => [ |
| 1072 |
'top' => 15, |
| 1073 |
'right' => 0, |
| 1074 |
'bottom' => 10, |
| 1075 |
'left' => 0, |
| 1076 |
], |
| 1077 |
'background_color' => '#ffffff00', |
| 1078 |
'align' => 'center', |
| 1079 |
'content_breaker' => [ |
| 1080 |
'component' => 'LineBreaker', |
| 1081 |
], |
| 1082 |
'content_group_definition' => [ |
| 1083 |
'component' => 'GroupDefinition', |
| 1084 |
'title' => 'Content settings', |
| 1085 |
'description' => 'Handle content settings', |
| 1086 |
], |
| 1087 |
'width_icon' => 30, |
| 1088 |
'spacing' => 10, |
| 1089 |
'theme' => 'Colorful', |
| 1090 |
'icon_list' => [ |
| 1091 |
'0' => [ |
| 1092 |
'icon' => 'facebook', |
| 1093 |
'url' => '#', |
| 1094 |
], |
| 1095 |
'1' => [ |
| 1096 |
'icon' => 'instagram', |
| 1097 |
'url' => '#', |
| 1098 |
], |
| 1099 |
'2' => [ |
| 1100 |
'icon' => 'tiktok', |
| 1101 |
'url' => '#', |
| 1102 |
], |
| 1103 |
'3' => [ |
| 1104 |
'icon' => 'twitter', |
| 1105 |
'url' => '#', |
| 1106 |
], |
| 1107 |
], |
| 1108 |
] |
| 1109 |
), |
| 1110 |
Text::get_object_data( |
| 1111 |
[ |
| 1112 |
'container_group_definition' => [ |
| 1113 |
'component' => 'GroupDefinition', |
| 1114 |
'title' => 'Container settings', |
| 1115 |
'description' => 'Handle container layout settings', |
| 1116 |
], |
| 1117 |
'padding' => [ |
| 1118 |
'top' => 0, |
| 1119 |
'right' => 0, |
| 1120 |
'bottom' => 20, |
| 1121 |
'left' => 0, |
| 1122 |
], |
| 1123 |
'background_color' => '#ffffff00', |
| 1124 |
'border' => [ |
| 1125 |
'side' => 'none', |
| 1126 |
'width' => '1', |
| 1127 |
'style' => 'solid', |
| 1128 |
'color' => '#e5e5e5', |
| 1129 |
'custom' => [ |
| 1130 |
'top' => '1', |
| 1131 |
'right' => '1', |
| 1132 |
'bottom' => '1', |
| 1133 |
'left' => '1', |
| 1134 |
], |
| 1135 |
], |
| 1136 |
'content_breaker' => [ |
| 1137 |
'component' => 'LineBreaker', |
| 1138 |
], |
| 1139 |
'content_group_definition' => [ |
| 1140 |
'component' => 'GroupDefinition', |
| 1141 |
'title' => 'Content settings', |
| 1142 |
'description' => 'Handle content settings', |
| 1143 |
], |
| 1144 |
'font_family' => '"Comic Sans MS", cursive, sans-serif', |
| 1145 |
'text_color' => '#031d29', |
| 1146 |
'rich_text' => '<p style="text-align: center;margin: 0;font-weight: 300"><span style="font-size: 12px">© 2026 YayCommerce.com</span></p>', |
| 1147 |
] |
| 1148 |
), |
| 1149 |
], |
| 1150 |
] |
| 1151 |
), |
| 1152 |
], |
| 1153 |
] |
| 1154 |
), |
| 1155 |
]; |
| 1156 |
} |
| 1157 |
} |