您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop订单后给客户商家发邮件
邬肖任2023-12-26 00:35:21ecshop商城教程已有人查阅
导读在flow.php文件中,给商家发邮件下面增加下面的代码就可以实现。注意 email就是客户的email地址,通过$consignee[]数组获取
在flow.php文件中,给商家发邮件下面
/* 给商家发邮件 */
/* 增加是否给客服发送邮件选项 */
if ($_CFG['send_service_email'] && $_CFG['service_email'] != '')
{
$tpl = get_mail_template('remind_of_new_order');
$smarty->assign('order', $order);
$smarty->assign('goods_list', $cart_goods);
$smarty->assign('shop_name', $_CFG['shop_name']);
$smarty->assign('send_date', date($_CFG['time_format']));
$content = $smarty->fetch('str:' . $tpl['template_content']);
send_mail($_CFG['shop_name'], $_CFG['service_email'], $tpl['template_subject'], $content, $tpl['is_html']);
}
增加下面的代码就可以实现。注意 email就是客户的email地址,通过$consignee[]数组获取
/* 增加是否给客户发送邮件选项 add by crab 2010.04.09 */
if ($consignee['email'] != '')
{
$tpl = get_mail_template('order_confirm');
$smarty->assign('order', $order);
$smarty->assign('goods_list', $cart_goods);
$smarty->assign('shop_name', $_CFG['shop_name']);
$smarty->assign('send_date', date($_CFG['time_format']));
$content = $smarty->fetch('str:' . $tpl['template_content']);
send_mail($_CFG['shop_name'], $consignee['email'], $tpl['template_subject'], $content, $tpl['is_html']);
}
本文标签:
很赞哦! ()
相关文章
随机图文
-
ecshop商品页商品浏览次数怎样修改按倍数增加
代码号ecshop商品详细页的“商品浏览点击次数” 怎样修改按倍数增加教程怎样修改商品详细页的“浏览点击次数” 很好可以修改为成倍增加的,比如客户浏览了一次,显示的是30次. -
ecshop购买按钮显示商品库存无货状态修改方法
找到ecshop文件,打开所在的goods.dwt模板,搜索购物那个按钮(提示:图片另存就知道文件名),之后看到以下代码 -
ecshop微博插件ecshop新浪微博账号登录插件
新浪微博登录ecshop这类的功能就显得很有必要了把login整个文件夹传到服务器上ecshop安装所在的目录,如果路径不对可以会导致应用失败。 -
ecshop商品页显示商品收藏数量怎么修改
ECSHOP商城站长如果要想做好商城的销售量,可以设置商城添加一个宝贝商品收藏量来吸引顾客。据了解,现在的很多商城店长卖家都喜欢使用这样的手段让顾客收藏商品
留言与评论 (共有 条评论) |