-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.6.0, Added: Three static blocks to the E-Mail-Templates
- Loading branch information
Showing
35 changed files
with
274 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
app/code/community/German/LocalePackEn/sql/localepacken_setup/mysql4-install-0.6.0.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/** | ||
* @category German | ||
* @package German_LocalePack | ||
* @authors MaWoScha <mawoscha@siempro.co, http://www.siempro.co/> | ||
* @developer MaWoScha <mawoscha@siempro.co, http://www.siempro.co/> | ||
* @version 0.6.0. | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
$installer = $this; | ||
|
||
$installer->startSetup(); | ||
|
||
$blockContent = <<<EOD | ||
If you have any questions or suggestions, please contact us either | ||
by email <a href="mailto:{{var store_email}}">{{var store_email}}</a>, | ||
by phone at <a href="tel:{{var store_phone}}">{{var store_phone}}</a>, | ||
via <a title="My Service-Site on Skype" href="skype:my.shop?chat" target="_blank">Skype-Chat</a> (Username: my.shop) | ||
or in Facebook on our <a title="My Fanpage in Facebook" href="http://www.facebook.com/my.shop" target="_blank">My Fanpage</a>. | ||
EOD; | ||
|
||
$storeId = 0; | ||
|
||
$staticBlocks = array( | ||
array( | ||
'title' => 'eMail Template Say Hello (en)', | ||
'identifier' => 'email_template_say_hello', | ||
'content' => 'Dear,', | ||
'is_active' => 0, | ||
'stores' => array($storeId) | ||
), | ||
array( | ||
'title' => 'eMail Template Contact (en)', | ||
'identifier' => 'email_template_contact', | ||
'content' => $blockContent, | ||
'is_active' => 0, | ||
'stores' => array($storeId) | ||
), | ||
array( | ||
'title' => 'eMail Template Say Bye (en)', | ||
'identifier' => 'email_template_say_bye', | ||
'content' => 'Thank you!', | ||
'is_active' => 0, | ||
'stores' => array($storeId) | ||
) | ||
); | ||
|
||
/** | ||
* Insert default blocks | ||
*/ | ||
foreach ($staticBlocks as $data) { | ||
try { | ||
Mage::getModel('cms/block')->setData($data)->save(); | ||
} catch (Exception $e) { | ||
# To prevent exception "A block identifier with the same properties already exists | ||
# in the selected store." in "app:code:core:Mage:Cms:Model:Resource:Block.php" | ||
# throw new Exception("Oops, mi error in EN/US German LocalePack"); | ||
} | ||
} | ||
|
||
$installer->endSetup(); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!--@subject Email - Support @--> | ||
<h4>Order Questions?</h4> | ||
<p> | ||
{{depend store_phone}} | ||
<b>Call Us:</b> | ||
<a href="tel:{{var store_phone}}">{{var store_phone}}</a><br> | ||
{{/depend}} | ||
{{depend store_hours}} | ||
<span class="no-link">{{var store_hours}}</span><br> | ||
{{/depend}} | ||
{{depend store_email}} | ||
<b>Email:</b> <a href="mailto:{{var store_email}}">{{var store_email}}</a> | ||
{{/depend}} | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.