Add Coupon block to Book store Newsletter template

MAILPOET-4764
This commit is contained in:
Oluwaseun Olorunsola
2023-02-08 17:24:54 +01:00
committed by Aschepikov
parent 526e631f6e
commit 14046affd7

View File

@@ -450,29 +450,34 @@ class BookStoreWithCoupon {
'text' => '<h2 style="text-align: center;"><strong>20% off all books</strong></h2>',
],
3 =>
[
'type' => 'button',
'text' => 'Coupon_Code',
'url' => '',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
'borderColor' => '#125674',
'borderWidth' => '3px',
'borderRadius' => '40px',
'borderStyle' => 'solid',
'width' => '288px',
'lineHeight' => '50px',
'fontColor' => '#125674',
'fontFamily' => 'Courier New',
'fontSize' => '26px',
'fontWeight' => 'bold',
'textAlign' => 'center',
],
],
],
[
'productIds' => [],
'excludedProductIds' => [],
'productCategories' => [],
'excludedProductCategories' => [],
'type' => 'coupon',
'amount' => 10,
'amountMax' => 100,
'discountType' => 'percent',
'expiryDay' => 10,
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
'borderColor' => '#125674',
'borderWidth' => '3px',
'borderRadius' => '40px',
'borderStyle' => 'solid',
'width' => '288px',
'lineHeight' => '50px',
'fontColor' => '#125674',
'fontFamily' => 'Courier New',
'fontSize' => '26px',
'fontWeight' => 'bold',
'textAlign' => 'center',
],
],
'code' => 'XXXX-XXXXXXX-XXXX'
],
4 =>
[
'type' => 'image',
@@ -1015,30 +1020,6 @@ class BookStoreWithCoupon {
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
'button' =>
[
'text' => 'Coupon_Code',
'url' => '',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
'borderColor' => '#125674',
'borderWidth' => '3px',
'borderRadius' => '40px',
'borderStyle' => 'solid',
'width' => '288px',
'lineHeight' => '50px',
'fontColor' => '#125674',
'fontFamily' => 'Courier New',
'fontSize' => '26px',
'fontWeight' => 'bold',
'textAlign' => 'center',
],
],
'type' => 'button',
],
'divider' =>
[
'styles' =>