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

@@ -451,13 +451,17 @@ class BookStoreWithCoupon {
],
3 =>
[
'type' => 'button',
'text' => 'Coupon_Code',
'url' => '',
'styles' =>
[
'block' =>
[
'productIds' => [],
'excludedProductIds' => [],
'productCategories' => [],
'excludedProductCategories' => [],
'type' => 'coupon',
'amount' => 10,
'amountMax' => 100,
'discountType' => 'percent',
'expiryDay' => 10,
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
'borderColor' => '#125674',
'borderWidth' => '3px',
@@ -472,6 +476,7 @@ class BookStoreWithCoupon {
'textAlign' => 'center',
],
],
'code' => 'XXXX-XXXXXXX-XXXX'
],
4 =>
[
@@ -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' =>