| 1 |
<?php |
| 2 |
|
| 3 |
namespace YayMail\TemplateLibrary\Templates\Processing; |
| 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\ShippingAddress; |
| 16 |
use YayMail\Elements\SocialIcon; |
| 17 |
use YayMail\Elements\Text; |
| 18 |
use YayMail\Utils\SingletonTrait; |
| 19 |
|
| 20 |
/** |
| 21 |
* Clean Check template for Processing Order email. |
| 22 |
*/ |
| 23 |
class CleanCheck extends BaseTemplate { |
| 24 |
use SingletonTrait; |
| 25 |
|
| 26 |
public function __construct() { |
| 27 |
parent::__construct(); |
| 28 |
$this->id = 'processing_order_v6'; |
| 29 |
$this->email_type = 'customer_processing_order'; |
| 30 |
$this->name = 'Clean Check'; |
| 31 |
$this->description = 'Minimal layout with a success checkmark.'; |
| 32 |
$this->categories = [ 'Purple Collection' ]; |
| 33 |
$this->template_settings = [ |
| 34 |
'text_link_color' => '#1A1A1A', |
| 35 |
]; |
| 36 |
$this->access = 'free'; |
| 37 |
$this->elements = [ |
| 38 |
ColumnLayout::get_object_data( |
| 39 |
4, |
| 40 |
[ |
| 41 |
'children' => [ |
| 42 |
Column::get_object_data( |
| 43 |
29, |
| 44 |
[ |
| 45 |
'children' => [ |
| 46 |
Logo::get_object_data( |
| 47 |
[ |
| 48 |
'padding' => [ |
| 49 |
'top' => '10', |
| 50 |
'right' => '10', |
| 51 |
'bottom' => '10', |
| 52 |
'left' => '0', |
| 53 |
], |
| 54 |
'background_color' => '#E8EFF800', |
| 55 |
'src' => 'https://images.wpbrandy.com/uploads/woocommerce-logo.png', |
| 56 |
'align' => 'left', |
| 57 |
'width' => '116', |
| 58 |
'alt' => 'Store logo', |
| 59 |
] |
| 60 |
), |
| 61 |
], |
| 62 |
] |
| 63 |
), |
| 64 |
Column::get_object_data( |
| 65 |
34.49, |
| 66 |
[ |
| 67 |
'children' => [ |
| 68 |
Text::get_object_data( |
| 69 |
[ |
| 70 |
'padding' => [ |
| 71 |
'top' => '15', |
| 72 |
'right' => '0', |
| 73 |
'bottom' => '15', |
| 74 |
'left' => '0', |
| 75 |
], |
| 76 |
'background_color' => '#E8EFF800', |
| 77 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 78 |
'text_color' => '#333439', |
| 79 |
'rich_text' => '<div style="text-align: right"><span style="font-size: 14px;font-weight: 500">My Account</span></div>', |
| 80 |
] |
| 81 |
), |
| 82 |
], |
| 83 |
] |
| 84 |
), |
| 85 |
Column::get_object_data( |
| 86 |
27.76, |
| 87 |
[ |
| 88 |
'children' => [ |
| 89 |
Text::get_object_data( |
| 90 |
[ |
| 91 |
'padding' => [ |
| 92 |
'top' => '15', |
| 93 |
'right' => '0', |
| 94 |
'bottom' => '15', |
| 95 |
'left' => '0', |
| 96 |
], |
| 97 |
'background_color' => '#E8EFF800', |
| 98 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 99 |
'text_color' => '#333439', |
| 100 |
'rich_text' => '<div style="text-align: center"><span style="font-size: 14px;font-weight: 500">Order Tracking</span></div>', |
| 101 |
] |
| 102 |
), |
| 103 |
], |
| 104 |
] |
| 105 |
), |
| 106 |
Column::get_object_data( |
| 107 |
8.75, |
| 108 |
[ |
| 109 |
'children' => [ |
| 110 |
Text::get_object_data( |
| 111 |
[ |
| 112 |
'padding' => [ |
| 113 |
'top' => '15', |
| 114 |
'right' => '2', |
| 115 |
'bottom' => '15', |
| 116 |
'left' => '0', |
| 117 |
], |
| 118 |
'background_color' => '#E8EFF800', |
| 119 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 120 |
'text_color' => '#333439', |
| 121 |
'rich_text' => '<div style="text-align: right"><span style="font-size: 14px;font-weight: 500">Contact</span></div>', |
| 122 |
] |
| 123 |
), |
| 124 |
], |
| 125 |
] |
| 126 |
), |
| 127 |
], |
| 128 |
'padding' => [ |
| 129 |
'top' => '20', |
| 130 |
'right' => '50', |
| 131 |
'bottom' => '20', |
| 132 |
'left' => '50', |
| 133 |
], |
| 134 |
'background_color' => '#edf2ff', |
| 135 |
] |
| 136 |
), |
| 137 |
Divider::get_object_data( |
| 138 |
[ |
| 139 |
'padding' => [ |
| 140 |
'top' => '1', |
| 141 |
'right' => '0', |
| 142 |
'bottom' => '1', |
| 143 |
'left' => '0', |
| 144 |
], |
| 145 |
'height' => '1', |
| 146 |
'background_color' => '#dfe8ff', |
| 147 |
'divider_color' => '#C5B8E033', |
| 148 |
] |
| 149 |
), |
| 150 |
ColumnLayout::get_object_data( |
| 151 |
1, |
| 152 |
[ |
| 153 |
'children' => [ |
| 154 |
Column::get_object_data( |
| 155 |
100, |
| 156 |
[ |
| 157 |
'children' => [ |
| 158 |
Image::get_object_data( |
| 159 |
[ |
| 160 |
'padding' => [ |
| 161 |
'top' => '0', |
| 162 |
'right' => '50', |
| 163 |
'bottom' => '15', |
| 164 |
'left' => '50', |
| 165 |
], |
| 166 |
'background_color' => '#E8EFF800', |
| 167 |
'src' => 'https://images.wpbrandy.com/uploads/processing-icon-1.png', |
| 168 |
'width' => '114', |
| 169 |
'alt' => 'Order confirmed', |
| 170 |
] |
| 171 |
), |
| 172 |
Heading::get_object_data( |
| 173 |
[ |
| 174 |
'padding' => [ |
| 175 |
'top' => '0', |
| 176 |
'right' => '50', |
| 177 |
'bottom' => '12', |
| 178 |
'left' => '50', |
| 179 |
], |
| 180 |
'background_color' => '#E8EFF800', |
| 181 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 182 |
'text_color' => '#1A1A1A', |
| 183 |
'rich_text' => '<p style="text-align: center"><span style="font-size: 48px;font-weight: 800; line-height: normal">New Order Received</span></p> |
| 184 |
<p style="text-align: center"><span style="font-size: 48px;font-weight: 800; line-height: normal">Please Review</span></p>', |
| 185 |
] |
| 186 |
), |
| 187 |
Text::get_object_data( |
| 188 |
[ |
| 189 |
'padding' => [ |
| 190 |
'top' => '0', |
| 191 |
'right' => '50', |
| 192 |
'bottom' => '20', |
| 193 |
'left' => '50', |
| 194 |
], |
| 195 |
'background_color' => '#E8EFF800', |
| 196 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 197 |
'text_color' => '#333439', |
| 198 |
'rich_text' => '<p style="text-align: center"><span style="font-size: 16px">Order placed on [yaymail_order_date]</span></p>', |
| 199 |
] |
| 200 |
), |
| 201 |
], |
| 202 |
] |
| 203 |
), |
| 204 |
], |
| 205 |
'padding' => [ |
| 206 |
'top' => '30', |
| 207 |
'right' => '0', |
| 208 |
'bottom' => '0', |
| 209 |
'left' => '0', |
| 210 |
], |
| 211 |
'background_color' => '#edf2ff', |
| 212 |
] |
| 213 |
), |
| 214 |
ColumnLayout::get_object_data( |
| 215 |
1, |
| 216 |
[ |
| 217 |
'children' => [ |
| 218 |
Column::get_object_data( |
| 219 |
100, |
| 220 |
[ |
| 221 |
'children' => [ |
| 222 |
Text::get_object_data( |
| 223 |
[ |
| 224 |
'padding' => [ |
| 225 |
'top' => '15', |
| 226 |
'right' => '50', |
| 227 |
'bottom' => '0', |
| 228 |
'left' => '50', |
| 229 |
], |
| 230 |
'background_color' => '#EDE7F600', |
| 231 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 232 |
'text_color' => '#333439', |
| 233 |
'rich_text' => '<p><span style="font-size: 18px">Hi [yaymail_billing_first_name] [yaymail_billing_last_name]<strong>,</strong></span></p><br /><p><span style="font-size: 18px">Thanks for your order!</span></p><p><span style="font-size: 18px">We\'ve successfully received it and it\'s now being processed. Your order will be shipped within 24-48 hours.</span></p>', |
| 234 |
] |
| 235 |
), |
| 236 |
ColumnLayout::get_object_data( |
| 237 |
2, |
| 238 |
[ |
| 239 |
'children' => [ |
| 240 |
Column::get_object_data( |
| 241 |
50, |
| 242 |
[ |
| 243 |
'children' => [ |
| 244 |
Text::get_object_data( |
| 245 |
[ |
| 246 |
'padding' => [ |
| 247 |
'top' => '0', |
| 248 |
'right' => '50', |
| 249 |
'bottom' => '0', |
| 250 |
'left' => '50', |
| 251 |
], |
| 252 |
'background_color' => '#EDE7F600', |
| 253 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 254 |
'text_color' => '#1A1A1A', |
| 255 |
'rich_text' => '<p style="text-align: left"><span style="font-size: 24px;font-weight: 800"><strong>Order Summary</strong></span></p>', |
| 256 |
] |
| 257 |
), |
| 258 |
], |
| 259 |
] |
| 260 |
), |
| 261 |
Column::get_object_data( |
| 262 |
50, |
| 263 |
[ |
| 264 |
'children' => [ |
| 265 |
Text::get_object_data( |
| 266 |
[ |
| 267 |
'padding' => [ |
| 268 |
'top' => '0', |
| 269 |
'right' => '50', |
| 270 |
'bottom' => '0', |
| 271 |
'left' => '50', |
| 272 |
], |
| 273 |
'background_color' => '#EDE7F600', |
| 274 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 275 |
'text_color' => '#1A1A1A', |
| 276 |
'rich_text' => '<div style="text-align: right"><strong>Number ID: #[yaymail_order_id is_plain="true"]</strong></div>', |
| 277 |
] |
| 278 |
), |
| 279 |
], |
| 280 |
] |
| 281 |
), |
| 282 |
], |
| 283 |
'vertical_align' => 'middle', |
| 284 |
'padding' => [ |
| 285 |
'top' => '15', |
| 286 |
'right' => '0', |
| 287 |
'bottom' => '1', |
| 288 |
'left' => '0', |
| 289 |
], |
| 290 |
'background_color' => '#EDE7F600', |
| 291 |
] |
| 292 |
), |
| 293 |
OrderDetails::get_object_data( |
| 294 |
[ |
| 295 |
'padding' => [ |
| 296 |
'top' => '0', |
| 297 |
'right' => '50', |
| 298 |
'bottom' => '10', |
| 299 |
'left' => '50', |
| 300 |
], |
| 301 |
'background_color' => '#EDE7F600', |
| 302 |
'layout_type' => 'legacy', |
| 303 |
'title' => '', |
| 304 |
'title_color' => '#1A1A1A', |
| 305 |
'text_color' => '#333439', |
| 306 |
'border_color' => '#C5B8E0', |
| 307 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 308 |
'table_content_font_size' => '16', |
| 309 |
'product_title' => 'PRODUCT', |
| 310 |
'quantity_title' => 'QUANTITY', |
| 311 |
'price_title' => 'PRICE', |
| 312 |
] |
| 313 |
), |
| 314 |
Button::get_object_data( |
| 315 |
[ |
| 316 |
'padding' => [ |
| 317 |
'top' => '10', |
| 318 |
'right' => '50', |
| 319 |
'bottom' => '15', |
| 320 |
'left' => '50', |
| 321 |
], |
| 322 |
'background_color' => '#EDE7F600', |
| 323 |
'width' => '100%', |
| 324 |
'button_background_color' => '#5d19e0', |
| 325 |
'border_radius' => [ |
| 326 |
'top_left' => 0, |
| 327 |
'top_right' => 0, |
| 328 |
'bottom_right' => 0, |
| 329 |
'bottom_left' => 0, |
| 330 |
], |
| 331 |
'text' => 'View Order Detail', |
| 332 |
'url' => '[yaymail_order_url]', |
| 333 |
'font_size' => '16', |
| 334 |
'weight' => '600', |
| 335 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 336 |
] |
| 337 |
), |
| 338 |
], |
| 339 |
] |
| 340 |
), |
| 341 |
], |
| 342 |
'padding' => [ |
| 343 |
'top' => '15', |
| 344 |
'right' => '0', |
| 345 |
'bottom' => '50', |
| 346 |
'left' => '0', |
| 347 |
], |
| 348 |
'background_color' => '#edf2ff', |
| 349 |
'background_image' => [ |
| 350 |
'url' => 'https://images.wpbrandy.com/uploads/processing-6-img-1.png', |
| 351 |
'position' => 'default', |
| 352 |
'size' => 'cover', |
| 353 |
'repeat' => 'default', |
| 354 |
], |
| 355 |
] |
| 356 |
), |
| 357 |
ColumnLayout::get_object_data( |
| 358 |
2, |
| 359 |
[ |
| 360 |
'children' => [ |
| 361 |
Column::get_object_data( |
| 362 |
50, |
| 363 |
[ |
| 364 |
'children' => [ |
| 365 |
BillingAddress::get_object_data( |
| 366 |
[ |
| 367 |
'padding' => [ |
| 368 |
'top' => '15', |
| 369 |
'right' => 0, |
| 370 |
'bottom' => '15', |
| 371 |
'left' => 0, |
| 372 |
], |
| 373 |
'background_color' => '#edf2ff00', |
| 374 |
'layout_type' => 'legacy', |
| 375 |
'text_color' => '#1a1a1a', |
| 376 |
'border_color' => '#1a1a1a33', |
| 377 |
'font_family' => 'Helvetica,Roboto,Arial,sans-serif', |
| 378 |
'title' => '<div style="text-align: center"><span style="color: #1a1a1a;font-size: 20px;font-weight: 800;text-align: center;background-color: #edf2ff">BILLING ADDRESS</span></div>', |
| 379 |
'billing_content_font_size' => 14, |
| 380 |
'billing_content_alignment' => 'center', |
| 381 |
'billing_content_text_format' => [ |
| 382 |
'bold' => false, |
| 383 |
'italic' => false, |
| 384 |
'underline' => false, |
| 385 |
], |
| 386 |
] |
| 387 |
), |
| 388 |
], |
| 389 |
'border' => [ |
| 390 |
'side' => 'none', |
| 391 |
'width' => '1', |
| 392 |
'style' => 'solid', |
| 393 |
'color' => '#1a1a1a33', |
| 394 |
'custom' => [ |
| 395 |
'top' => 0, |
| 396 |
'right' => '1', |
| 397 |
'bottom' => '1', |
| 398 |
'left' => 0, |
| 399 |
], |
| 400 |
], |
| 401 |
] |
| 402 |
), |
| 403 |
Column::get_object_data( |
| 404 |
50, |
| 405 |
[ |
| 406 |
'children' => [ |
| 407 |
ShippingAddress::get_object_data( |
| 408 |
[ |
| 409 |
'padding' => [ |
| 410 |
'top' => '15', |
| 411 |
'right' => 0, |
| 412 |
'bottom' => '15', |
| 413 |
'left' => 0, |
| 414 |
], |
| 415 |
'background_color' => '#ffffff00', |
| 416 |
'layout_type' => 'legacy', |
| 417 |
'text_color' => '#1a1a1a', |
| 418 |
'border_color' => '#1a1a1a33', |
| 419 |
'font_family' => 'Helvetica,Roboto,Arial,sans-serif', |
| 420 |
'title' => '<div style="text-align: center"><span style="color: #1a1a1a;font-size: 20px;font-weight: 800;text-align: center;background-color: #edf2ff">SHIPPING ADDRESS</span></div>', |
| 421 |
'shipping_content_alignment' => 'center', |
| 422 |
'shipping_content_text_format' => [ |
| 423 |
'bold' => false, |
| 424 |
'italic' => false, |
| 425 |
'underline' => false, |
| 426 |
], |
| 427 |
] |
| 428 |
), |
| 429 |
], |
| 430 |
'border' => [ |
| 431 |
'side' => 'none', |
| 432 |
'width' => '1', |
| 433 |
'style' => 'solid', |
| 434 |
'color' => '#1a1a1a33', |
| 435 |
'custom' => [ |
| 436 |
'top' => '1', |
| 437 |
'right' => '1', |
| 438 |
'bottom' => '1', |
| 439 |
'left' => 0, |
| 440 |
], |
| 441 |
], |
| 442 |
] |
| 443 |
), |
| 444 |
], |
| 445 |
'padding' => [ |
| 446 |
'top' => '15', |
| 447 |
'right' => 50, |
| 448 |
'bottom' => '15', |
| 449 |
'left' => 50, |
| 450 |
], |
| 451 |
'background_color' => '#edf2ff', |
| 452 |
] |
| 453 |
), |
| 454 |
Text::get_object_data( |
| 455 |
[ |
| 456 |
'padding' => [ |
| 457 |
'top' => '20', |
| 458 |
'right' => '50', |
| 459 |
'bottom' => '24', |
| 460 |
'left' => '50', |
| 461 |
], |
| 462 |
'background_color' => '#edf2ff', |
| 463 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 464 |
'text_color' => '#333439', |
| 465 |
'rich_text' => '<p><span style="font-size: 16px;font-weight: 400">Thanks again for shopping with us!</span></p><p><span style="font-size: 16px;font-weight: 400">Got questions? Check out our <u>Returns</u> & <u>Refunds Policy</u> or contact <u>Here</u> for support. We\'re happy to help!</span></p>', |
| 466 |
] |
| 467 |
), |
| 468 |
Text::get_object_data( |
| 469 |
[ |
| 470 |
'padding' => [ |
| 471 |
'top' => '0', |
| 472 |
'right' => '50', |
| 473 |
'bottom' => '50', |
| 474 |
'left' => '50', |
| 475 |
], |
| 476 |
'background_color' => '#edf2ff', |
| 477 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 478 |
'text_color' => '#333439', |
| 479 |
'rich_text' => '<p><span style="font-size: 16px;font-weight: 400">Best regards,</span></p><p><span style="font-size: 16px;font-weight: 400">The [yaymail_site_name] Team</span></p>', |
| 480 |
] |
| 481 |
), |
| 482 |
ColumnLayout::get_object_data( |
| 483 |
1, |
| 484 |
[ |
| 485 |
'children' => [ |
| 486 |
Column::get_object_data( |
| 487 |
100, |
| 488 |
[ |
| 489 |
'children' => [ |
| 490 |
ColumnLayout::get_object_data( |
| 491 |
2, |
| 492 |
[ |
| 493 |
'children' => [ |
| 494 |
Column::get_object_data( |
| 495 |
50, |
| 496 |
[ |
| 497 |
'children' => [ |
| 498 |
Text::get_object_data( |
| 499 |
[ |
| 500 |
'padding' => [ |
| 501 |
'top' => '0', |
| 502 |
'right' => '50', |
| 503 |
'bottom' => '0', |
| 504 |
'left' => '50', |
| 505 |
], |
| 506 |
'background_color' => '#E8EFF800', |
| 507 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 508 |
'text_color' => '#1a1a1a', |
| 509 |
'rich_text' => '<p style="text-align: left"><span style="font-size: 12px">© 2026 WooCommerce</span></p>', |
| 510 |
] |
| 511 |
), |
| 512 |
], |
| 513 |
] |
| 514 |
), |
| 515 |
Column::get_object_data( |
| 516 |
50, |
| 517 |
[ |
| 518 |
'children' => [ |
| 519 |
SocialIcon::get_object_data( |
| 520 |
[ |
| 521 |
'padding' => [ |
| 522 |
'top' => '0', |
| 523 |
'right' => '50', |
| 524 |
'bottom' => '0', |
| 525 |
'left' => '0', |
| 526 |
], |
| 527 |
'background_color' => '#E8EFF800', |
| 528 |
'align' => 'right', |
| 529 |
'spacing' => '10', |
| 530 |
'icon_list' => [ |
| 531 |
[ |
| 532 |
'icon' => 'facebook', |
| 533 |
'url' => '#', |
| 534 |
], |
| 535 |
[ |
| 536 |
'icon' => 'instagram', |
| 537 |
'url' => '#', |
| 538 |
], |
| 539 |
[ |
| 540 |
'icon' => 'tiktok', |
| 541 |
'url' => '#', |
| 542 |
], |
| 543 |
[ |
| 544 |
'icon' => 'twitter', |
| 545 |
'url' => '#', |
| 546 |
], |
| 547 |
], |
| 548 |
] |
| 549 |
), |
| 550 |
], |
| 551 |
] |
| 552 |
), |
| 553 |
], |
| 554 |
'vertical_align' => 'middle', |
| 555 |
'padding' => [ |
| 556 |
'top' => '10', |
| 557 |
'right' => '0', |
| 558 |
'bottom' => '15', |
| 559 |
'left' => '0', |
| 560 |
], |
| 561 |
'background_color' => '#E8EFF800', |
| 562 |
] |
| 563 |
), |
| 564 |
], |
| 565 |
] |
| 566 |
), |
| 567 |
], |
| 568 |
'padding' => [ |
| 569 |
'top' => '35', |
| 570 |
'right' => '0', |
| 571 |
'bottom' => '10', |
| 572 |
'left' => '0', |
| 573 |
], |
| 574 |
'background_color' => '#edf2ff', |
| 575 |
'background_image' => [ |
| 576 |
'url' => 'https://images.wpbrandy.com/uploads/processing-6-img-2.png', |
| 577 |
'position' => 'default', |
| 578 |
'size' => 'cover', |
| 579 |
'repeat' => 'default', |
| 580 |
], |
| 581 |
] |
| 582 |
), |
| 583 |
]; |
| 584 |
} |
| 585 |
} |
| 586 |
|