Order Email Text (Seller) fields
Posted: 17 Jul 2018, 00:01
Hello,
I would like to add in seller order received email, some other fields.
I actually see in email body only order id, date, payment and delivery info.
I for example would like to add customer phone number and delivery notes.
I investigated in order.php file and it seems it is ready to write other field, for example "COM_PHOCACART_DELIVERY_NOTE", but if I query the database, I can't retrieve so much data:
SELECT `id`, `order_token`, `user_id`, `group_id`, `invoice_id`, `status_id`, `shipping_id`, `payment_id`, `coupon_id`, `discount_id`, `currency_id`, `tax_calculation`, `currency_code`, `currency_exchange_rate`, `unit_weight`, `unit_volume`, `title`, `alias`, `comment`, `ip`, `user_agent`, `tracking_id`, `tracking_title`, `tracking_description_custom`, `tracking_link_custom`, `tracking_number`, `tracking_date_shipped`, `published`, `checked_out`, `checked_out_time`, `ordering`, `date`, `modified`, `params`, `type`, `vendor_id`, `ticket_id`, `unit_id`, `section_id`, `loyalty_card_number`, `reference_field1`, `reference_field2`, `reference_data`, `order_number`, `receipt_number`, `invoice_number`, `invoice_prn`, `invoice_date`, `invoice_due_date`, `invoice_spec_top_desc`, `invoice_spec_middle_desc`, `invoice_spec_bottom_desc`, `privacy` FROM `jos3_phocacart_orders` WHERE id=19;
(19, 'f563a5ee0a1d452b2d6fb857b22dc0cbc5b9bd55f24262a4238853474164fd5d', 603, 0, 0, 2, 1, 1, 0, 0, 1, 0, 'EUR', '1.00000000', 'g', 'ml', '', '', '', '62.10.64.32', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0', 0, '', NULL, '', '', '0000-00-00 00:00:00', 1, 0, '0000-00-00 00:00:00', 0, '2018-07-16 21:16:15', '2018-07-16 21:18:20', NULL, 1, 0, 0, 0, 0, '', '', '', '', '20180000000019', '20180000000019', '{orderdate}0000000019', '20180000000019', '2018-07-16 21:16:15', '2018-08-15 09:08:15', '', '', '', 0);
Do you think the issue is in inserting data or do I have to add the field I desire to have written in email body in such a different way?
Thank you very much for your help.
Regards,
Alex
I would like to add in seller order received email, some other fields.
I actually see in email body only order id, date, payment and delivery info.
I for example would like to add customer phone number and delivery notes.
I investigated in order.php file and it seems it is ready to write other field, for example "COM_PHOCACART_DELIVERY_NOTE", but if I query the database, I can't retrieve so much data:
SELECT `id`, `order_token`, `user_id`, `group_id`, `invoice_id`, `status_id`, `shipping_id`, `payment_id`, `coupon_id`, `discount_id`, `currency_id`, `tax_calculation`, `currency_code`, `currency_exchange_rate`, `unit_weight`, `unit_volume`, `title`, `alias`, `comment`, `ip`, `user_agent`, `tracking_id`, `tracking_title`, `tracking_description_custom`, `tracking_link_custom`, `tracking_number`, `tracking_date_shipped`, `published`, `checked_out`, `checked_out_time`, `ordering`, `date`, `modified`, `params`, `type`, `vendor_id`, `ticket_id`, `unit_id`, `section_id`, `loyalty_card_number`, `reference_field1`, `reference_field2`, `reference_data`, `order_number`, `receipt_number`, `invoice_number`, `invoice_prn`, `invoice_date`, `invoice_due_date`, `invoice_spec_top_desc`, `invoice_spec_middle_desc`, `invoice_spec_bottom_desc`, `privacy` FROM `jos3_phocacart_orders` WHERE id=19;
(19, 'f563a5ee0a1d452b2d6fb857b22dc0cbc5b9bd55f24262a4238853474164fd5d', 603, 0, 0, 2, 1, 1, 0, 0, 1, 0, 'EUR', '1.00000000', 'g', 'ml', '', '', '', '62.10.64.32', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0', 0, '', NULL, '', '', '0000-00-00 00:00:00', 1, 0, '0000-00-00 00:00:00', 0, '2018-07-16 21:16:15', '2018-07-16 21:18:20', NULL, 1, 0, 0, 0, 0, '', '', '', '', '20180000000019', '20180000000019', '{orderdate}0000000019', '20180000000019', '2018-07-16 21:16:15', '2018-08-15 09:08:15', '', '', '', 0);
Do you think the issue is in inserting data or do I have to add the field I desire to have written in email body in such a different way?
Thank you very much for your help.
Regards,
Alex