不知道如何设置标题

时间:2016-12-07 14:24:34

标签: email header prestashop

有人可以帮我设置此功能的标题。我买了Prestashop模块在产品页面上提问。但电子邮件会发回管理员电子邮件。我知道我需要设置标题来响应用户提供的电子邮件。

product = new Product(Tools::getValue('ip_product_id'), true, $id_language, $id_shop);
$sql = 'SELECT email FROM `' . _DB_PREFIX_ . 'contact` WHERE id_contact = ' . (int) (Configuration::get('IP_ASK_ABOUT_PRODUCT_MAIL'));
$mail = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);   

if (Mail::Send((int)$id_language, 
                'ask', 
                Mail::l('Pytanie o produkt', (int)$id_language), 
            array(
        '{message}' => Tools::getValue('message'),
        '{mail}' => Tools::getValue('ip_ask_about_product_email'),
        '{name}' => Tools::getValue('ip_ask_about_product_name'),
        '{phone}' => Tools::getValue('ip_ask_about_product_phone'),
        '{id_product}' => $product->id,
        '{product_name}' => $product->name), 
            $mail[0]["email"], 
            null, 
            null, 
            null, 
            null, 
            null, 
            dirname(__FILE__) . '/mails/'
    ))
{

1 个答案:

答案 0 :(得分:0)

您要查找的选项是<xpath expr="/form/sheet/notebook/page[1]/field[@name='order_line']/tree/field[@name='price_subtotal']" position="after"> <button name="%{action_view_wizard}d" string="" type="action" icon="fa-archive" attrs="{'invisible':[('product_id','=', False)]}"/> </xpath> 。这是函数<record id="check_stock" model="ir.ui.view"> <field name="name">sale_warehouse.check_stock_wizard</field> <field name="model">sale_warehouse.check_stock_wizard</field> <field name="arch" type="xml"> <form string="Stock by warehouse"> <group col="1"> <field name="stock" nolabel="1"/> </group> <footer> <button string="Close" class="btn-default" special="cancel" /> </footer> </form> </field> </record> <record id="action_view_wizard" model="ir.actions.act_window"> <field name="name">Stock by warehouse</field> <field name="type">ir.actions.act_window</field> <field name="res_model">sale_warehouse.check_stock_wizard</field> <field name="view_type">form</field> <field name="view_mode">form</field> <field name="view_id" ref="check_stock"/> <field name="target">new</field> </record> 的最后一个参数。您的代码必须如下所示:

ReplyTo
祝你好运