diff --git a/mailpoet/lib/Config/PopulatorData/Templates/BookStoreWithCoupon.php b/mailpoet/lib/Config/PopulatorData/Templates/BookStoreWithCoupon.php index c4c5d00032..67024af2be 100644 --- a/mailpoet/lib/Config/PopulatorData/Templates/BookStoreWithCoupon.php +++ b/mailpoet/lib/Config/PopulatorData/Templates/BookStoreWithCoupon.php @@ -450,29 +450,34 @@ class BookStoreWithCoupon { 'text' => '

20% off all books

', ], 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' =>