Hi,
Adding vendor data in the email
Please edit the email "preloader" and replace the content
$vars = array(
'LIVE_SITE' => HIKASHOP_LIVE,
'URL' => $order_url,
'ORDER_PRODUCT_CODE' => (bool)$shopConfig->get('show_product_code', false),
'order' => $data->cart,
'billing_address' => @$data->cart->billing_address,
'shipping_address' => @$data->cart->shipping_address,
);
By
$vars = array(
'LIVE_SITE' => HIKASHOP_LIVE,
'URL' => $order_url,
'ORDER_PRODUCT_CODE' => (bool)$shopConfig->get('show_product_code', false),
'order' => $data->cart,
'billing_address' => @$data->cart->billing_address,
'shipping_address' => @$data->cart->shipping_address,
'vendor' => $data->vendor
);
(this modification will be include in the next HikaMarket release).
Once the "vendor" variable created, you will be able to use a tag like {VAR:vendor.acct_number} to access to the "acct_number" custom field of the vendor.
Override of the email subject
To change the email subject, the best is to add some code in the preload part in order to create it dynamically.
You have to put your content in the variable
$mail->subject = "Purchase Order: ID " . $vendor->acct_number . " - " . $data->order->order_number
Accessing to the order number
The order_number is a field of the order object. You can access it through {VAR:order.order_number}
Regards,