白菜粉条汤
make life remembered
  • 首页
  • 分类
    • 随语
    • 杂志
    • 外贸
    • 技术
    • 图片
    • 电影
    • 音乐
    • 饮食
    • 大学
  • 关于
Tag:

magento

技术

How to change the Magento Email Templates

by 曾经沧海 2009年9月2日

You’ll probably know by now that the transactional email templates in Magento are a bit, with respect, “naff”. To edit through the admin will take forever and a day so here’s a couple of useful solutions to help make things easier.

1. Locate the email templates

The Magento email templates are located in (note: “en_US” may change depending on language).

magento\app\locale\en_US\template\email\account_new.html”(24,48):
magento\app\locale\en_US\template\email\admin_password_new.html”(27,73):
magento\app\locale\en_US\template\email\newsletter_subscr_confirm.html”(28,69):
magento\app\locale\en_US\template\email\order_creditmemo.html”(23,63):
magento\app\locale\en_US\template\email\order_creditmemo.html”(75,62):
magento\app\locale\en_US\template\email\order_invoice.html”(23,63):
magento\app\locale\en_US\template\email\order_invoice.html”(75,62):
magento\app\locale\en_US\template\email\order_new.html”(23,63):
magento\app\locale\en_US\template\email\order_new.html”(79,62):
magento\app\locale\en_US\template\email\order_shipment.html”(23,63):
magento\app\locale\en_US\template\email\order_shipment.html”(81,62):
magento\app\locale\en_US\template\email\order_update.html”(26,52):
magento\app\locale\en_US\template\email\password_new.html”(24,41):
magento\app\locale\en_US\template\email\wishlist_share.html”(23,65):

2. Edit your information in

replace alt=”Magento” with alt=”your store name”

replace Magento Demo Store with your store name

replace mailto:magento@varien.com with mailto:email@yourstore.com

replace dummyemail@magentocommerce.com with email@yourstore.com

replace (800) DEMO-STORE with (0800) YOUR STORE NUMBER

replace Monday – Friday, 8am – 5pm PST with your own store opening times and timezone

3. Advanced – Automated Shell Script

Another option would be to create a shell script with all you’re information in which goes through the directories in question and replaces text as we need. Note: You will need your Store View Name and Store Name to match your domain name.

#!/bin/sh
phone=(123)456-7890

find app/locale/en_US/template/email/sales -type f -exec sed -i ’s/alt=”Magento”/alt=”{{var order.getStoreGroupName()}}”/g’ {} \;
find app/locale/en_US/template/email/sales -type f -exec sed -i ’s/Magento Demo Store/{{var order.getStoreGroupName()}} /g’ {} \;
find app/locale/en_US/template/email/sales -type f -exec sed -i ’s/mailto:magento@varien.com/sales@{{var order.getStoreGroupName()}}/g’ {} \;
find app/locale/en_US/template/email/sales -type f -exec sed -i ’s/dummyemail@magentocommerce.com/sales@{{var order.getStoreGroupName()}}/g’ {} \;

find app/locale/en_US/template/email -type f -exec sed -i ’s/alt=”Magento”/alt=”{{var customer.store.name}}”/g’ {} \;
find app/locale/en_US/template/email -type f -exec sed -i ’s/Magento Demo Store/{{var customer.store.name}} /g’ {} \;
find app/locale/en_US/template/email -type f -exec sed -i ’s/mailto:magento@varien.com/sales@{{var customer.store.name}}/g’ {} \;
find app/locale/en_US/template/email -type f -exec sed -i ’s/dummyemail@magentocommerce.com/sales@{{var customer.store.name}}/g’ {} \;

find app/locale/en_US/template/email -type f -exec sed -i “s/(800)DEMO-STORE/$phone/g” {} \;
find app/locale/en_US/template/email -type f -exec sed -i “s/(800)DEMO-NUMBER/$phone/g” {} \;
find app/locale/en_US/template/email -type f -exec sed -i “s/(800) DEMO-NUMBER/$phone/g” {} \;
find app/locale/en_US/template/email -type f -exec sed -i “s/(800) DEMO-STORE/$phone/g” {} \;
find app/locale/en_US/template/email -type f -exec sed -i ’s/Monday – Friday, 8am – 5pm PST/24×7/g’ {} \;
find app/locale/en_US/template/email -type f -exec sed -i ’s/logo_email.gif/logo.gif/g’ {} \;

2009年9月2日 0 评论 712 阅读
技术

MAGENTO Error:: cannot access the connect manager

by 曾经沧海 2009年9月2日

