PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / 4.6.5
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution v4.6.5
4.9.2 4.9.1 4.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.1 3.0.0 3.1.0 3.1.1 4.0.0 4.0.1 4.1.0 4.1.1 4.2.0 4.2.1 4.3.0 4.3.1 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 trunk 0.1.2-beta 0.1.3-beta 0.1.4-beta 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.5.0 1.5.1 1.6.0 1.6.1 1.7.0 1.8.0 1.8.1 1.9.0
shopengine / widgets / checkout-coupon-form / checkout-coupon-form.php
shopengine / widgets / checkout-coupon-form Last commit date
screens 3 years ago checkout-coupon-form-config.php 4 years ago checkout-coupon-form.php 3 years ago
checkout-coupon-form.php
664 lines
1 <?php
2
3 namespace Elementor;
4
5 use ShopEngine\Widgets\Products;
6
7 defined('ABSPATH') || exit;
8
9
10 class ShopEngine_Checkout_Coupon_Form extends \ShopEngine\Base\Widget {
11
12 public function config() {
13 return new ShopEngine_Checkout_Coupon_Form_Config();
14 }
15
16 protected function register_controls() {
17
18 $this->start_controls_section(
19 'shopengine_section_checkout_coupon_form_info_style',
20 [
21 'label' => esc_html__('Info', 'shopengine'),
22 'tab' => Controls_Manager::TAB_STYLE,
23 ]
24 );
25
26 $this->add_control(
27 'shopengine_checkout_coupon_form_info_color',
28 [
29 'label' => esc_html__('Color', 'shopengine'),
30 'type' => Controls_Manager::COLOR,
31 'alpha' => false,
32 'default' => '#3a3a3a',
33 'selectors' => [
34 '{{WRAPPER}} .shopengine-checkout-coupon-form .woocommerce-info-toggle, {{WRAPPER}} .shopengine-checkout-coupon-form .woocommerce-info-toggle::before' => 'color: {{VALUE}};',
35 ],
36 ]
37 );
38
39 $this->add_control(
40 'shopengine_checkout_coupon_form_info_link_color',
41 [
42 'label' => esc_html__('Link Color', 'shopengine'),
43 'type' => Controls_Manager::COLOR,
44 'alpha' => false,
45 'default' => '#4169e1',
46 'selectors' => [
47 '{{WRAPPER}} .shopengine-checkout-coupon-form .woocommerce-info-toggle button' => 'color: {{VALUE}};',
48 ],
49 ]
50 );
51
52 $this->add_control(
53 'shopengine_checkout_coupon_form_info_link_hover_color',
54 [
55 'label' => esc_html__('Link Hover Color', 'shopengine'),
56 'type' => Controls_Manager::COLOR,
57 'alpha' => false,
58 'default' => '#FF3F00',
59 'selectors' => [
60 '{{WRAPPER}} .shopengine-checkout-coupon-form .woocommerce-info-toggle button:hover' => 'color: {{VALUE}};',
61 ],
62 ]
63 );
64
65 $this->add_control(
66 'shopengine_checkout_coupon_form_info_bg_color',
67 [
68 'label' => esc_html__('Background', 'shopengine'),
69 'type' => Controls_Manager::COLOR,
70 'alpha' => false,
71 'default' => '#e4e4e4',
72 'selectors' => [
73 '{{WRAPPER}} .shopengine-checkout-coupon-form .woocommerce-info-toggle' => 'background: {{VALUE}};',
74 ],
75 ]
76 );
77
78 $this->add_group_control(
79 Group_Control_Typography::get_type(),
80 [
81 'name' => 'shopengine_checkout_coupon_form_info_typography',
82 'label' => esc_html__('Typography', 'shopengine'),
83 'selector' => '{{WRAPPER}} .shopengine-checkout-coupon-form .woocommerce-info-toggle',
84 'exclude' => ['font_family', 'letter_spacing', 'text_decoration', 'text_transform', 'font_style', 'letter_spacing'],
85 'fields_options' => [
86 'typography' => [
87 'default' => 'custom',
88 ],
89 'font_weight' => [
90 'default' => '500',
91 ],
92 'font_size' => [
93 'label' => esc_html__('Font Size (px)', 'shopengine'),
94 'size_units' => ['px'],
95 'default' => [
96 'size' => '16',
97 'unit' => 'px',
98 ],
99 ],
100 'text_transform' => [
101 'default' => 'none',
102 ],
103 'line_height' => [
104 'label' => esc_html__('Line Height (px)', 'shopengine'),
105 'size_units' => ['px'],
106 'responsive' => false,
107 'default' => [
108 'size' => '22',
109 'unit' => 'px',
110 ],
111 ],
112 'letter_spacing' => [
113 'default' => [
114 'size' => '',
115 ],
116 ],
117 ],
118 ]
119 );
120
121 $this->add_group_control(
122 Group_Control_Border::get_type(),
123 [
124 'name' => 'shopengine_checkout_coupon_form_info_border',
125 'selector' => '{{WRAPPER}} .shopengine-checkout-coupon-form',
126 'separator' => 'before',
127 'fields_options' => [
128 'border' => [
129 'default' => 'solid',
130 ],
131 'width' => [
132 'label' => 'Border Width (px)',
133 'default' => [
134 'top' => '0',
135 'right' => '0',
136 'bottom' => '0',
137 'left' => '0',
138 'isLinked' => false,
139 ],
140 'selectors' => [
141 '{{WRAPPER}} .shopengine-checkout-coupon-form' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
142 '.rtl {{WRAPPER}} .shopengine-checkout-coupon-form' => 'border-width: {{TOP}}{{UNIT}} {{LEFT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{RIGHT}}{{UNIT}};',
143 ]
144 ],
145 'color' => [
146 'label' => 'Border Color',
147 'default' => '#e4e4e4',
148 'alpha' => false
149 ],
150 ],
151 ]
152 );
153
154 $this->add_control(
155 'shopengine_checkout_coupon_form_info_padding',
156 [
157 'label' => esc_html__('Padding (px)', 'shopengine'),
158 'type' => Controls_Manager::DIMENSIONS,
159 'default' => [
160 'top' => '15',
161 'right' => '20',
162 'bottom' => '15',
163 'left' => '20',
164 'unit' => 'px',
165 'isLinked' => false,
166 ],
167 'size_units' => ['px'],
168 'selectors' => [
169 '{{WRAPPER}} .shopengine-checkout-coupon-form .woocommerce-info-toggle' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}; margin: 0;',
170 '.rtl {{WRAPPER}} .shopengine-checkout-coupon-form .woocommerce-info-toggle' => 'padding: {{TOP}}{{UNIT}} {{LEFT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{RIGHT}}{{UNIT}}; margin: 0;',
171 ],
172 'separator' => 'before',
173 ]
174 );
175
176 $this->end_controls_section();
177
178 $this->start_controls_section(
179 'shopengine_section_checkout_coupon_description_style',
180 [
181 'label' => esc_html__('Description', 'shopengine'),
182 'tab' => Controls_Manager::TAB_STYLE,
183 ]
184 );
185
186 $this->add_control(
187 'shopengine_checkout_coupon_form_description_color',
188 [
189 'label' => esc_html__('Color', 'shopengine'),
190 'type' => Controls_Manager::COLOR,
191 'alpha' => false,
192 'default' => '#707070',
193 'selectors' => [
194 '{{WRAPPER}} .shopengine-checkout-coupon-form p' => 'color: {{VALUE}};',
195 ],
196 ]
197 );
198
199 $this->add_group_control(
200 Group_Control_Typography::get_type(),
201 [
202 'name' => 'shopengine_checkout_coupon_form_description_typography',
203 'label' => esc_html__('Typography', 'shopengine'),
204 'selector' => '{{WRAPPER}} .shopengine-checkout-coupon-form p',
205 'exclude' => ['font_family', 'letter_spacing', 'text_decoration', 'text_transform', 'font_style', 'letter_spacing'],
206 'fields_options' => [
207 'typography' => [
208 'default' => 'custom',
209 ],
210 'font_weight' => [
211 'default' => '400',
212 ],
213 'font_size' => [
214 'label' => esc_html__('Font Size (px)', 'shopengine'),
215 'size_units' => ['px'],
216 'default' => [
217 'size' => '16',
218 'unit' => 'px',
219 ],
220 ],
221 'text_transform' => [
222 'default' => 'none',
223 ],
224 'line_height' => [
225 'label' => esc_html__('Line Height (px)', 'shopengine'),
226 'size_units' => ['px'],
227 'responsive' => false,
228 'default' => [
229 'size' => '22',
230 'unit' => 'px',
231 ],
232 ],
233 'letter_spacing' => [
234 'default' => [
235 'size' => '',
236 ],
237 ],
238 ],
239 ]
240 );
241
242 $this->end_controls_section();
243
244 $this->start_controls_section(
245 'shopengine_section_checkout_coupon_form_style',
246 [
247 'label' => esc_html__('Coupon Form', 'shopengine'),
248 'tab' => Controls_Manager::TAB_STYLE,
249 ]
250 );
251
252 $this->add_control(
253 'shopengine_checkout_coupon_form_label_color',
254 [
255 'label' => esc_html__('Color', 'shopengine'),
256 'type' => Controls_Manager::COLOR,
257 'alpha' => false,
258 'default' => '#707070',
259 'selectors' => [
260 '{{WRAPPER}} .shopengine-checkout-coupon-form :is(input, input::placeholder)' => 'color: {{VALUE}} !important;'
261 ],
262 ]
263 );
264
265 $this->add_group_control(
266 Group_Control_Typography::get_type(),
267 [
268 'name' => 'shopengine_checkout_coupon_form_label_typography',
269 'label' => esc_html__('Typography', 'shopengine'),
270 'selector' => '{{WRAPPER}} .shopengine-checkout-coupon-form input',
271 'exclude' => ['font_family', 'letter_spacing', 'text_decoration', 'text_transform', 'font_style', 'letter_spacing'],
272 'fields_options' => [
273 'typography' => [
274 'default' => 'custom',
275 ],
276 'font_weight' => [
277 'default' => '400',
278 ],
279 'font_size' => [
280 'label' => esc_html__('Font Size (px)', 'shopengine'),
281 'size_units' => ['px'],
282 'default' => [
283 'size' => '14',
284 'unit' => 'px',
285 ],
286 ],
287 'text_transform' => [
288 'default' => 'none',
289 ],
290 'line_height' => [
291 'label' => esc_html__('Line Height (px)', 'shopengine'),
292 'size_units' => ['px'],
293 'responsive' => false,
294 'default' => [
295 'size' => '40',
296 'unit' => 'px',
297 ],
298 ],
299 'letter_spacing' => [
300 'default' => [
301 'size' => '',
302 ],
303 ],
304 ],
305 ]
306 );
307
308 $this->add_group_control(
309 Group_Control_Border::get_type(),
310 [
311 'name' => 'shopengine_checkout_coupon_form_label_border',
312 'selector' => '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row input#coupon_code',
313 'fields_options' => [
314 'border' => [
315 'default' => 'solid',
316 ],
317 'width' => [
318 'default' => [
319 'top' => '1',
320 'right' => '1',
321 'bottom' => '1',
322 'left' => '1',
323 'isLinked' => true,
324 ],
325 'selectors' => [
326 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row input#coupon_code' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
327 '.rtl {{WRAPPER}} .shopengine-checkout-coupon-form .form-row input#coupon_code' => 'border-width: {{TOP}}{{UNIT}} {{LEFT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{RIGHT}}{{UNIT}}',
328 ]
329 ],
330 'color' => [
331 'default' => '#dee3ea',
332 'alpha' => false
333 ],
334 ],
335 'separator' => 'before',
336 ]
337 );
338
339 $this->add_control(
340 'shopengine_checkout_coupon_form_label_radius',
341 [
342 'label' => esc_html__('Border Radius (px)', 'shopengine'),
343 'type' => Controls_Manager::DIMENSIONS,
344 'separator' => 'before',
345 'default' => [
346 'top' => '3',
347 'right' => '3',
348 'bottom' => '3',
349 'left' => '3',
350 'unit' => 'px',
351 'isLinked' => false,
352 ],
353 'size_units' => ['px'],
354 'selectors' => [
355 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row input' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
356 '.rtl {{WRAPPER}} .shopengine-checkout-coupon-form .form-row input' => 'border-radius: {{TOP}}{{UNIT}} {{LEFT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{RIGHT}}{{UNIT}};',
357 ],
358 ]
359 );
360
361 $this->add_control(
362 'shopengine_checkout_coupon_form_label_bg_color',
363 [
364 'label' => esc_html__('Background Color', 'shopengine'),
365 'type' => Controls_Manager::COLOR,
366 'alpha' => false,
367 'default' => '',
368 'selectors' => [
369 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row input#coupon_code' => 'background-color: {{VALUE}};'
370 ],
371 ]
372 );
373
374 $this->add_responsive_control(
375 'shopengine_checkout_coupon_form_label_space_between',
376 [
377 'label' => esc_html__('Space In-between', 'shopengine'),
378 'type' => Controls_Manager::SLIDER,
379 'size_units' => ['px'],
380 'range' => [
381 'px' => [
382 'min' => 0,
383 'max' => 50,
384 'step' => 5,
385 ],
386 ],
387 'default' => [
388 'unit' => 'px',
389 'size' => 20,
390 ],
391 'selectors' => [
392 '{{WRAPPER}} .shopengine-checkout-coupon-form .shopengine-checkout-coupon .form-row.form-row-last' => 'margin-left:{{SIZE}}{{UNIT}};',
393 ],
394 ]
395 );
396
397 $this->add_control(
398 'shopengine_checkout_coupon_form_label_padding',
399 [
400 'label' => esc_html__('Padding (px)', 'shopengine'),
401 'type' => Controls_Manager::DIMENSIONS,
402 'default' => [
403 'top' => '0',
404 'right' => '15',
405 'bottom' => '0',
406 'left' => '15',
407 'unit' => 'px',
408 'isLinked' => false,
409 ],
410 'size_units' => ['px'],
411 'selectors' => [
412 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row input' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
413 '.rtl {{WRAPPER}} .shopengine-checkout-coupon-form .form-row input' => 'padding: {{TOP}}{{UNIT}} {{LEFT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{RIGHT}}{{UNIT}};',
414 ],
415 'separator' => 'before',
416 ]
417 );
418
419 $this->end_controls_section();
420
421 $this->start_controls_section(
422 'shopengine_section_checkout_coupon_form_button_style',
423 [
424 'label' => esc_html__('Apply Button', 'shopengine'),
425 'tab' => Controls_Manager::TAB_STYLE,
426 ]
427 );
428
429 $this->add_group_control(
430 Group_Control_Typography::get_type(),
431 [
432 'name' => 'shopengine_section_checkout_coupon_form_button_typography',
433 'label' => esc_html__('Typography', 'shopengine'),
434 'exclude' => ['font_family', 'letter_spacing', 'text_decoration', 'font_style', 'letter_spacing'],
435 'selector' => '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row button',
436 'fields_options' => [
437 'typography' => [
438 'default' => 'custom',
439 ],
440 'font_weight' => [
441 'default' => '500',
442 ],
443 'font_size' => [
444 'label' => esc_html__('Font Size (px)', 'shopengine'),
445 'size_units' => ['px'],
446 'default' => [
447 'size' => '16',
448 'unit' => 'px',
449 ],
450 ],
451 'text_transform' => [
452 'default' => 'none',
453 ],
454 'line_height' => [
455 'label' => esc_html__('Line Height (px)', 'shopengine'),
456 'size_units' => ['px'],
457 'responsive' => false,
458 'default' => [
459 'size' => '38',
460 'unit' => 'px',
461 ],
462 ],
463 ],
464 ]
465 );
466
467 $this->start_controls_tabs(
468 'shopengine_coupon_form_button_tabs'
469 );
470
471 $this->start_controls_tab(
472 'shopengine_coupon_form_button_normal_tab',
473 [
474 'label' => esc_html__('Normal', 'shopengine'),
475 ]
476 );
477
478 $this->add_control(
479 'shopengine_coupon_form_button_color',
480 [
481 'label' => esc_html__('Color', 'shopengine'),
482 'type' => Controls_Manager::COLOR,
483 'alpha' => false,
484 'default' => '#FFFFFF',
485 'selectors' => [
486 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row button' => 'color: {{VALUE}};',
487 ],
488 ]
489 );
490
491 $this->add_control(
492 'shopengine_coupon_form_button_background_color',
493 [
494 'label' => esc_html__('Background', 'shopengine'),
495 'type' => Controls_Manager::COLOR,
496 'alpha' => false,
497 'default' => '#3A3A3A',
498 'selectors' => [
499 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row button' => 'background: {{VALUE}};',
500 ],
501 ]
502 );
503
504 $this->end_controls_tab();
505
506 $this->start_controls_tab(
507 'shopengine_coupon_form_button_hover_tab',
508 [
509 'label' => esc_html__('Hover', 'shopengine'),
510 ]
511 );
512
513 $this->add_control(
514 'shopengine_coupon_form_button_hover_color',
515 [
516 'label' => esc_html__('Color', 'shopengine'),
517 'type' => Controls_Manager::COLOR,
518 'alpha' => false,
519 'default' => '',
520 'selectors' => [
521 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row button:hover' => 'color: {{VALUE}};',
522 ],
523 ]
524 );
525
526 $this->add_control(
527 'shopengine_coupon_form_button_background_hover_color',
528 [
529 'label' => esc_html__('Background', 'shopengine'),
530 'type' => Controls_Manager::COLOR,
531 'alpha' => false,
532 'default' => '#645f5f',
533 'selectors' => [
534 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row button:hover' => 'background: {{VALUE}};',
535 ],
536 ]
537 );
538
539 $this->end_controls_tab();
540 $this->end_controls_tabs();
541
542 $this->add_group_control(
543 Group_Control_Border::get_type(),
544 [
545 'name' => 'shopengine_coupon_form_border',
546 'selector' => '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row button',
547 'fields_options' => [
548 'border' => [
549 'default' => 'solid',
550 ],
551 'width' => [
552 'default' => [
553 'top' => '1',
554 'right' => '1',
555 'bottom' => '1',
556 'left' => '1',
557 'isLinked' => true,
558 ],
559 'selectors' => [
560 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row button' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
561 '.rtl {{WRAPPER}} .shopengine-checkout-coupon-form .form-row button' => 'border-width: {{TOP}}{{UNIT}} {{LEFT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{RIGHT}}{{UNIT}}',
562 ]
563 ],
564 'color' => [
565 'default' => '#3A3A3A',
566 'alpha' => false
567 ],
568 ],
569 'separator' => 'before',
570 ]
571 );
572
573 $this->add_control(
574 'shopengine_coupon_form_border_radius',
575 [
576 'label' => esc_html__('Border Radius (px)', 'shopengine'),
577 'type' => Controls_Manager::DIMENSIONS,
578 'separator' => 'before',
579 'default' => [
580 'top' => '3',
581 'right' => '3',
582 'bottom' => '3',
583 'left' => '3',
584 'unit' => 'px',
585 'isLinked' => false,
586 ],
587 'size_units' => ['px'],
588 'selectors' => [
589 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
590 '.rtl {{WRAPPER}} .shopengine-checkout-coupon-form .form-row button' => 'border-radius: {{TOP}}{{UNIT}} {{LEFT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{RIGHT}}{{UNIT}};',
591 ],
592 ]
593 );
594
595 $this->add_group_control(
596 Group_Control_Box_Shadow::get_type(),
597 [
598 'name' => 'shopengine_coupon_form_button_box_shadow',
599 'selector' => '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row button',
600 ]
601 );
602
603 $this->add_control(
604 'shopengine_coupon_form_button_padding',
605 [
606 'label' => esc_html__('Padding (px)', 'shopengine'),
607 'type' => Controls_Manager::DIMENSIONS,
608 'default' => [
609 'top' => '0',
610 'right' => '15',
611 'bottom' => '2',
612 'left' => '15',
613 'unit' => 'px',
614 'isLinked' => false,
615 ],
616 'size_units' => ['px'],
617 'selectors' => [
618 '{{WRAPPER}} .shopengine-checkout-coupon-form .form-row button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
619 '.rtl {{WRAPPER}} .shopengine-checkout-coupon-form .form-row button' => 'padding: {{TOP}}{{UNIT}} {{LEFT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{RIGHT}}{{UNIT}};',
620 ],
621 'separator' => 'before',
622 ]
623 );
624
625 $this->end_controls_section();
626
627 //Global font family option
628 $this->start_controls_section(
629 'shopengine_coupon_form_typography',
630 array(
631 'label' => esc_html__('Global Font', 'shopengine'),
632 'tab' => Controls_Manager::TAB_STYLE,
633 )
634 );
635
636 $this->add_control(
637 'shopengine_coupon_form_font_family',
638 [
639 'label' => esc_html__('Font Family', 'shopengine'),
640 'description' => esc_html__('This font family is set for this specific widget.', 'shopengine'),
641 'type' => Controls_Manager::FONT,
642 'default' => '',
643 'selectors' => [
644 '{{WRAPPER}} .shopengine-checkout-coupon-form p,
645 {{WRAPPER}} .shopengine-checkout-coupon-form input,
646 {{WRAPPER}} .shopengine-checkout-coupon-form .form-row button,
647 {{WRAPPER}} .shopengine-checkout-coupon-form .woocommerce-info-toggle' => 'font-family: {{VALUE}}',
648 ],
649 ]
650 );
651
652 $this->end_controls_section();
653 }
654
655 protected function screen() {
656
657 $settings = $this->get_settings_for_display();
658
659 $tpl = Products::instance()->get_widget_template($this->get_name());
660
661 include $tpl;
662 }
663 }
664