| 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\FeaturedProducts; |
| 12 |
use YayMail\Elements\Heading; |
| 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 |
* Tech Journey template for customer_processing_order email. |
| 23 |
* Generated by tools/yaymail-template-gen — review/tweak values as needed. |
| 24 |
*/ |
| 25 |
class TechJourney extends BaseTemplate { |
| 26 |
use SingletonTrait; |
| 27 |
|
| 28 |
public function __construct() { |
| 29 |
parent::__construct(); |
| 30 |
$this->id = 'processing_order_v15'; |
| 31 |
$this->email_type = 'customer_processing_order'; |
| 32 |
$this->name = 'Tech Journey'; |
| 33 |
$this->description = 'Modern order tracking with tech products.'; |
| 34 |
$this->categories = [ 'Electronics' ]; |
| 35 |
$this->template_settings = [ |
| 36 |
'text_link_color' => '#000000', |
| 37 |
]; |
| 38 |
$this->access = 'free'; |
| 39 |
$this->elements = [ |
| 40 |
ColumnLayout::get_object_data( |
| 41 |
4, |
| 42 |
[ |
| 43 |
'children' => [ |
| 44 |
Column::get_object_data( |
| 45 |
29, |
| 46 |
[ |
| 47 |
'children' => [ |
| 48 |
Logo::get_object_data( |
| 49 |
[ |
| 50 |
'padding' => [ |
| 51 |
'top' => '10', |
| 52 |
'right' => '10', |
| 53 |
'bottom' => '10', |
| 54 |
'left' => '0', |
| 55 |
], |
| 56 |
'background_color' => '#ffffff00', |
| 57 |
'src' => 'https://images.wpbrandy.com/uploads/woo-black-logo.png', |
| 58 |
'align' => 'left', |
| 59 |
'width' => '116', |
| 60 |
'url' => '#', |
| 61 |
'alt' => 'Store logo', |
| 62 |
] |
| 63 |
), |
| 64 |
], |
| 65 |
'border' => [ |
| 66 |
'side' => 'none', |
| 67 |
'width' => '1', |
| 68 |
'style' => 'solid', |
| 69 |
'color' => '#e5e5e5', |
| 70 |
'custom' => [ |
| 71 |
'top' => '1', |
| 72 |
'right' => '1', |
| 73 |
'bottom' => '1', |
| 74 |
'left' => '1', |
| 75 |
], |
| 76 |
], |
| 77 |
] |
| 78 |
), |
| 79 |
Column::get_object_data( |
| 80 |
34.49, |
| 81 |
[ |
| 82 |
'children' => [ |
| 83 |
Text::get_object_data( |
| 84 |
[ |
| 85 |
'padding' => [ |
| 86 |
'top' => '15', |
| 87 |
'right' => '0', |
| 88 |
'bottom' => '15', |
| 89 |
'left' => '0', |
| 90 |
], |
| 91 |
'background_color' => '#ffffff00', |
| 92 |
'border' => [ |
| 93 |
'side' => 'none', |
| 94 |
'width' => '1', |
| 95 |
'style' => 'solid', |
| 96 |
'color' => '#e5e5e5', |
| 97 |
'custom' => [ |
| 98 |
'top' => '1', |
| 99 |
'right' => '1', |
| 100 |
'bottom' => '1', |
| 101 |
'left' => '1', |
| 102 |
], |
| 103 |
], |
| 104 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 105 |
'text_color' => '#1a1a1a', |
| 106 |
'rich_text' => '<p style="text-align: right"><span style="font-size: 16px">My Account</span></p>', |
| 107 |
] |
| 108 |
), |
| 109 |
], |
| 110 |
'border' => [ |
| 111 |
'side' => 'none', |
| 112 |
'width' => '1', |
| 113 |
'style' => 'solid', |
| 114 |
'color' => '#e5e5e5', |
| 115 |
'custom' => [ |
| 116 |
'top' => '1', |
| 117 |
'right' => '1', |
| 118 |
'bottom' => '1', |
| 119 |
'left' => '1', |
| 120 |
], |
| 121 |
], |
| 122 |
] |
| 123 |
), |
| 124 |
Column::get_object_data( |
| 125 |
27.76, |
| 126 |
[ |
| 127 |
'children' => [ |
| 128 |
Text::get_object_data( |
| 129 |
[ |
| 130 |
'padding' => [ |
| 131 |
'top' => '15', |
| 132 |
'right' => '0', |
| 133 |
'bottom' => '15', |
| 134 |
'left' => '0', |
| 135 |
], |
| 136 |
'background_color' => '#ffffff00', |
| 137 |
'border' => [ |
| 138 |
'side' => 'none', |
| 139 |
'width' => '1', |
| 140 |
'style' => 'solid', |
| 141 |
'color' => '#e5e5e5', |
| 142 |
'custom' => [ |
| 143 |
'top' => '1', |
| 144 |
'right' => '1', |
| 145 |
'bottom' => '1', |
| 146 |
'left' => '1', |
| 147 |
], |
| 148 |
], |
| 149 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 150 |
'text_color' => '#1a1a1a', |
| 151 |
'rich_text' => '<p style="text-align: center"><span style="font-size: 16px">Order Tracking</span></p>', |
| 152 |
] |
| 153 |
), |
| 154 |
], |
| 155 |
'border' => [ |
| 156 |
'side' => 'none', |
| 157 |
'width' => '1', |
| 158 |
'style' => 'solid', |
| 159 |
'color' => '#e5e5e5', |
| 160 |
'custom' => [ |
| 161 |
'top' => '1', |
| 162 |
'right' => '1', |
| 163 |
'bottom' => '1', |
| 164 |
'left' => '1', |
| 165 |
], |
| 166 |
], |
| 167 |
] |
| 168 |
), |
| 169 |
Column::get_object_data( |
| 170 |
8.75, |
| 171 |
[ |
| 172 |
'children' => [ |
| 173 |
Text::get_object_data( |
| 174 |
[ |
| 175 |
'padding' => [ |
| 176 |
'top' => '15', |
| 177 |
'right' => '2', |
| 178 |
'bottom' => '15', |
| 179 |
'left' => '0', |
| 180 |
], |
| 181 |
'background_color' => '#ffffff00', |
| 182 |
'border' => [ |
| 183 |
'side' => 'none', |
| 184 |
'width' => '1', |
| 185 |
'style' => 'solid', |
| 186 |
'color' => '#e5e5e5', |
| 187 |
'custom' => [ |
| 188 |
'top' => '1', |
| 189 |
'right' => '1', |
| 190 |
'bottom' => '1', |
| 191 |
'left' => '1', |
| 192 |
], |
| 193 |
], |
| 194 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 195 |
'text_color' => '#1a1a1a', |
| 196 |
'rich_text' => '<p style="text-align: right"><span style="font-size: 16px">Contact</span></p>', |
| 197 |
] |
| 198 |
), |
| 199 |
], |
| 200 |
'border' => [ |
| 201 |
'side' => 'none', |
| 202 |
'width' => '1', |
| 203 |
'style' => 'solid', |
| 204 |
'color' => '#e5e5e5', |
| 205 |
'custom' => [ |
| 206 |
'top' => '1', |
| 207 |
'right' => '1', |
| 208 |
'bottom' => '1', |
| 209 |
'left' => '1', |
| 210 |
], |
| 211 |
], |
| 212 |
] |
| 213 |
), |
| 214 |
], |
| 215 |
'column_width' => [], |
| 216 |
'column_spacing' => '0', |
| 217 |
'responsive_on_mobile' => false, |
| 218 |
'vertical_align' => 'top', |
| 219 |
'padding' => [ |
| 220 |
'top' => '15', |
| 221 |
'right' => '50', |
| 222 |
'bottom' => '15', |
| 223 |
'left' => '50', |
| 224 |
], |
| 225 |
'border' => [ |
| 226 |
'side' => 'none', |
| 227 |
'width' => '1', |
| 228 |
'style' => 'solid', |
| 229 |
'color' => '#e5e5e5', |
| 230 |
'custom' => [ |
| 231 |
'top' => '1', |
| 232 |
'right' => '1', |
| 233 |
'bottom' => '1', |
| 234 |
'left' => '1', |
| 235 |
], |
| 236 |
], |
| 237 |
'border_radius' => [ |
| 238 |
'top_left' => '0', |
| 239 |
'top_right' => '0', |
| 240 |
'bottom_left' => '0', |
| 241 |
'bottom_right' => '0', |
| 242 |
], |
| 243 |
'background_color' => '#ffffff', |
| 244 |
'background_image' => [ |
| 245 |
'url' => '', |
| 246 |
'position' => 'default', |
| 247 |
'x_position' => 0, |
| 248 |
'y_position' => 0, |
| 249 |
'repeat' => 'default', |
| 250 |
'size' => 'default', |
| 251 |
], |
| 252 |
'inner_border_radius' => [ |
| 253 |
'top_left' => '0', |
| 254 |
'top_right' => '0', |
| 255 |
'bottom_left' => '0', |
| 256 |
'bottom_right' => '0', |
| 257 |
], |
| 258 |
'inner_background_color' => '#ffffff00', |
| 259 |
] |
| 260 |
), |
| 261 |
ColumnLayout::get_object_data( |
| 262 |
1, |
| 263 |
[ |
| 264 |
'children' => [ |
| 265 |
Column::get_object_data( |
| 266 |
100, |
| 267 |
[ |
| 268 |
'children' => [ |
| 269 |
Heading::get_object_data( |
| 270 |
[ |
| 271 |
'padding' => [ |
| 272 |
'top' => '0', |
| 273 |
'right' => '0', |
| 274 |
'bottom' => '12', |
| 275 |
'left' => '0', |
| 276 |
], |
| 277 |
'background_color' => '#ffffff00', |
| 278 |
'border' => [ |
| 279 |
'side' => 'none', |
| 280 |
'width' => '1', |
| 281 |
'style' => 'solid', |
| 282 |
'color' => '#e5e5e5', |
| 283 |
'custom' => [ |
| 284 |
'top' => '1', |
| 285 |
'right' => '1', |
| 286 |
'bottom' => '1', |
| 287 |
'left' => '1', |
| 288 |
], |
| 289 |
], |
| 290 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 291 |
'text_color' => '#000000', |
| 292 |
'rich_text' => '<h1 style="font-size: 40px;font-weight: bold;line-height: 1.15 !important;margin: 0;color: #000000"><span style="font-size: 36px">Thanks for Your Order!</span></h1>', |
| 293 |
] |
| 294 |
), |
| 295 |
Text::get_object_data( |
| 296 |
[ |
| 297 |
'padding' => [ |
| 298 |
'top' => '0', |
| 299 |
'right' => '0', |
| 300 |
'bottom' => '0', |
| 301 |
'left' => '0', |
| 302 |
], |
| 303 |
'background_color' => '#ffffff00', |
| 304 |
'border' => [ |
| 305 |
'side' => 'none', |
| 306 |
'width' => '1', |
| 307 |
'style' => 'solid', |
| 308 |
'color' => '#e5e5e5', |
| 309 |
'custom' => [ |
| 310 |
'top' => '1', |
| 311 |
'right' => '1', |
| 312 |
'bottom' => '1', |
| 313 |
'left' => '1', |
| 314 |
], |
| 315 |
], |
| 316 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 317 |
'text_color' => '#1a1a1a', |
| 318 |
'rich_text' => '<p><span style="font-size: 14px">Order #[yaymail_order_id is_plain="true"] • Placed on [yaymail_order_date]</span></p> |
| 319 |
<p><span style="font-size: 14px">Status: Processing</span></p>', |
| 320 |
] |
| 321 |
), |
| 322 |
], |
| 323 |
'border' => [ |
| 324 |
'side' => 'none', |
| 325 |
'width' => '1', |
| 326 |
'style' => 'solid', |
| 327 |
'color' => '#e5e5e5', |
| 328 |
'custom' => [ |
| 329 |
'top' => '1', |
| 330 |
'right' => '1', |
| 331 |
'bottom' => '1', |
| 332 |
'left' => '1', |
| 333 |
], |
| 334 |
], |
| 335 |
] |
| 336 |
), |
| 337 |
], |
| 338 |
'column_width' => [], |
| 339 |
'column_spacing' => '0', |
| 340 |
'responsive_on_mobile' => false, |
| 341 |
'vertical_align' => 'top', |
| 342 |
'padding' => [ |
| 343 |
'top' => '40', |
| 344 |
'right' => '50', |
| 345 |
'bottom' => '40', |
| 346 |
'left' => '50', |
| 347 |
], |
| 348 |
'border' => [ |
| 349 |
'side' => 'none', |
| 350 |
'width' => '1', |
| 351 |
'style' => 'solid', |
| 352 |
'color' => '#e5e5e5', |
| 353 |
'custom' => [ |
| 354 |
'top' => '1', |
| 355 |
'right' => '1', |
| 356 |
'bottom' => '1', |
| 357 |
'left' => '1', |
| 358 |
], |
| 359 |
], |
| 360 |
'border_radius' => [ |
| 361 |
'top_left' => 0, |
| 362 |
'top_right' => 0, |
| 363 |
'bottom_left' => 0, |
| 364 |
'bottom_right' => 10, |
| 365 |
], |
| 366 |
'background_color' => '#ffffff', |
| 367 |
'background_image' => [ |
| 368 |
'url' => 'https://images.wpbrandy.com/uploads/techjourney-background.png', |
| 369 |
'position' => 'default', |
| 370 |
'repeat' => 'no-repeat', |
| 371 |
'size' => 'cover', |
| 372 |
], |
| 373 |
'inner_border_radius' => [ |
| 374 |
'top_left' => '0', |
| 375 |
'top_right' => '0', |
| 376 |
'bottom_left' => '0', |
| 377 |
'bottom_right' => '0', |
| 378 |
], |
| 379 |
'inner_background_color' => '#ffffff00', |
| 380 |
] |
| 381 |
), |
| 382 |
ColumnLayout::get_object_data( |
| 383 |
1, |
| 384 |
[ |
| 385 |
'children' => [ |
| 386 |
Column::get_object_data( |
| 387 |
100, |
| 388 |
[ |
| 389 |
'children' => [ |
| 390 |
OrderProgress::get_object_data( |
| 391 |
[ |
| 392 |
'padding' => [ |
| 393 |
'top' => '24', |
| 394 |
'right' => 20, |
| 395 |
'bottom' => '24', |
| 396 |
'left' => 20, |
| 397 |
], |
| 398 |
'background_color' => '#ffffff', |
| 399 |
'display_style' => 'filled_bar', |
| 400 |
'current_step_index' => 1, |
| 401 |
'connector_height' => '3', |
| 402 |
'connector_active_color' => '#e2e6ee66', |
| 403 |
'connector_inactive_color' => '#e2e6ee66', |
| 404 |
'label_active_color' => '#000000', |
| 405 |
'label_inactive_color' => '#1a1a1a', |
| 406 |
'icon_size' => '24', |
| 407 |
'filled_bar_icon_border_radius' => '50', |
| 408 |
'label_font_size' => '14', |
| 409 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 410 |
'steps' => [ |
| 411 |
[ |
| 412 |
'title' => 'Ordered', |
| 413 |
'image_url' => 'https://images.wpbrandy.com/uploads/black-check.png', |
| 414 |
'image_bg_color' => '#c0ff7c', |
| 415 |
'icon_border_color' => '#000000', |
| 416 |
'icon_border_style' => 'solid', |
| 417 |
'icon_border_width' => 2, |
| 418 |
], |
| 419 |
[ |
| 420 |
'title' => 'Processing', |
| 421 |
'image_url' => 'https://images.wpbrandy.com/uploads/black-dot.png', |
| 422 |
'image_bg_color' => '#c0ff7c', |
| 423 |
'icon_border_color' => '#000000', |
| 424 |
'icon_border_style' => 'solid', |
| 425 |
'icon_border_width' => 2, |
| 426 |
], |
| 427 |
[ |
| 428 |
'title' => 'Completed', |
| 429 |
'image_url' => 'https://images.wpbrandy.com/uploads/white-circle.png', |
| 430 |
'image_bg_color' => '#ffffff', |
| 431 |
'icon_border_color' => '#dedede', |
| 432 |
'icon_border_style' => 'dashed', |
| 433 |
'icon_border_width' => 3, |
| 434 |
], |
| 435 |
], |
| 436 |
] |
| 437 |
), |
| 438 |
], |
| 439 |
'border' => [ |
| 440 |
'side' => 'all', |
| 441 |
'width' => '1', |
| 442 |
'style' => 'solid', |
| 443 |
'color' => '#00000014', |
| 444 |
'custom' => [ |
| 445 |
'top' => '1', |
| 446 |
'right' => '1', |
| 447 |
'bottom' => '1', |
| 448 |
'left' => '1', |
| 449 |
], |
| 450 |
], |
| 451 |
] |
| 452 |
), |
| 453 |
], |
| 454 |
'column_width' => [], |
| 455 |
'column_spacing' => '0', |
| 456 |
'responsive_on_mobile' => false, |
| 457 |
'vertical_align' => 'top', |
| 458 |
'padding' => [ |
| 459 |
'top' => '15', |
| 460 |
'right' => 30, |
| 461 |
'bottom' => '15', |
| 462 |
'left' => 30, |
| 463 |
], |
| 464 |
'border' => [ |
| 465 |
'side' => 'none', |
| 466 |
'width' => '1', |
| 467 |
'style' => 'solid', |
| 468 |
'color' => '#e5e5e5', |
| 469 |
'custom' => [ |
| 470 |
'top' => '1', |
| 471 |
'right' => '1', |
| 472 |
'bottom' => '1', |
| 473 |
'left' => '1', |
| 474 |
], |
| 475 |
], |
| 476 |
'border_radius' => [ |
| 477 |
'top_left' => '0', |
| 478 |
'top_right' => '0', |
| 479 |
'bottom_left' => '0', |
| 480 |
'bottom_right' => '0', |
| 481 |
], |
| 482 |
'background_color' => '#fff', |
| 483 |
'background_image' => [ |
| 484 |
'url' => '', |
| 485 |
'position' => 'default', |
| 486 |
'x_position' => 0, |
| 487 |
'y_position' => 0, |
| 488 |
'repeat' => 'default', |
| 489 |
'size' => 'default', |
| 490 |
], |
| 491 |
'inner_border_radius' => [ |
| 492 |
'top_left' => 12, |
| 493 |
'top_right' => 12, |
| 494 |
'bottom_left' => 12, |
| 495 |
'bottom_right' => 12, |
| 496 |
], |
| 497 |
'inner_background_color' => '#ffffff00', |
| 498 |
] |
| 499 |
), |
| 500 |
Text::get_object_data( |
| 501 |
[ |
| 502 |
'padding' => [ |
| 503 |
'top' => 20, |
| 504 |
'right' => 30, |
| 505 |
'bottom' => 10, |
| 506 |
'left' => 30, |
| 507 |
], |
| 508 |
'background_color' => '#ffffff', |
| 509 |
'border' => [ |
| 510 |
'side' => 'none', |
| 511 |
'width' => '1', |
| 512 |
'style' => 'solid', |
| 513 |
'color' => '#e5e5e5', |
| 514 |
'custom' => [ |
| 515 |
'top' => '1', |
| 516 |
'right' => '1', |
| 517 |
'bottom' => '1', |
| 518 |
'left' => '1', |
| 519 |
], |
| 520 |
], |
| 521 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 522 |
'text_color' => '#1a1a1a', |
| 523 |
'rich_text' => '<p><span style="font-size: 18px">Hi </span><strong style="font-size: 18px">[yaymail_billing_first_name]</strong><span style="font-size: 18px">,</span></p> |
| 524 |
</br> |
| 525 |
<p><span style="font-size: 16px">Thank you for shopping with [yaymail_site_name]!</span></p> |
| 526 |
</br> |
| 527 |
<p><span style="white-space: pre-wrap;font-size: 16px">We\'ve received your order and are getting it ready. You can review your order details below or track its progress anytime.</span></p>', |
| 528 |
] |
| 529 |
), |
| 530 |
Button::get_object_data( |
| 531 |
[ |
| 532 |
'padding' => [ |
| 533 |
'top' => 20, |
| 534 |
'right' => 30, |
| 535 |
'bottom' => 20, |
| 536 |
'left' => 30, |
| 537 |
], |
| 538 |
'background_color' => '#ffffff', |
| 539 |
'button_type' => 'default', |
| 540 |
'align' => 'left', |
| 541 |
'width' => 'custom', |
| 542 |
'custom_width' => 38, |
| 543 |
'height' => 24, |
| 544 |
'button_padding' => [ |
| 545 |
'top' => '12', |
| 546 |
'right' => '20', |
| 547 |
'bottom' => '12', |
| 548 |
'left' => '20', |
| 549 |
], |
| 550 |
'button_background_color' => '#c0ff7c', |
| 551 |
'text_color' => '#1a1a1a', |
| 552 |
'border' => [ |
| 553 |
'side' => 'none', |
| 554 |
'width' => '1', |
| 555 |
'style' => 'solid', |
| 556 |
'color' => '#e5e5e5', |
| 557 |
'custom' => [ |
| 558 |
'top' => '1', |
| 559 |
'right' => '1', |
| 560 |
'bottom' => '1', |
| 561 |
'left' => '1', |
| 562 |
], |
| 563 |
], |
| 564 |
'border_radius' => [ |
| 565 |
'top_left' => 12, |
| 566 |
'top_right' => 12, |
| 567 |
'bottom_right' => 12, |
| 568 |
'bottom_left' => 12, |
| 569 |
], |
| 570 |
'text' => 'View Order', |
| 571 |
'url' => '[yaymail_order_url]', |
| 572 |
'font_size' => '16', |
| 573 |
'weight' => '600', |
| 574 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 575 |
] |
| 576 |
), |
| 577 |
OrderDetails::get_object_data( |
| 578 |
[ |
| 579 |
'rich_text' => '[yaymail_order_details]', |
| 580 |
'payment_instructions' => '[yaymail_payment_instructions]', |
| 581 |
'padding' => [ |
| 582 |
'top' => '15', |
| 583 |
'right' => 20, |
| 584 |
'bottom' => '15', |
| 585 |
'left' => 20, |
| 586 |
], |
| 587 |
'background_color' => '#ffffff', |
| 588 |
'border' => [ |
| 589 |
'side' => 'none', |
| 590 |
'width' => '1', |
| 591 |
'style' => 'solid', |
| 592 |
'color' => '#e5e5e5', |
| 593 |
'custom' => [ |
| 594 |
'top' => '1', |
| 595 |
'right' => '1', |
| 596 |
'bottom' => '1', |
| 597 |
'left' => '1', |
| 598 |
], |
| 599 |
], |
| 600 |
'layout_type' => 'legacy', |
| 601 |
'title' => '<p><span style="font-size: 24px;font-weight: 600">Order Summary</span></p>', |
| 602 |
'title_color' => '#000000', |
| 603 |
'text_color' => '#1a1a1a', |
| 604 |
'border_color' => '#1a1a1a', |
| 605 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 606 |
'table_content_font_size' => 16, |
| 607 |
'table_heading_font_size' => 16, |
| 608 |
'show_table_header' => true, |
| 609 |
'product_title' => 'Product', |
| 610 |
'cost_title' => 'Cost', |
| 611 |
'quantity_title' => 'Quantity', |
| 612 |
'price_title' => 'Price', |
| 613 |
'cart_subtotal_title' => 'Subtotal:', |
| 614 |
'payment_method_title' => 'Payment method:', |
| 615 |
'order_total_title' => 'Total:', |
| 616 |
'order_note_title' => 'Note:', |
| 617 |
'shipping_title' => 'Shipping: [yaymail_shipping_method]', |
| 618 |
'discount_title' => 'Discount:', |
| 619 |
'custom_footer_rows' => [], |
| 620 |
] |
| 621 |
), |
| 622 |
ColumnLayout::get_object_data( |
| 623 |
2, |
| 624 |
[ |
| 625 |
'children' => [ |
| 626 |
Column::get_object_data( |
| 627 |
50, |
| 628 |
[ |
| 629 |
'children' => [ |
| 630 |
ShippingAddress::get_object_data( |
| 631 |
[ |
| 632 |
'padding' => [ |
| 633 |
'top' => '15', |
| 634 |
'right' => 20, |
| 635 |
'bottom' => '15', |
| 636 |
'left' => 20, |
| 637 |
], |
| 638 |
'background_color' => '#fff', |
| 639 |
'layout_type' => 'modern', |
| 640 |
'title_color' => '#1a1a1a', |
| 641 |
'text_color' => '#636363', |
| 642 |
'border_color' => '#e5e5e5', |
| 643 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 644 |
'title' => '<p><span style="font-size: 18px;font-weight: 600">Shipping Address</span></p>', |
| 645 |
'shipping_content_font_size' => 14, |
| 646 |
'shipping_content_alignment' => 'left', |
| 647 |
'shipping_content_text_format' => [ |
| 648 |
'bold' => false, |
| 649 |
'italic' => false, |
| 650 |
'underline' => false, |
| 651 |
], |
| 652 |
'rich_text' => '[yaymail_shipping_address]', |
| 653 |
] |
| 654 |
), |
| 655 |
], |
| 656 |
'border' => [ |
| 657 |
'side' => 'all', |
| 658 |
'width' => '1', |
| 659 |
'style' => 'solid', |
| 660 |
'color' => '#1a1a1a', |
| 661 |
'custom' => [ |
| 662 |
'top' => '1', |
| 663 |
'right' => '1', |
| 664 |
'bottom' => '1', |
| 665 |
'left' => '1', |
| 666 |
], |
| 667 |
], |
| 668 |
] |
| 669 |
), |
| 670 |
Column::get_object_data( |
| 671 |
50, |
| 672 |
[ |
| 673 |
'children' => [ |
| 674 |
BillingAddress::get_object_data( |
| 675 |
[ |
| 676 |
'padding' => [ |
| 677 |
'top' => '15', |
| 678 |
'right' => 20, |
| 679 |
'bottom' => '15', |
| 680 |
'left' => 10, |
| 681 |
], |
| 682 |
'background_color' => '#fff', |
| 683 |
'layout_type' => 'modern', |
| 684 |
'title_color' => '#1a1a1a', |
| 685 |
'text_color' => '#636363', |
| 686 |
'border_color' => '#e5e5e5', |
| 687 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 688 |
'title' => '<p><span style="font-size: 18px;font-weight: 600">Billing Address</span></p>', |
| 689 |
'billing_content_font_size' => '14', |
| 690 |
'billing_content_alignment' => 'left', |
| 691 |
'billing_content_text_format' => [ |
| 692 |
'bold' => false, |
| 693 |
'italic' => false, |
| 694 |
'underline' => false, |
| 695 |
], |
| 696 |
'rich_text' => '[yaymail_billing_address]', |
| 697 |
] |
| 698 |
), |
| 699 |
], |
| 700 |
'border' => [ |
| 701 |
'side' => 'all', |
| 702 |
'width' => '1', |
| 703 |
'style' => 'solid', |
| 704 |
'color' => '#1a1a1a', |
| 705 |
'custom' => [ |
| 706 |
'top' => '1', |
| 707 |
'right' => '1', |
| 708 |
'bottom' => '1', |
| 709 |
'left' => '1', |
| 710 |
], |
| 711 |
], |
| 712 |
] |
| 713 |
), |
| 714 |
], |
| 715 |
'column_width' => [], |
| 716 |
'column_spacing' => 20, |
| 717 |
'responsive_on_mobile' => false, |
| 718 |
'vertical_align' => 'top', |
| 719 |
'padding' => [ |
| 720 |
'top' => '15', |
| 721 |
'right' => 20, |
| 722 |
'bottom' => '15', |
| 723 |
'left' => 20, |
| 724 |
], |
| 725 |
'border' => [ |
| 726 |
'side' => 'none', |
| 727 |
'width' => '1', |
| 728 |
'style' => 'solid', |
| 729 |
'color' => '#e5e5e5', |
| 730 |
'custom' => [ |
| 731 |
'top' => '1', |
| 732 |
'right' => '1', |
| 733 |
'bottom' => '1', |
| 734 |
'left' => '1', |
| 735 |
], |
| 736 |
], |
| 737 |
'border_radius' => [ |
| 738 |
'top_left' => '0', |
| 739 |
'top_right' => '0', |
| 740 |
'bottom_left' => '0', |
| 741 |
'bottom_right' => '0', |
| 742 |
], |
| 743 |
'background_color' => '#fff', |
| 744 |
'background_image' => [ |
| 745 |
'url' => '', |
| 746 |
'position' => 'default', |
| 747 |
'x_position' => 0, |
| 748 |
'y_position' => 0, |
| 749 |
'repeat' => 'default', |
| 750 |
'size' => 'default', |
| 751 |
], |
| 752 |
'inner_border_radius' => [ |
| 753 |
'top_left' => '0', |
| 754 |
'top_right' => '0', |
| 755 |
'bottom_left' => '0', |
| 756 |
'bottom_right' => '0', |
| 757 |
], |
| 758 |
'inner_background_color' => '#ffffff00', |
| 759 |
] |
| 760 |
), |
| 761 |
Text::get_object_data( |
| 762 |
[ |
| 763 |
'padding' => [ |
| 764 |
'top' => '15', |
| 765 |
'right' => 20, |
| 766 |
'bottom' => '15', |
| 767 |
'left' => 20, |
| 768 |
], |
| 769 |
'background_color' => '#fff', |
| 770 |
'border' => [ |
| 771 |
'side' => 'none', |
| 772 |
'width' => '1', |
| 773 |
'style' => 'solid', |
| 774 |
'color' => '#e5e5e5', |
| 775 |
'custom' => [ |
| 776 |
'top' => '1', |
| 777 |
'right' => '1', |
| 778 |
'bottom' => '1', |
| 779 |
'left' => '1', |
| 780 |
], |
| 781 |
], |
| 782 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 783 |
'text_color' => '#1a1a1a', |
| 784 |
'rich_text' => '<p><span style="font-size: 16px">Thanks again for shopping with us! If there\'s anything wrong with your order, please contact our support team within 7 days and we\'ll be happy to help.</span></p>', |
| 785 |
] |
| 786 |
), |
| 787 |
Text::get_object_data( |
| 788 |
[ |
| 789 |
'padding' => [ |
| 790 |
'top' => '15', |
| 791 |
'right' => 20, |
| 792 |
'bottom' => '15', |
| 793 |
'left' => 20, |
| 794 |
], |
| 795 |
'background_color' => '#fff', |
| 796 |
'border' => [ |
| 797 |
'side' => 'none', |
| 798 |
'width' => '1', |
| 799 |
'style' => 'solid', |
| 800 |
'color' => '#e5e5e5', |
| 801 |
'custom' => [ |
| 802 |
'top' => '1', |
| 803 |
'right' => '1', |
| 804 |
'bottom' => '1', |
| 805 |
'left' => '1', |
| 806 |
], |
| 807 |
], |
| 808 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 809 |
'text_color' => '#1a1a1a', |
| 810 |
'rich_text' => '<p><span style="font-size: 16px">Best regards,</span></p> |
| 811 |
<p><span style="font-size: 16px">The <strong>[yaymail_site_name]</strong> Team</span></p>', |
| 812 |
] |
| 813 |
), |
| 814 |
Divider::get_object_data( |
| 815 |
[ |
| 816 |
'align' => 'center', |
| 817 |
'padding' => [ |
| 818 |
'top' => '15', |
| 819 |
'right' => 20, |
| 820 |
'bottom' => '15', |
| 821 |
'left' => 20, |
| 822 |
], |
| 823 |
'width' => '100', |
| 824 |
'height' => 4, |
| 825 |
'background_color' => '#fff', |
| 826 |
'divider_color' => '#1a1a1a', |
| 827 |
'divider_type' => 'solid', |
| 828 |
] |
| 829 |
), |
| 830 |
FeaturedProducts::get_object_data( |
| 831 |
[ |
| 832 |
'padding' => [ |
| 833 |
'top' => 40, |
| 834 |
'right' => 20, |
| 835 |
'bottom' => 60, |
| 836 |
'left' => 20, |
| 837 |
], |
| 838 |
'background_color' => '#ffffff', |
| 839 |
'text_color' => '#1a1a1a', |
| 840 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 841 |
'showing_items' => [ |
| 842 |
'top_content', |
| 843 |
'product_image', |
| 844 |
'product_name', |
| 845 |
'product_price', |
| 846 |
'buy_button', |
| 847 |
], |
| 848 |
'top_content' => '<p style="text-align: center;"><span style="font-size: 24px; font-weight: bold;">You May Also Like</span></p> |
| 849 |
<p style="text-align: center;">Discover more products picked for you.</p> |
| 850 |
</br>', |
| 851 |
'sale_price_color' => '#595f65', |
| 852 |
'regular_price_color' => '#808080', |
| 853 |
'buy_button_label' => 'Shop Now', |
| 854 |
'buy_button_background_color' => '#c0ff7c', |
| 855 |
'buy_button_text_color' => '#1a1a1a', |
| 856 |
'products_per_row' => '3', |
| 857 |
'product_type' => 'newest', |
| 858 |
'categories' => [], |
| 859 |
'tags' => [], |
| 860 |
'products' => [], |
| 861 |
'sorted_by' => 'none', |
| 862 |
'number_of_products' => 3, |
| 863 |
] |
| 864 |
), |
| 865 |
ColumnLayout::get_object_data( |
| 866 |
1, |
| 867 |
[ |
| 868 |
'children' => [ |
| 869 |
Column::get_object_data( |
| 870 |
100, |
| 871 |
[ |
| 872 |
'children' => [ |
| 873 |
Text::get_object_data( |
| 874 |
[ |
| 875 |
'padding' => [ |
| 876 |
'top' => '0', |
| 877 |
'right' => '0', |
| 878 |
'bottom' => '0', |
| 879 |
'left' => '0', |
| 880 |
], |
| 881 |
'background_color' => '#ffffff00', |
| 882 |
'border' => [ |
| 883 |
'side' => 'none', |
| 884 |
'width' => '1', |
| 885 |
'style' => 'solid', |
| 886 |
'color' => '#e5e5e5', |
| 887 |
'custom' => [ |
| 888 |
'top' => '1', |
| 889 |
'right' => '1', |
| 890 |
'bottom' => '1', |
| 891 |
'left' => '1', |
| 892 |
], |
| 893 |
], |
| 894 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 895 |
'text_color' => '#ffffff', |
| 896 |
'rich_text' => '<p style="text-align: center"><span style="font-size: 16px">For questions, contact <u>hi@yourwoostore.com</u>, visit our <u>FAQs</u>, or <u>chat</u> with us during operating hours for account support</span></p>', |
| 897 |
] |
| 898 |
), |
| 899 |
SocialIcon::get_object_data( |
| 900 |
[ |
| 901 |
'padding' => [ |
| 902 |
'top' => '20', |
| 903 |
'right' => '0', |
| 904 |
'bottom' => '12', |
| 905 |
'left' => '0', |
| 906 |
], |
| 907 |
'background_color' => '#ffffff00', |
| 908 |
'align' => 'center', |
| 909 |
'width_icon' => '32', |
| 910 |
'spacing' => '12', |
| 911 |
'theme' => 'Colorful', |
| 912 |
'icon_list' => [ |
| 913 |
[ |
| 914 |
'icon' => 'facebook', |
| 915 |
'url' => '#', |
| 916 |
], |
| 917 |
[ |
| 918 |
'icon' => 'instagram', |
| 919 |
'url' => '#', |
| 920 |
], |
| 921 |
[ |
| 922 |
'icon' => 'tiktok', |
| 923 |
'url' => '#', |
| 924 |
], |
| 925 |
[ |
| 926 |
'icon' => 'youtube', |
| 927 |
'url' => '#', |
| 928 |
], |
| 929 |
], |
| 930 |
] |
| 931 |
), |
| 932 |
Text::get_object_data( |
| 933 |
[ |
| 934 |
'padding' => [ |
| 935 |
'top' => '0', |
| 936 |
'right' => '0', |
| 937 |
'bottom' => 0, |
| 938 |
'left' => '0', |
| 939 |
], |
| 940 |
'background_color' => '#ffffff00', |
| 941 |
'border' => [ |
| 942 |
'side' => 'none', |
| 943 |
'width' => '1', |
| 944 |
'style' => 'solid', |
| 945 |
'color' => '#e5e5e5', |
| 946 |
'custom' => [ |
| 947 |
'top' => '1', |
| 948 |
'right' => '1', |
| 949 |
'bottom' => '1', |
| 950 |
'left' => '1', |
| 951 |
], |
| 952 |
], |
| 953 |
'font_family' => '"Outfit", "DM Sans", sans-serif', |
| 954 |
'text_color' => '#ffffff', |
| 955 |
'rich_text' => '<p style="text-align: center"><span style="font-size: 12px">© 2026 [yaymail_site_name]. All rights reserved.</span></p>', |
| 956 |
] |
| 957 |
), |
| 958 |
], |
| 959 |
'border' => [ |
| 960 |
'side' => 'none', |
| 961 |
'width' => '1', |
| 962 |
'style' => 'solid', |
| 963 |
'color' => '#e5e5e5', |
| 964 |
'custom' => [ |
| 965 |
'top' => '1', |
| 966 |
'right' => '1', |
| 967 |
'bottom' => '1', |
| 968 |
'left' => '1', |
| 969 |
], |
| 970 |
], |
| 971 |
] |
| 972 |
), |
| 973 |
], |
| 974 |
'column_width' => [], |
| 975 |
'column_spacing' => '0', |
| 976 |
'responsive_on_mobile' => false, |
| 977 |
'vertical_align' => 'top', |
| 978 |
'padding' => [ |
| 979 |
'top' => 40, |
| 980 |
'right' => 40, |
| 981 |
'bottom' => 40, |
| 982 |
'left' => 40, |
| 983 |
], |
| 984 |
'border' => [ |
| 985 |
'side' => 'none', |
| 986 |
'width' => '1', |
| 987 |
'style' => 'solid', |
| 988 |
'color' => '#e5e5e5', |
| 989 |
'custom' => [ |
| 990 |
'top' => '1', |
| 991 |
'right' => '1', |
| 992 |
'bottom' => '1', |
| 993 |
'left' => '1', |
| 994 |
], |
| 995 |
], |
| 996 |
'border_radius' => [ |
| 997 |
'top_left' => '0', |
| 998 |
'top_right' => '0', |
| 999 |
'bottom_left' => '0', |
| 1000 |
'bottom_right' => '0', |
| 1001 |
], |
| 1002 |
'background_color' => '#1a1a1a', |
| 1003 |
'background_image' => [ |
| 1004 |
'url' => '', |
| 1005 |
'position' => 'default', |
| 1006 |
'x_position' => 0, |
| 1007 |
'y_position' => 0, |
| 1008 |
'repeat' => 'default', |
| 1009 |
'size' => 'default', |
| 1010 |
], |
| 1011 |
'inner_border_radius' => [ |
| 1012 |
'top_left' => '0', |
| 1013 |
'top_right' => '0', |
| 1014 |
'bottom_left' => '0', |
| 1015 |
'bottom_right' => '0', |
| 1016 |
], |
| 1017 |
'inner_background_color' => '#ffffff00', |
| 1018 |
] |
| 1019 |
), |
| 1020 |
]; |
| 1021 |
} |
| 1022 |
} |
| 1023 |
|