Skip to content

Commit ec78cf0

Browse files
PIOXD-327 - Second chance email not twig (#43)
* PIOXD-327 - Fixed second chance email CMS content block to twig
1 parent c055114 commit ec78cf0

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

Core/Events.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected static function addData()
140140
{
141141
self::addPaymentMethods();
142142

143-
self::insertRowIfNotExists('oxcontents', ['OXID' => 'molliesecondchanceemail'], 'INSERT INTO `oxcontents` (`OXID`, `OXLOADID`, `OXSHOPID`, `OXSNIPPET`, `OXTYPE`, `OXACTIVE`, `OXACTIVE_1`, `OXPOSITION`, `OXTITLE`, `OXCONTENT`, `OXTITLE_1`, `OXCONTENT_1`, `OXACTIVE_2`, `OXTITLE_2`, `OXCONTENT_2`, `OXACTIVE_3`, `OXTITLE_3`, `OXCONTENT_3`, `OXCATID`, `OXFOLDER`, `OXTERMVERSION`) VALUES ("molliesecondchanceemail", "molliesecondchanceemail", 1, 1, 0, 1, 1, "", "Mollie Second Chance Email", "Hallo [{ $order->oxorder__oxbillsal->value|oxmultilangsal }] [{ $order->oxorder__oxbillfname->value }] [{ $order->oxorder__oxbilllname->value }],<br>\r\n<br>\r\nVielen Dank für Ihren Einkauf bei [{ $shop->oxshops__oxname->value }]!<br>\r\n<br>\r\nSie k&ouml;nnen Ihren Bestellvorgang abschlie&szlig;en indem Sie auf <a href=\'[{$sFinishPaymentUrl}]\'>diesen Link</a> klicken.", "Mollie Second Chance Email", "Hello [{ $order->oxorder__oxbillsal->value|oxmultilangsal }] [{ $order->oxorder__oxbillfname->value }] [{ $order->oxorder__oxbilllname->value }],<br>\r\n<br>\r\nThank you for shopping with [{ $shop->oxshops__oxname->value }]!<br>\r\n<br>\r\nYou can now finish your order by clicking <a href=\'[{$sFinishPaymentUrl}]\'>here</a>", 1, "", "", 1, "", "", "30e44ab83fdee7564.23264141", "CMSFOLDER_EMAILS", "");');
143+
self::insertRowIfNotExists('oxcontents', ['OXID' => 'molliesecondchanceemail'], 'INSERT INTO `oxcontents` (`OXID`, `OXLOADID`, `OXSHOPID`, `OXSNIPPET`, `OXTYPE`, `OXACTIVE`, `OXACTIVE_1`, `OXPOSITION`, `OXTITLE`, `OXCONTENT`, `OXTITLE_1`, `OXCONTENT_1`, `OXACTIVE_2`, `OXTITLE_2`, `OXCONTENT_2`, `OXACTIVE_3`, `OXTITLE_3`, `OXCONTENT_3`, `OXCATID`, `OXFOLDER`, `OXTERMVERSION`) VALUES ("molliesecondchanceemail", "molliesecondchanceemail", 1, 1, 0, 1, 1, "", "Mollie Second Chance Email", "Hallo {{ order.oxorder__oxbillsal.value|translate_salutation }} {{ order.oxorder__oxbillfname.value }} {{ order.oxorder__oxbilllname.value }},<br>\r\n<br>\r\nVielen Dank für Ihren Einkauf bei {{ shop.oxshops__oxname.value }}!<br>\r\n<br>\r\nSie k&ouml;nnen Ihren Bestellvorgang abschlie&szlig;en indem Sie auf <a href=\'{{ sFinishPaymentUrl }}\'>diesen Link</a> klicken.", "Mollie Second Chance Email", "Hello {{ order.oxorder__oxbillsal.value|translate_salutation }} {{ order.oxorder__oxbillfname.value }} {{ order.oxorder__oxbilllname.value }},<br>\r\n<br>\r\nThank you for shopping with {{ shop.oxshops__oxname.value }}!<br>\r\n<br>\r\nYou can now finish your order by clicking <a href=\'{{ sFinishPaymentUrl }}\'>here</a>", 1, "", "", 1, "", "", "30e44ab83fdee7564.23264141", "CMSFOLDER_EMAILS", "");');
144144
}
145145

146146
/**
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace Mollie\Payment\Migrations;
4+
5+
use Doctrine\DBAL\Schema\Schema;
6+
use Doctrine\DBAL\Types\Types;
7+
use OxidEsales\Eshop\Core\Registry;
8+
use OxidEsales\Eshop\Core\DatabaseProvider;
9+
use Mollie\Payment\Application\Model\BaseMigration;
10+
11+
class Version20250129120000 extends BaseMigration
12+
{
13+
/**
14+
* @param Schema $schema
15+
*/
16+
public function down(Schema $schema): void
17+
{
18+
}
19+
20+
/**
21+
* @param Schema $schema
22+
*/
23+
public function up(Schema $schema): void
24+
{
25+
$this->connection->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
26+
27+
$this->addSql('UPDATE `oxcontents` SET OXCONTENT = "Hallo {{ order.oxorder__oxbillsal.value|translate_salutation }} {{ order.oxorder__oxbillfname.value }} {{ order.oxorder__oxbilllname.value }},<br>\r\n<br>\r\nVielen Dank für Ihren Einkauf bei {{ shop.oxshops__oxname.value }}!<br>\r\n<br>\r\nSie k&ouml;nnen Ihren Bestellvorgang abschlie&szlig;en indem Sie auf <a href=\'{{ sFinishPaymentUrl }}\'>diesen Link</a> klicken." WHERE oxid = "molliesecondchanceemail"');
28+
$this->addSql('UPDATE `oxcontents` SET OXCONTENT_1 = "Hello {{ order.oxorder__oxbillsal.value|translate_salutation }} {{ order.oxorder__oxbillfname.value }} {{ order.oxorder__oxbilllname.value }},<br>\r\n<br>\r\nThank you for shopping with {{ shop.oxshops__oxname.value }}!<br>\r\n<br>\r\nYou can now finish your order by clicking <a href=\'{{ sFinishPaymentUrl }}\'>here</a>" WHERE oxid = "molliesecondchanceemail"');
29+
}
30+
}

0 commit comments

Comments
 (0)