Skip to main content

Include Shipping Method in Order Confirmation Emai

13 years 3 months ago #115959 by bmm01
I am setting up Hikashop for an online store with 4 physical locations and no central office.

Each of the physical locations does not have access to the internet, only email (butcher shops). This means that I have to rely on email only to advise each physical location of paid orders for their store.

At this stage, the customer will choose to pick up their order from one of the 4 locations.

I need the Order Confirmation email to include the Shipping Method (Pickup Location 1, 2, 3 or 4) in the subject so that the email server can forward the email to the correct location based on the location.

Is it possible to include the details of the Pickup location in the email? Is this possible in the Business edition or will I need some further customisation?

Thanks
Brett

Please Log in or Create an account to join the conversation.

13 years 3 months ago #116117 by nicolas
Hi,

You could directly send the status notification to the correct email address by adding such custom code in the order status notification via the menu System>Emails of the Business edition:
Code:
<?php switch($data->order_shipping_id){ case 1: //id of shipping method 1 $email = 'butcher1@mywebsite.com'; break; case 2: //id of shipping method 2 $email = 'butcher2@mywebsite.com'; break; case 3: //id of shipping method 3 $email = 'butcher3@mywebsite.com'; break; case 4: //id of shipping method 4 $email = 'butcher4@mywebsite.com'; break; } $data->customer->user_email = array($data->customer->user_email,$email); ?>
The following user(s) said Thank You: bmm01

Please Log in or Create an account to join the conversation.

13 years 3 months ago #116148 by bmm01
Ok thanks for that. Appreciate the quick response too.

Please Log in or Create an account to join the conversation.

Time to create page: 0.049 seconds
Powered by Kunena Forum