The problem was due to the directory permissions on /downloader (was 775, needed to be 755 and the /downloader/index.php (was 755 needed to be 644).

Also, the magento php.ini changes needed to be added to a custom php.ini in the main directory and /downloader.

2009年9月2日 0 评论 766 阅读
加载更多

热门

  • 无线餐饮点菜系统–去年的毕业设计

    2008年9月21日 36 评论 5.9K 阅读
  • Magento设置Paypal支付步骤

    2011年5月29日 1 评论 2.7K 阅读
  • 垃圾

    2017年3月12日 0 评论 2.2K 阅读
  • 记录

    2007年10月6日 0 评论 2.2K 阅读
  • 办公室的两只猫

    2017年12月19日 0 评论 2K 阅读

最新

  • 清明

    2025年4月1日 0 评论 110 阅读
  • 襄阳

    2025年2月27日 0 评论 162 阅读
  • 午睡

    2025年2月23日 0 评论 163 阅读
  • 周年

    2025年1月14日 0 评论 273 阅读
  • 刚刚做了一个梦

    2024年12月31日 0 评论 253 阅读

分类

  • 图片 (71)
  • 外贸 (6)
  • 大学 (103)
  • 技术 (75)
  • 杂志 (290)
  • 电影 (13)
  • 资源 (1)
  • 随语 (87)
  • 音乐 (96)
  • 饮食 (3)

归档

  • 2025 年 4 月 (1)
  • 2025 年 2 月 (2)
  • 2025 年 1 月 (1)
  • 2024 年 12 月 (2)
  • 2024 年 10 月 (1)
  • 2024 年 9 月 (1)
  • 2024 年 7 月 (1)
  • 2024 年 6 月 (2)
  • 2023 年 9 月 (1)
  • 2023 年 6 月 (1)
  • 2023 年 5 月 (3)
  • 2023 年 4 月 (4)
  • 2023 年 3 月 (3)
  • 2023 年 2 月 (3)
  • 2023 年 1 月 (27)
  • 2021 年 8 月 (2)
  • 2021 年 1 月 (1)
  • 2020 年 3 月 (1)
  • 2019 年 3 月 (1)
  • 2017 年 12 月 (2)
  • 2017 年 3 月 (2)
  • 2011 年 10 月 (3)
  • 2011 年 8 月 (1)
  • 2011 年 7 月 (1)
  • 2011 年 5 月 (1)
  • 2011 年 4 月 (1)
  • 2011 年 1 月 (2)
  • 2010 年 12 月 (1)
  • 2010 年 9 月 (2)
  • 2010 年 8 月 (5)
  • 2010 年 7 月 (1)
  • 2010 年 6 月 (1)
  • 2010 年 5 月 (2)
  • 2010 年 4 月 (3)
  • 2010 年 2 月 (4)
  • 2010 年 1 月 (9)
  • 2009 年 12 月 (3)
  • 2009 年 11 月 (3)
  • 2009 年 9 月 (11)
  • 2009 年 8 月 (6)
  • 2009 年 7 月 (1)
  • 2009 年 6 月 (2)
  • 2009 年 5 月 (7)
  • 2009 年 4 月 (13)
  • 2009 年 3 月 (14)
  • 2009 年 2 月 (2)
  • 2009 年 1 月 (12)
  • 2008 年 12 月 (19)
  • 2008 年 11 月 (1)
  • 2008 年 10 月 (9)
  • 2008 年 9 月 (12)
  • 2008 年 8 月 (5)
  • 2008 年 7 月 (7)
  • 2008 年 6 月 (13)
  • 2008 年 5 月 (4)
  • 2008 年 4 月 (10)
  • 2008 年 3 月 (7)
  • 2008 年 2 月 (7)
  • 2008 年 1 月 (11)
  • 2007 年 12 月 (4)
  • 2007 年 11 月 (8)
  • 2007 年 10 月 (30)
  • 2007 年 9 月 (25)
  • 2007 年 8 月 (29)
  • 2007 年 7 月 (32)
  • 2007 年 6 月 (2)
  • 2007 年 4 月 (1)
  • 2007 年 3 月 (2)
  • 2007 年 2 月 (5)
  • 2007 年 1 月 (7)
  • 2006 年 12 月 (11)
  • 2006 年 11 月 (24)
  • 2006 年 10 月 (13)
  • 2006 年 9 月 (16)
  • 2006 年 8 月 (21)
  • 2006 年 7 月 (18)
  • 2006 年 6 月 (9)
  • 2006 年 5 月 (27)
  • 2006 年 4 月 (44)
  • 2006 年 3 月 (21)
  • 2006 年 2 月 (9)
  • 2006 年 1 月 (6)
  • 2005 年 12 月 (12)
  • 2005 年 11 月 (17)
  • 2005 年 10 月 (44)
  • 2005 年 9 月 (12)

标签

asp错误 (1) cache (1) django (1) joomla (8) joomla extension (3) magento (2) magento connect (1) Magento Email Templates (1) pink (1) Plone (1) python (3) QTP (1) sef (2) so what (1) stop 0x0000007b (1) Sugar In The Marmalade (1) vbs (1) virtuemart (3) Virtuemart Menu (1) Zope (1) 专升本 (4) 周慧敏 (2) 喜爱 (1) 国庆 (1) 域名注册,域名 (1) 学生处 (6) 我爱谁 (1) 我的大学 (6) 我的大学编年史 (6) 拉肚子 (1) 樊海军 (6) 物理学系 (6) 物理系 (4) 电子信息工程 (4) 简单电话薄 (1) 聚会 (1) 肇庆 (4) 肇庆学院 (6) 计算机系 (4) 谭咏麟 (3) 软件测试 (4) 邓奎元,蔡金生,喝酒 (1) 酸 (1) 黎明 (2) 黎明 对不起 (1)
  • 首页
  • 分类
    • 随语
    • 杂志
    • 外贸
    • 技术
    • 图片
    • 电影
    • 音乐
    • 饮食
    • 大学
  • 关于

@2005-2023 - 白菜粉条汤

白菜粉条汤
  • 随语
  • 杂志
  • 资源
  • 外贸
  • 技术
  • 图片
  • 电影
  • 音乐
  • 饮食
  • 大学
登入

保持登录状态,直到我退出

忘记密码了吗?

找回密码

新密码将通过电子邮件发送给您。

收到新密码了吗? Login here