Hi Nicolas, Additionally to have also translation on checkout summary for shipping/delivery I made following changes in show_block_status.php:
Before:
<?php
$cart = $this->checkoutHelper->getCart();
$array = array();
if(!empty($cart->shipping)) {
$names = array();
foreach($cart->shipping as $shipping) {
$names[] = $shipping->shipping_name;
}
$array[] = JText::sprintf('HIKASHOP_SHIPPING_METHOD_CHOSEN', '<span class="label label-info">'.implode('</span> <span class="label label-info">', $names).'</span>');
}
if(!empty($cart->payment))
$array[] = JText::sprintf('HIKASHOP_PAYMENT_METHOD_CHOSEN', '<span class="label label-info">'.$cart->payment->payment_name.'</span>');
echo implode('<br/>', $array);
if(empty($this->ajax)) { ?>
</div>
After:
<?php
$cart = $this->checkoutHelper->getCart();
$array = array();
if(!empty($cart->shipping)) {
$names = array();
foreach($cart->shipping as $shipping) {
$names[] = JText::_($shipping->shipping_name);
}
$array[] = JText::sprintf('HIKASHOP_SHIPPING_METHOD_CHOSEN', '<span class="label label-info">'.implode('</span> <span class="label label-info">', $names).'</span>');
}
if(!empty($cart->payment))
$array[] = JText::sprintf('HIKASHOP_PAYMENT_METHOD_CHOSEN', '<span class="label label-info">'. JText::_($cart->payment->payment_name).'</span>');
echo implode('<br/>', $array);
if(empty($this->ajax)) { ?>
</div>
Regards,
Greg