Hi,
Displaying the shipping method name is not very easy.
For HikaShop 2.2.2, we introduce new email design with a lot of new improvements, like the product images, the display of shipping and payment methods, a responsive mail and many other cool things.
But HikaShop 2.2.2 is not yet release ; we are working hard to make a release as soon as possible. We want to publish it before the end of this month.
It is possible to display the shipping method name in the email but it require to "import" code from the order view (in the backend).
if(empty($this->order->order_shipping_method) && empty($this->order->shippings)) {
echo '- <em>'.JText::_('NONE').'</em>';
} else if(!empty($this->order->order_shipping_method)) {
if(!is_numeric($this->order->order_shipping_id)){
$shipping_name = $this->getShippingName($this->order->order_shipping_method, $this->order->order_shipping_id);
echo ' - ' . $shipping_name;
}else{
$shipping = $this->shippingClass->get($this->order->order_shipping_id);
echo ' - ' . $shipping->shipping_name;
}
} else {
// Multi shipping display
}
Where "$this->getShippingName" is this function
function getShippingName($shipping_method, $shipping_id) {
$shipping_name = $shipping_method . ' ' . $shipping_id;
if(strpos($shipping_id, '-') !== false) {
$shipping_ids = explode('-', $shipping_id, 2);
$shipping = $this->shippingClass->get($shipping_ids[0]);
if(!empty($shipping->shipping_params) && is_string($shipping->shipping_params))
$shipping->shipping_params = unserialize($shipping->shipping_params);
$shippingMethod = hikashop_import('hikashopshipping', $shipping_method);
$methods = $shippingMethod->shippingMethods($shipping);
if(isset($methods[$shipping_id])){
$shipping_name = $shipping->shipping_name.' - '.$methods[$shipping_id];
}else{
$shipping_name = $shipping_id;
}
}
return $shipping_name;
}
With some PHP and development knowledge, you can transpose this code to work in the current email system.
But if you can wait a little, I can assure you that the new email system is really cool
Regards,