Include Shipping Method in Order Confirmation Emai

  • Posts: 99
  • Thank you received: 7
  • Hikashop Business
11 years 4 months ago #115959

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.

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #116117

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:

<?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.

  • Posts: 99
  • Thank you received: 7
  • Hikashop Business
11 years 4 months ago #116148

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.055 seconds
Powered by Kunena Forum